• Post Reply Bookmark Topic Watch Topic
  • New Topic

include jar in classpath  RSS feed

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
I got a problem, I have created a some packages which i want to add that in a jar file,It's working on but I can't able to import that package in my java program, it saying could not find the package although i given that package in a classpath
 
Bartender
Posts: 9444
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you were able to create a jar file, but you can't import any packages from that jar file even though the jar is in your classpath? I'd say we need to know:
1. what package you are trying to import
2. what the contents of your jar file are (jar -tvf myJar.jar)
3. what your classpath is.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!