Click to See Complete Forum and Search --> : Jar files ??????????????????????????????


April 27th, 2000, 10:59 PM
Please I have some questions about jar files:
1) How can I make a jar executable, for example if I have lot of classes in a java application and I want to create
a jar file that I can run it with java command instead of having lots of classes in the directory,
2) how about if it's not application, it's applet
3) how can I see or extract classes from jar file.

Thanks

April 28th, 2000, 02:42 AM
Use Jar.exe thats comes with the JDK 1.2, look in "bin" directory.
It doesnt matter if your class is application or applet.
Use a zip-program to open and extract jar-files, eg. WinZip. Use the "show all files" option and point to your jar-file. Jar files is basicly zip files that has been added a manifest. Hope this helps !

April 28th, 2000, 03:05 AM
hai,

jar cfm samp.jar *.class
in applet tag-
<applet class=samp.class archive="samp.jar" width=500 height=500> </applet>

while extraction give

jar xvf samp.jar

if any problem write to bharath@vsofti.stph.net

regs
bharath