Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
the problem for accessing the classes in rt.jar
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Andreas Leitgeb, post: 5018574"] Your experiments and conclusions make sense, but classes in "com.sun.*" packages are not intended to be used in apps in the first place (and even less so, if they have ".internal." in their path), so maybe there's even some explicit trick in Java, that prevents these classes from being visible to foreign code, when rt.jar is loaded as initial library. By symlinking (on Linux) you may have outsmarted that mechanism, but you're walking on very thin ice. You will most likely run into difficulties later, maybe during any oncoming patchlevel-update of your jdk, where package com.sun.xml.internal.fastinfoset.stax might just disappear with all the classes previously inside it - without even a mention in release-notes or migration-guides. So, to fix your problem, go find a class in a package under "java" or "javax" that provides a *public* interface to the functionality of StAXDocumentParser that you really need. (If I knew the correct class, I'd have mentioned it, but I rarely do xml-stuff, so others more into it hopefully will step in here.) [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
the problem for accessing the classes in rt.jar
Top