Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Jar file creation - execution

Status
Not open for further replies.

Ezequiel

Programmer
Apr 4, 2001
30
CA
Hi all!

My class files are located in e:\Eze\test\class\test directory

I have an application that runs perfectly when I do:

E:\Eze\test>set classpath=.;e:\Eze\test\class
E:\Eze\test>java test.mainTEST

But, when I try to execute it from the jar file I've just created... I receive this error:

E:\Eze\test>jre -cp jfile.jar test.mainTEST
Class not found: test.mainTEST

And the same thing occurs if I do not type the "test." prefix:

E:\Eze\test>jre -cp jfile.jar mainTEST
Class not found: mainTEST

The way I create the jar file is:

E:\Eze\test>jar cf jfile *
and even
E:\Eze\test>jar cf jfile class\test\*


Any idea on what is the problem with my .jar???
Thanks!
Eze.

eze@bumeran.com ---
Ezequiel Glinsky
eze@bumeran.com
Buenos Aires, Argentina
 
I FIXED IT GUYS! Thanks anyway.
It was a path problem.
Eze. ---
Ezequiel Glinsky
eze@bumeran.com
Buenos Aires, Argentina
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top