BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

run a .jar under Linux

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Deployment
View previous topic :: View next topic  
Author Message
junior
Guest





PostPosted: Mon Feb 16, 2004 7:12 pm    Post subject: run a .jar under Linux Reply with 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?

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





PostPosted: Tue Feb 17, 2004 3:11 pm    Post subject: Re: run a .jar under Linux Reply with quote



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





PostPosted: Tue Feb 17, 2004 5:18 pm    Post subject: Re: run a .jar under Linux Reply with 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.

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





PostPosted: Tue Feb 17, 2004 10:59 pm    Post subject: Re: run a .jar under Linux Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Deployment All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.