Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Java Classpath error  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.)
 
Java Cowboy
Sheriff
Posts: 16084
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!