• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java - Importing from a Jar file have touble with set CLASSPATH  RSS feed

 
Ellen fish
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello experts,

I'm try to import java file in unix.
Under bash, I tried
export CLASSPATH=/blah/blah/some.jar:/blah/some2.jar
The CLASSPATH variable was initially undefined.

and when I try to compile my java program, I get error message

error: error reading /blah/blah/some.jar; error in opening zip file

Any suggestions? or what I mit be doing wrong?

Thank you

-minifish
 
Satya Maheshwari
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe your jar file is not built correctly. You may like to look here:

http://mindprod.com/jgloss/jar.html
[ October 29, 2008: Message edited by: Satya Maheshwari ]
 
Campbell Ritchie
Marshal
Posts: 56533
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ellen Fish, welcome to JavaRanch.
CR
[ October 29, 2008: Message edited by: Campbell Ritchie ]
 
Ellen fish
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can extract the .jar file with no problem.
Is there anything else I could try?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!