aspose file tools*
The moose likes JNLP and Web Start and the fly likes Java.lang.ClassCastException Java.io.File incompatible with com.sun.deploy.Cache.CachedJarFile 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 "Java.lang.ClassCastException Java.io.File incompatible with com.sun.deploy.Cache.CachedJarFile" Watch "Java.lang.ClassCastException Java.io.File incompatible with com.sun.deploy.Cache.CachedJarFile" New topic
Author

Java.lang.ClassCastException Java.io.File incompatible with com.sun.deploy.Cache.CachedJarFile

Neha Joshi
Greenhorn

Joined: Feb 01, 2011
Posts: 1
Hi there,

One of the client(who uses our product for testing) is getting this exception when trying to load the JNLP file.
He has signed all the JARS, but unable to launch the JNLP.
After doing some search I found that it happens due to cached file that can be removed from JAVA control panel view.
I suggested the client same thing , but it didnt work in his enviroment.

Can you please guide me , how should I investigate this issue further.

Along with this I have another seperate question to ask.
From Commandline I am including a parameter -J-Declipse.startTime=true when trying to load JNLP. JAVAWS -J-Declipse.startTime=true example.jnlp

Now as we want to call this JNLP from webpage , how can I include this property.
I have tried addig this property in resources->property but didnt help. { The effect is not seen, as I am using this property to resove one of the issue}
Let me know if anyone has any idea about this.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java.lang.ClassCastException Java.io.File incompatible with com.sun.deploy.Cache.CachedJarFile
 
Similar Threads
Signing JNLP - Where does JNLP-INF directory go?
Jnlp cannot find the main class in a Jar packaged using "OneJar".
deploying JNLP in Jetty web server of jboss.
jnlp and property files
Is editing of client copy of jnlp file possible when using JWS?