Hangman classes not working at home.

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Apr 2006
Posts: 4
Reputation: rabidpanda is an unknown quantity at this point 
Solved Threads: 0
rabidpanda rabidpanda is offline Offline
Newbie Poster

Hangman classes not working at home.

 
0
  #1
Apr 26th, 2006
Well, I'm working on the hangman program. We were told to do it with three classes, a hangman class, an interface class and a tester class. I got the program working at school last night, but when I loaded it at home, it doesnt compile right. The hangman class will compile fine, but the interface wont recognize the hangman class, I get the following message.

F:\hangman\Interface.java:5: cannot find symbol
symbol : class Hangman
location: class Interface
private Hangman logic;
^
F:\hangman\Interface.java:7: cannot find symbol
symbol : class Hangman
location: class Interface
public Interface(Hangman l)
^
2 errors

Tool completed with exit code 1

this also happens with a previous project of mine so I assume it's something set up in my computer. Any ideas?
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: Hangman classes not working at home.

 
0
  #2
Apr 26th, 2006
Looks like you need to compile the hangman class first.
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 4
Reputation: rabidpanda is an unknown quantity at this point 
Solved Threads: 0
rabidpanda rabidpanda is offline Offline
Newbie Poster

Re: Hangman classes not working at home.

 
0
  #3
Apr 27th, 2006
I already tried that several times, and it still doesnt work.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,273
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 378
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Hangman classes not working at home.

 
0
  #4
Apr 27th, 2006
Er are you using the latest download of the Jdk and j2re on your computer?
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 4
Reputation: rabidpanda is an unknown quantity at this point 
Solved Threads: 0
rabidpanda rabidpanda is offline Offline
Newbie Poster

Re: Hangman classes not working at home.

 
0
  #5
Apr 27th, 2006
I know I'm using the latest JDK, but not sure about the J2re
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 146
Reputation: G-Do is an unknown quantity at this point 
Solved Threads: 28
G-Do's Avatar
G-Do G-Do is offline Offline
Junior Poster

Re: Hangman classes not working at home.

 
0
  #6
Apr 27th, 2006
Hi rabidpanda,

It could be a classpath issue. Is Hangman.java in the same directory as your other two files? If not, try setting the classpath explicitly using the -classpath command-line option to javac.
Vi veri veniversum vivus vici
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 4
Reputation: rabidpanda is an unknown quantity at this point 
Solved Threads: 0
rabidpanda rabidpanda is offline Offline
Newbie Poster

Re: Hangman classes not working at home.

 
0
  #7
Apr 27th, 2006
setting the classpath in the control panel did it. Thanks for the help.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC