Cindy Burkhardt

Greenhorn
+ Follow
since Apr 01, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Cindy Burkhardt

I figured it out. The problem was my Classpath. It should be nothing. If one already has a Classpath set for another application, such as junit testing (as I did), you need: CLASSPATH = [other path];;

That's right, end it with a double semi-colon.
19 years ago
I am trying to run from the command line in XP. I am typing "java Main" from the current directory of Main.class. I can compile fine, just not run. Here are my environment variable paths:

Classpath: C:\Sun\AppServer\jdk\bin\java

Path: C:\Sun\AppServer\jdk\bin;

Java_Home: C:\Sun\AppServer\jdk

Can somebody please help?
19 years ago
I've purchased a new computer since last using Java (Windows XP), and know I need to set the path to be able to get it to compile from the command line. I've installed J2EE, and I've installed TextPad.

I noticed that through the installation process, the following PATH user variable was created: C:\Sun\AppServer\bin

I added the following to the PATH variable: C:\j2sdk1.4.2_04\bin; and created a new CLASSPATH variable that is just "." (a single dot). This was per the instructions on the following link: http://www.cs.ucsb.edu/~teliot/Path_and_Classpath.htm

I restarted the computer and typed java and javac respectively in a command line window. java was recognized, but javac was not.

I also opened TextPad and copy and pasted Hello.java code in, saved it as such, and tried to compile it from within TextPad. It says "The system cannot find the file specified".

So obviously things are not working. Could somebody please help?
19 years ago