Skip to main content

jar.exe package without JDK

5 replies [Last post]
newcomer4
Offline
Joined: 2009-02-03

I am building a commercial application using Java technology. At the client side only JRE is required.
But my application at the time of installation also need to update an existing jar file at runtime. For this I need to use jar.exe file. I am having JDK installed on my machine. Client side installation doesn't require JDK.
Can I package this jar.exe with my application without the need to install JDK at the client side?
Do I need any extra license for this?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
magnum
Offline
Joined: 2003-09-20

I agree, classes in java.util.jar allow to do a lot of things with jar Files.

akash1212
Offline
Joined: 2009-06-27

Can i use only jar.exe utility for creating jar?
I dont want to install entire JDK. I have all the class files required to make a jar.

thanks,
Akash

vangeorge
Offline
Joined: 2009-06-12

haha

sauvage
Offline
Joined: 2004-03-04

I think you can package the jar.exe from openjdk instead of Sun JDK's one, to avoid licensing problem.
Note that jar.exe is very similar to an usual zip program, so may be you could avoid using jar.exe. And manipulate the jar file programmatically.
e.g. http://www.java-tips.org/java-se-tips/java.util.zip/how-to-write-zip-fil...

peter__lawrey
Offline
Joined: 2005-11-01

Most versions of unzip can unjar as well.