Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Netork/Remote Class Loading

843406Oct 2 2014 — edited Oct 2 2014

I am trying to change a desktop application that was delivered via JNLP.  I packaged the app in a jar and signed it then I stuck it in a web app that downloaded it to the client work station.  I now would like to simply create a short cut on the desktop that points the JVM to the a class folder accessible by an HTTP server.  I tried using the java.rmi.server.codebase seeting and a policy file to point the jvm at the class folder as well as the jars needed to support this app.  No matter what I tried I kept getting NoClassDefinedException.  I thought based on all the information I gathered from the web that this would be possible without having to create a RMI server to marshal Objects and Classes.  I did an experiment with the URL class loader with some success but there are some third party jars and ini files envoled and I would still nee to put at least one class file on the desktop.  Is a way to remotely deliver java classes from an HTTP server to the client without a custom class loader?

Comments

843833
I got it. Thanks FarhanM and Kamarainen.
843833
Can someone post the reason / workaround for this problem ? I was using JNDI names in the deploy tool in J2EE 1.3, but I don't find this in J2EE 1.4. Why so ? And how can I specify the JNDI names then ?
843833
Hi, Can you put the solution here?
Cause I got same problem. Thanks
843833
Does anyone know hot to solve this problem?
If so please post solution here.

Thanks in advance.
843833
You need to use File->Deployment Settings and create a new or
edit an existing file. This will bring up additional entries
in your navigation tree window. Selecting them opens up the
way to enter JNDI names.
1 - 5
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 30 2014
Added on Oct 2 2014
0 comments
734 views