executable jar files

T

tutor5

hello guys,

i have a little problem, i need to create an executable jar file in
order to run this program i did without via an application. i use e-
clipse and when you create a jar file, it creates everything for you,
including the manifest file. the problem with it is that it does not
run.
as there any other way of doing it ?
i'll be glad if you can help me.

thanks
 
G

GArlington

hello guys,

i have a little problem, i need to create an executable jar file in
order to run this program i did without via an application. i use e-
clipse and when you create a jar file, it creates everything for you,
including the manifest file. the problem with it is that it does not
run.
as there any other way of doing it ?
i'll be glad if you can help me.

thanks

In what way "it does not run"?
Did you try
java -jar yourJar.jar ???
 
A

Alex.From.Ohio.Java

hello guys,

i have a little problem, i need to create an executable jar file in
order to run this program i did without via an application. i use e-
clipse and when you create a jar file, it creates everything for you,
including the manifest file. the problem with it is that it does not
run.
as there any other way of doing it ?
i'll be glad if you can help me.

thanks

If you use correct manifest with line for main class like this:
Main-Class: com.abc.Controller

then the only problem you may have is your OS settings.
If it's Windows, for example, then check that jar files are associated
with Java. Or run it manually with jar option like this:

java -jar Controller.jar

Alex.
http://www.myjavaserver.com/~alexfromohio/
 
I

Ian Shef

hello guys,

i have a little problem, i need to create an executable jar file in
order to run this program i did without via an application. i use e-
clipse and when you create a jar file, it creates everything for you,
including the manifest file. the problem with it is that it does not
run.
as there any other way of doing it ?
i'll be glad if you can help me.

thanks

If your program depends upon other libraries or other jar files, you may find
that Eclipse is not very helpful here.

The Fat Jar plug-in http://sourceforge.net/projects/fjep/
worked for me.

What did the Java console tell you when you tried to run your program?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,066
Latest member
VytoKetoReviews

Latest Threads

Top