views:

141

answers:

5

As per Java web start where does the jar file get downloaded on a client machine?

+3  A: 

In case of a Windows machine, you could go to the control panel and click on Java Control Panel to find the location of the Java Cache.
In my case it shows: C:\Documents and Settings\user1\Application Data\Sun\Java\Deployment\cache

ria
Bozhidar Batsov
+3  A: 

In case of a Linux machine, I have it on :

/home/bakkal/.java/deployment/cache/

where /home/bakkal is just my personal home folder.

Bakkal
+2  A: 

On Mac

/Users/username/Library/Caches/Java/cache/


Just for fun:
I deployed a small game and found its jar file in

/Users/username/Library/Caches/Java/cache/6.0/42/1d3d9f6a-640bd5ed

The .jar was removed, if you want to run or decompile it, rename it with .jar

medopal
+1  A: 

Keep in mind that the location on windows has changed. It was different in java 6 (compared to java 5).

Thirler
+2  A: 

Unless you have a Very Good Reason(TM) you should basically not have to care about that as that is the job of Java Web Start to handle.

If this is for locating the jar from inside your own code, you can ask the class loader where it got the bytecode from. Given the security manager allows!

Thorbjørn Ravn Andersen
while digging it, that's exactly what i though
medopal