wood burning stoves 2.0*
The moose likes Servlets and the fly likes Classpath problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Classpath problem" Watch "Classpath problem" New topic

Classpath problem

Bradley Wong

Joined: Aug 10, 2001
Posts: 16
my classpath and path are set up as follows:
SET CLASSPATH=c:\jdk1.3\lib\tools.jar;c:\jdk1.3\lib\dt.jar;c:\jdk1.3\lib\servlet.jar;
SET PATH=%PATH%;c:\jdk1.3\bin;
i have my files in c:\javawebserver2.0\servlets\main\other\ and
it seems that any .java file that contains another .java file object gives a compile error. It's as if they were not in the same package and can't see each other. But I believe
the package statements are correct (I did not change them from when they worked on another environment). Therefore,
maybe it's a classpath error? Can you please let me know what you think? For example, Employee.java extends Person.java, but it appears that the Employee.java file cannot see the Person.java file.
any comments would be greatly appreciated!!!
ruijin yang
Ranch Hand

Joined: Apr 29, 2001
Posts: 96
I t is very possible that you use package wrong.Refer to:

SUN Certified Business Component Developer Java EE Platform 5 (2008)<br />SUN Certified Developer for Java Web Services (2007)<br />IBM WebSphere Portal V5.1 Application Development (2006)<br />SUN Certified Web Component Developer (2001)<br />SUN Certified Java 2 Programmer (2001)
Bradley Wong

Joined: Aug 10, 2001
Posts: 16
I am confident that the package statements are correct. And my directory structure is the same as it was before. But on this new pc, I am getting the compile error, which makes me think it's a classpath problem. any comments?
wood burning stoves
subject: Classpath problem
Similar Threads
Unable to compile these java files
HELP! I can't compile!!! Classpath / packaging problem?
Simple CLASSPATH problem for compilation of servlets in JWS2.0
'javax.servlet . * package does not exist !'
Cofiguring JDBC