This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Java Classpath error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java Classpath error" Watch "Java Classpath error" New topic
Author

Java Classpath error

ciara sweeney
Greenhorn

Joined: Apr 26, 2006
Posts: 2
im having problems compiling ANYTHING at all in Textpad.
I've installed and reinstalled new JDK and JRE packages.
however i stil cant get my classpath settings right.
anybody know how to remedy this?

In the environment settings :
CLASSPATH : c:\program~1\Java\jdk1.5.0_06\bin
PATH: c:\program~1\java\jdk1.5.0_06\bin

Im really stuck
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Welcome to JavaRanch!

The PATH looks correct, and the CLASSPATH should not be a concern for you (leave it alone). When you save in TextPad, are you selecting "Java (*.java)" for for type?

File name: myFile.java
Save as type: Java (*.java)

If so, and it's still not working, then could you post the error messages are you getting?

Also, are you able to compile and run using something other than TextPad (for example, NotePad)?

(I just downloaded and tested TextPad, and it worked fine for me without any special configuration.)


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

Leave CLASSPATH unset. Certainly don't set it to the bin directory of your JDK or JRE installation.

If you leave it unset, Java will automatically look in the current directory for class files.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
wood burning stoves
 
subject: Java Classpath error
 
Similar Threads
Setting the classpath
JDBC driver - java lang ClassNotFoundException
Noclass Exception
Java: connecting to mysql [Unsolved]
java on command