aspose file tools*
The moose likes JNLP and Web Start and the fly likes Get .jars that come with 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 "Get .jars that come with jnlp" Watch "Get .jars that come with jnlp" New topic
Author

Get .jars that come with jnlp

olze oli
Ranch Hand

Joined: Jun 20, 2009
Posts: 148
Hi,

i have a jnlp and it runs fine. But i want some of the .jars used by that application which comes with it (jnlp). Is it possible to get them from my cache?
I use Windows 7, jdk6

I checked some cache folders but didnt find anything with .jar
sourabh girdhar
Ranch Hand

Joined: Feb 10, 2010
Posts: 71

You can get the jars very easily.
Open the JNLP file by going to Control Panel --> Java --> Temporary Internet files --> view and then right click the application and select Show JNLP.

IN that JNLP there would be attribute like "codebase" . Copy that location and then see the path and full name of required jar in remaining Jar. It may be like lib/{Jarname} or simply {Jarname} depending on implementer. You can concatenate these two strings and you cna simply do a get for that jars. It works in most of the cases unless there is specific security applied by web server and application owners.

Its would be like {codebase}/{relative path of jar with full filename}

Cheers


SCJP SCWCD AIX SOA
The significant problems we face cannot be solved by the same level of thinking that created them -- Albert Einstein

olze oli
Ranch Hand

Joined: Jun 20, 2009
Posts: 148
Thanks, but the links i get from that jnlp are not working. The server said: 404
sourabh girdhar
Ranch Hand

Joined: Feb 10, 2010
Posts: 71

Can you post the application link here. I can take a look then.
olze oli
Ranch Hand

Joined: Jun 20, 2009
Posts: 148
sure, http://www.javazoom.net/jlgui/jws/jlgui.jnlp

thanks, but i fear its somehow protected
sourabh girdhar
Ranch Hand

Joined: Feb 10, 2010
Posts: 71

I think we deserve a fear here.
These are protected jars and seems like cannot be accessed by get method ..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Get .jars that come with jnlp
 
Similar Threads
Caching Problem with JNLP
Do jnlp file updates itself
JNLP downloads from JSP page
adventure of stale jars
Reference a jar