Question : Run exe packaged inside a JAR from Applet

Hi!

I understood that the exe couldn't be inside the same JAR of the applet.

So, where is the location of the JAR, in a applet context?
I mean, I have to say where is the JAR, right?

I already know how to extract the files from a JAR, but I don't know where is this JAR.

I'm using Applet deploy with JWS (Java Web Start) (JNLP file)

Thanks in advance!

Answer : Run exe packaged inside a JAR from Applet

assuming the jar is in the classpath of the application then you can get a URL of a resource inside the jar using the getResource() method. You don't actually need to know where the jar is located.

http://helpdesk.objects.com.au/java/how-to-get-url-to-a-resource-in-same-directory-as-a-class
Random Solutions  
 
programming4us programming4us