db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stanley Bradbury <Stan.Bradb...@gmail.com>
Subject Re: question on Working with JavaDB Activities
Date Tue, 24 Apr 2007 01:51:52 GMT
Besides what John suggested check to be sure you have a JDK (developers 
kit) and not just the JRE (runtime environment) on your machine.  The 
JRE does not contain the java compiler (javac.exe).  You can do a 
search/find to locate javac if you are not sure if/where it is.  If not 
found you need to install a JDK

I don't know JCreator but other IDEs I am familiar with have special 
ways of setting up CLASSPATH for each Project/Environment.  Check that 
the Derby jar files are known / included in the JCreator workspace.  I 
would bet that JCreator has javac somewhere in it's installation.

Joe Annoni wrote:
> Couple of novice questions here (your help is much
> appreciated!):
> 1) While going through the "Working with JavaDB" pdf
> in Step 2 of Activity 3 (ie, page 14), I'm getting a
> command line error of "'javac' is not recognized as an
> internal or external command...".  I presume there is
> a problem with my JAVA_HOME path, but I've changed it
> from the "java/j2re1.4.2_03" directory (which has
> worked for everything else) to "java/jdk1.6.0" (where
> the 'javac.exe' file exists) and still nothing.  Is
> there somewhere else where the 'javac' command should
> be picked up?
> 2) Separately, I compiled the WwdEmbedded.java file in
> an IDE (JCreator) and when I trying executing it I get
> "ClassNotFoundException:
> org.apache.derby.jdbc.EmbeddedDriver".  I understand
> this may be a CLASSPATH problem, however when I check
> %classpath% it shows it pointing to the 'derby.jar'
> and 'derbytools.jar' files.  Any other common problems
> or suggestions?
> Thanks for your help!
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 

View raw message