Im having a problem with my SlotMachine program. I have 2 seperate classes saved, a class "Wheel" and a class "SlotMachine". Look at the SlotMachine code:
this is just the beginning of the code, but i get an error that says that it can't resolve symbol for class Wheel, but I compiled the wheel program just fine and this should work. This program works at my school but not at home.
(Edited by JAM to add the [CODE] and [/CODE] tags) [ November 20, 2004: Message edited by: Joel McNary ]
This forum is for talking about performance problems -- i.e., slow programs. I suppose "not even starting" is an extreme form of "slow", but still, this is off-topic here. I'm moving it to Java in General(Beginner) for discussion.
Can you describe your directory layout? It will help if we know where your source files and class files are located. Perhaps we can help you resolve the problem with this information.
The directory is C:\JavaP\Programming\SlotMachine\Wheel.java that is for the Wheel program The directory for the SlotMachine program is C:\JavaP\Programming\SlotMachine\SlotMachine.java
this program works fine in my school but not at my home
Sounds like your CLASSPATH is not set up correctly. Follow the link to get instructions on how to set up the CLASSPATH; it sounds like you need to include "C:\JavaP\Programming\SlotMachine" in your classpath.
Also, Please use [CODE] and [/CODE] tags around your code blocks -- it makes them easier to read. [ November 20, 2004: Message edited by: Joel McNary ]
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.