aspose file tools*
The moose likes JNLP and Web Start and the fly likes Not Able to load class with long name and having 2 $ signs in jnlp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Not Able to load class with long name and having 2 $ signs in jnlp" Watch "Not Able to load class with long name and having 2 $ signs in jnlp" New topic
Author

Not Able to load class with long name and having 2 $ signs in jnlp

Kartik Raina
Greenhorn

Joined: Sep 16, 2010
Posts: 10
Hello guy,

I am really stuck with this problem from last one week. I am calling an external jar in a folder and using a URLClassLoader to load it. After that i have called all the class in the jar file and by putting Class.forName(className, bool, ClassLoader) i am using those classes. When i run the application on a system via a bat file, everything works fine. But when i run the application via JNLP, the Class.forName method does not load a class file having a long name and 2 $ signs and does not go beyond it also. By this all the class files are not loaded and nothing appears. Moreover after this there is no ClassNotFound Exception. Other Aspects of the app are working fine. Please Help........ For an idea i will provide the list of class files.
.
After Thus two more class have to be loaded but it stucks in " DemoForecastACPanel$ButtonsListen$actionLogic " class fine.....
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

In a "folder", you say. That's kind of vague. Is it a folder on the client machine where the JNLP is running, or on the server where it was downloaded from?
Kartik Raina
Greenhorn

Joined: Sep 16, 2010
Posts: 10
For some reason i cannot show the whole file structure otherwise i could have shown you the whole path. And yes the folder is present on the system on which the jnlp will be executed.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

Then I interpret that to mean that the folder is on the client, not on the server. Correct me if I am wrong.

Does the same thing happen when you try it with an ordinary Java application, instead of with a JNLP application?
Kartik Raina
Greenhorn

Joined: Sep 16, 2010
Posts: 10
ya you are correct.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

Kartik Raina wrote:ya you are correct.


Sorry, I'm confused. I asked two questions. Was that meant to be the answer to both of them?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not Able to load class with long name and having 2 $ signs in jnlp