• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

10 steps backwards

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where is your RecordNotFOundException.java file?
 
Lucy Sommerman
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
J2RE was installed but removed that, think that can alter classpath sometimes at runtime? dunno...clues?
 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
The only taste of success some people get is to take a bite out of you. Or this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic