| Author |
classpath JBuilder6
|
bob dapaah
Ranch Hand
Joined: Jan 15, 2002
Posts: 46
|
|
I have tried to compile the example given in Marty Hall's 'Core Servlets and Java Server Pages' where two classes reside in the same package (package moreservlets) in the deployment directory /webapps\ROOT\web-inf\classes\moreservlets. My development directory is E:\apps\moreservlets. One of the classes references the other class from the same package. The compiler claims not to 'know' about the referenced class. The book suggests that the class path should be altered to show the development directory folder in the form: 'E:\apps\'. This allows the classes to compile at the command line but JBuilder6 still has problems finding the other class. I have tried adding the 'E:\apps\' path to the alter JDK's screen and to the project required libraries but to no avail. has anyone else encountered this problem....very frustrating Is there any way to get JBuilder6 to recognise the CLASSPATH?
|
 |
Mike Curwen
Ranch Hand
Joined: Feb 20, 2001
Posts: 3695
|
|
Have you specified an output path? JBuilder will place compiled *.class files into the output directory (by default, 'classes'). This directory is appended to the CLASSPATH when compiling, so it should find your classes just fine. By default it would look like:
|
 |
Mike Curwen
Ranch Hand
Joined: Feb 20, 2001
Posts: 3695
|
|
Here is the relevant part from JBuilder's docs: I'm also moving this to the IDE forum. [ March 01, 2002: Message edited by: Mike Curwen ]
|
 |
 |
|
|
subject: classpath JBuilder6
|
|
|