my dog learned polymorphism
The moose likes Beginning Java and the fly likes Problem w/ program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Storm Applied this week in the Other Open Source APIs forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Problem w/ program" Watch "Problem w/ program" New topic

Problem w/ program


Joined: Nov 18, 2004
Posts: 4
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 ]
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24189

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.

[Jess in Action][AskingGoodQuestions]
Vj Kamath

Joined: Nov 19, 2004
Posts: 15
Include the wheel class in your slotmachine class.
Matt Fielder
Ranch Hand

Joined: Oct 27, 2004
Posts: 158
and use code tags.
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
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.


Java API Documentation
The Java Tutorial

Joined: Nov 18, 2004
Posts: 4
The directory is C:\JavaP\Programming\SlotMachine\
that is for the Wheel program
The directory for the SlotMachine program is C:\JavaP\Programming\SlotMachine\

this program works fine in my school but not at my home
Joel McNary

Joined: Aug 20, 2001
Posts: 1824

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.
I agree. Here's the link:
subject: Problem w/ program