File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes 10 steps backwards Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "10 steps backwards" Watch "10 steps backwards" New topic
Author

10 steps backwards

Lucy Sommerman
Ranch Hand

Joined: Nov 25, 2004
Posts: 61
Have switched computers and updated to JDK1.5.0_05. Env vars as below. When I compile, why do I get:
DBAccess.java:75: cannot find symbol
symbol : class RecordNotFoundException

Classpath is fine -- all classes are in C:\javaClasses\code. Thought this was a classpath error...argh..nearly finished as well...any clues obviously have something simple wrong. DBAccess is not in a package at this stage...packaging it all later...clues? Won't compile with -cp either

CLASSPATH: C:\javaClasses\code

PATH: \datasearch\lib\apache\libexec;C:\datasearch\lib;C:
ystem32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Progr
I Control Panel;C:\Program Files\Director\bin;C:\Pro
m\;C:\Program Files\Java\jdk1.5.0_05\bin

JAVA_HOME: C:\Program Files\Java\jdk1.5.0_05
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Where is your RecordNotFOundException.java file?


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Lucy Sommerman
Ranch Hand

Joined: Nov 25, 2004
Posts: 61
*all* code is in the same place
c:\javaClasses\code.

That's what is so weird....
Lucy Sommerman
Ranch Hand

Joined: Nov 25, 2004
Posts: 61
J2RE was installed but removed that, think that can alter classpath sometimes at runtime? dunno...clues?
Daniel Dalton
Ranch Hand

Joined: Mar 20, 2005
Posts: 146
Hi Lucy - as Barry say's more detail would be useful. I'm assuming that you're using javac from the command line rather than an ant build script for instance. Try specifying the -verbose switch on javac to see if you get more information about why it's going wrong. Did you specify -sourcepath ?? Should you have?

The following doc may help:

Javac
Lucy Sommerman
Ranch Hand

Joined: Nov 25, 2004
Posts: 61
yea it works if I supply a sourcepath - but I compile from that directory so I would have thought it would have looked there automatically, always has before with JDK - any clues why it would need the source path now? O well, I guess I can just set sourcepath as an evironment variable?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 10 steps backwards