Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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

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: 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:
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 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

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:

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?
subject: 10 steps backwards
Similar Threads
Running java program from another java program
please help running programs created in jsdk 1.4 into jsdk 1.6
compilation problem using classpath
Problem with the first example of HFSJ