English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

5 answers

create a jar file and specify a manifest file also.
by using the command as
jar -cfm [specify a manifest file here ext as .mf or .mft] *.class

good luck.

2006-10-26 18:13:37 · answer #1 · answered by Anand 3 · 2 0

Hi,

Yes.. A JAR file is the solution to your problem. There are command line ways of creating a JAR, but I believe that with the advent of some REALLY good IDEs like Netbeans, you wouldn't want to bother with that ! Just create your Java class as a project in Netbeans and deploy it as a JAR.. its a click-and-do process. Please refer the netbeans manual for further instructions.

If your class is referring some other JAR files or libraries, then you need to modify the "Classpath" variable in the manifest file of the JAR. To do this, open the JAR file in any ZIP utility, like winzip and open the manifest.mf file. Open this file in a text editor and add the path of your included libraries in the Classpath variable.

For more instructions, please visit http://java.sun.com/docs/books/tutorial/deployment/jar/

This is the Sun's Java website and will give you the best deails on creating and using JAR archives

Cheers

2006-10-24 04:47:22 · answer #2 · answered by Abhinav Kishore 2 · 1 0

try creating a jar file which will contain all the files needed to run the program. once your create a jar file put the jar file in the classpath and try executing it.

2006-10-24 03:30:26 · answer #3 · answered by Nagesh K 2 · 0 0

make the jar file u can create it using this command at command prompt
jar -cvf *.class
this give u the jar file by clicking it u get the executable file

2006-10-23 22:41:21 · answer #4 · answered by ch_nagarajind 3 · 0 0

the respond is that's compliled with the belief it is going to run on a particular platform. it might additionally be compiled to run on diffrent structures and then your Installer honestly makes particular that each guy or woman your dlls are registered contained interior the main suited places and help with diverse dependancies the utility desires. you do no longer in elementary words run adobe, you place in it and then run it.

2016-11-25 01:44:33 · answer #5 · answered by Anonymous · 0 0

fedest.com, questions and answers