• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Marshal
Posts: 79151
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can extract the .jar file with no problem.
Is there anything else I could try?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic