 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
junior Guest
|
Posted: Mon Feb 16, 2004 7:12 pm Post subject: run a .jar under Linux |
|
|
Hello,
I create a .jar file using archive builder (JB7 Linux) .
my jar file (my_program.jar) content is :
Manifest-Version: 1.0
Main-Class: my_program.Application1
where Application1 is the main class...
And
The file called manifest.mf is in the jar's META-INF folder...
How can i run my jar under Linux?
I tried the command line:
java -jar my_program.jar
I get this error:
No manifest found in ``my_program.jar''!!!!!
I would be grateful if someone could help me.
Thanks in advance.
|
|
| Back to top |
|
 |
pnichols Guest
|
Posted: Tue Feb 17, 2004 3:11 pm Post subject: Re: run a .jar under Linux |
|
|
junior wrote:
| Quote: | Hello,
I create a .jar file using archive builder (JB7 Linux) .
my jar file (my_program.jar) content is :
Manifest-Version: 1.0
Main-Class: my_program.Application1
where Application1 is the main class...
And
The file called manifest.mf is in the jar's META-INF folder...
How can i run my jar under Linux?
Are you absolutely certain the manifest file is there? Look at it in ark to |
make sure.
It is easy to sometimes use the Archive Builder as an applet or default in
which case, the manifets file will not be placed into the archive.
if you do see the manifest file and it does indeed have the proper
Main-Class cluase on the second line in it, then run the java -jar with the
-verbose option for more information.
|
|
| Back to top |
|
 |
junior Guest
|
Posted: Tue Feb 17, 2004 5:18 pm Post subject: Re: run a .jar under Linux |
|
|
Hello,
i run it using the commande :
java -jar my_program.jar
i get this error :
No manifest found in ``my_program.jar''
I found with my jar file another file which is called "my_program-linux". Do I
have to use this file in the command to run my program?
Thanks in advance.
pnichols wrote:
| Quote: | junior wrote:
Hello,
I create a .jar file using archive builder (JB7 Linux) .
my jar file (my_program.jar) content is :
Manifest-Version: 1.0
Main-Class: my_program.Application1
where Application1 is the main class...
And
The file called manifest.mf is in the jar's META-INF folder...
How can i run my jar under Linux?
Are you absolutely certain the manifest file is there? Look at it in ark to
make sure.
It is easy to sometimes use the Archive Builder as an applet or default in
which case, the manifets file will not be placed into the archive.
if you do see the manifest file and it does indeed have the proper
Main-Class cluase on the second line in it, then run the java -jar with the
-verbose option for more information.
|
|
|
| Back to top |
|
 |
pnichols Guest
|
Posted: Tue Feb 17, 2004 10:59 pm Post subject: Re: run a .jar under Linux |
|
|
junior wrote:
| Quote: | Hello,
i run it using the commande :
java -jar my_program.jar
i get this error :
No manifest found in ``my_program.jar''
I found with my jar file another file which is called "my_program-linux".
Do I have to use this file in the command to run my program?
Thanks in advance.
Does you jar file use this jar file as a dependency? If so, then it either |
needs to be packaged with your jar file or else on the classpath.
To make sure that this jar is on your classpath, you could go to your jre
install and install the extra jar in the /lib/ext folder. Now try and run
the jar. If the jar now works, that was the problem. If not, you have some
other problems with your jar structure of class structure.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|