Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2012
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. trouble processing "javax/xml/XMLConstants.class":
  2.  
  3. Ill-advised or mistaken usage of a core class (java.* or javax.*)
  4. when not building a core library.
  5.  
  6. This is often due to inadvertently including a core library file
  7. in your application's project, when using an IDE (such as
  8. Eclipse). If you are sure you're not intentionally defining a
  9. core class, then this is the most likely explanation of what's
  10. going on.
  11.  
  12. However, you might actually be trying to define a class in a core
  13. namespace, the source of which you may have taken, for example,
  14. from a non-Android virtual machine project. This will most
  15. assuredly not work. At a minimum, it jeopardizes the
  16. compatibility of your app with future versions of the platform.
  17. It is also often of questionable legality.
  18.  
  19. If you really intend to build a core library -- which is only
  20. appropriate as part of creating a full virtual machine
  21. distribution, as opposed to compiling an application -- then use
  22. the "--core-library" option to suppress this error message.
  23.  
  24. If you go ahead and use "--core-library" but are in fact
  25. building an application, then be forewarned that your application
  26. will still fail to build or run, at some point. Please be
  27. prepared for angry customers who find, for example, that your
  28. application ceases to function once they upgrade their operating
  29. system. You will be to blame for this problem.
  30.  
  31. If you are legitimately using some code that happens to be in a
  32. core package, then the easiest safe alternative you have is to
  33. repackage that code. That is, move the classes in question into
  34. your own package namespace. This means that they will never be in
  35. conflict with core system classes. JarJar is a tool that may help
  36. you in this endeavor. If you find that you cannot do this, then
  37. that is an indication that the path you are on will ultimately
  38. lead to pain, suffering, grief, and lamentation.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement