"We are what we repeatedly do. Excellence, therefore, is not an act but a habit."
Ed Connery wrote:The other thing is a question: what happens when you have a lot of code in multiple .jar files? Doesn't the classpath get a bit complicated?
Ed Connery wrote:
This problem came up in OOP-1 in the Cattle Drive, so if you haven't done OOP-1 yet, please get lost, now (which is why I'm not posting this in the Cattle Drive forum).
Maneesh Godbole wrote:
Ed Connery wrote:
This problem came up in OOP-1 in the Cattle Drive, so if you haven't done OOP-1 yet, please get lost, now (which is why I'm not posting this in the Cattle Drive forum).
Do I understand you correctly, that you are actually asking people to get lost if they haven't done OOP 1 yet?
Ed Connery wrote:The other thing is a question: what happens when you have a lot of code in multiple .jar files? Doesn't the classpath get a bit complicated?
I simplified my CLASSPATH:
.;C:\Java\RanchCommon\jr.jar
Here's my import statement:
import com.javaranch.common.*;
Here is the path going inside jr.jar:
C:\Java\RanchCommon\jr.jar\com\javaranch\common\
GDate.class and JDate.class are in that directory.
An example statement would be
GDate today = new GDate();
Both instances of GDate are flagged as "cannot find symbol...class GDate"
The code works fine if I unzip the jar in RanchCommon.
I am at a loss.
Ed Connery wrote:Here is the path going inside jr.jar:
C:\Java\RanchCommon\jr.jar\com\javaranch\common\
Joanne
Consider Paul's rocket mass heater. |