This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Classpath problem  RSS feed

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
c:\javawebserver2.0\servlets\main\dbproxy\
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!!!
bw
 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I t is very possible that you use package wrong.Refer to:
http://www.javaranch.com/ubb/Forum7/HTML/005204.html
 
Bradley Wong
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
You don't like waffles? Well, do you like this tiny ad?
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!