Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

10 steps backwards

 
Lucy Sommerman
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where is your RecordNotFOundException.java file?
 
Lucy Sommerman
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
*all* code is in the same place
c:\javaClasses\code.

That's what is so weird....
 
Lucy Sommerman
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
J2RE was installed but removed that, think that can alter classpath sometimes at runtime? dunno...clues?
 
Daniel Dalton
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic