aspose file tools
The moose likes Beginning Java and the fly likes jar file confusion... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "jar file confusion..." Watch "jar file confusion..." New topic
Author

jar file confusion...

Michael Mendelson
Ranch Hand

Joined: Dec 19, 2000
Posts: 73
Strangely, I find myself in a situation where a class file that I'm putting into a Jar is not found.
The jar is in the classpath explicitly.
The file is in package com.intown.bg.jdbc and is compiled to the appropriate directory (d:\jdk1.3\lib\com\intown\bg\jdbc). If the file is compiled and left in that directory, the program runs fine. But it shouldn't NEED to be there if it's in a jar, right?
What should I check for?
greg philpott
Ranch Hand

Joined: Nov 10, 2000
Posts: 73
There are a few things you should check.
(Firstly can you show what your classpath looks like?, and the code from which you call this class)
in the meantime check that your class file in your jar file is in a corresponding file structure to it package name.
Michael Mendelson
Ranch Hand

Joined: Dec 19, 2000
Posts: 73
Whew! I think the problem lies in my inability to set the classpath when running Tomcat.
Does anyone know how to do that? Thanks in advance.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: jar file confusion...
 
Similar Threads
How do i install optional packages?
simple compiling problem
Signed an applet
How can i deploy class to jar from jdeveloper IDE
error in portlet