Keitaro Oman

Greenhorn
+ Follow
since Sep 09, 2010
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 Keitaro Oman

Thank you all very much! You've all been great help! I hope I can contribute to this site as well, once I get more of a grasp on Java ^^
13 years ago
Ah, nevermind I think I got it after the CLASSPATH errors I was receiving earlier. I just tried javac SimpleDotComTestDrive. Generally the Windows CLI is not case sensitive, however, I guess the JVM is. After the CLASSPATH fix and adjusting my Case Sensitivity, it works as intended. I would have never caught the CPATH var without the help! I know I'm asking a bit much, but could anyone explain why the CLASSPATH variable needs the ".;" at the beginning? It's just for self education in case I run into these problems again. Thank you all very much for all of the help!
13 years ago
I tried doing it without the .class and got more errors.
13 years ago
I went ahead and changed the CLASSPATH as suggested and then tried the command I was doing previously (from the /java/bin folder and directly specifying the .java file) and got the same error. I then cd'd into the /simpledotcom/src folder and did "javac *.java" which compiled both of my class files, but then when the program runs ("java simpledotcomtestdrive.class") it gives me this error:


Went from one thing right to another lol.
13 years ago
Thank you all very much! I am using Java 1.6_u21 and the only thing I'm using to write these files is Notepad++ on WinXp 32b. So once I wrote these with Npp, I saved them as SimpleDotCom.java and SimpleDotComTestDrive.java. I'm using the compiler that is issued with the JDK, so the command I'm running is 'C:\Program Files\Java\jdk1.6.0_21>.\bin\javac "C:\Documents and Settings\user\My Documents\Projects\SimpleDotCom\src\SimpleDotComTestDrive.java"' and the exact error I'm getting is

13 years ago
The file names are the same as the class (ie: the SimpleDotCom class is in SimpleDotCom.java). I honestly don't know, but isn't that always the case? Also, I've yet to be able to run the program due to the compiler error I receive with the above problem.
13 years ago
RIght now all I have is a directory named SimpleDotCom with both of the above .java files in it.
13 years ago
I'm trying to write the simple program from page 106 in Head First Java (Second Ed.). The idea is that this program would create a test for a very simple Battleship type game involving nothing more than a simple guess, matching the guess with a location in an array, and then reporting back accordingly (on whether you guessed the correct number in the array). The problem is my test class keeps reporting it cannot find the SimpleDotCom class. I'm sure it's something simple, but I'm just not seeing it. Thank you very much for the help ^^

13 years ago