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
limitations of Class.forName
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="Robert Klemme, post: 5157652"] It's not only java.exe, but also java (on other platforms), java plugin etc. You can have a classpath header in the JAR manifest. You can use that to do relative references, i.e. via same directory or URL that hosts the referencing JAR. See Arne's reply. Usually you configure the URL (or a directory name or ....) and create a classloader or classloaders that will look there. I don't think that's a good idea because it makes composing of an application harder than necessary. Also, various container systems have solved this already - you just need to look how JEE containers and Tomcat are doing things. Cheers robert [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
limitations of Class.forName
Top