This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Problem w/ program" Watch "Problem w/ program" New topic
Author

Problem w/ program

mjrox88
Greenhorn

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
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

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
Greenhorn

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.

Layne


Java API Documentation
The Java Tutorial
mjrox88
Greenhorn

Joined: Nov 18, 2004
Posts: 4
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
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1817

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.
 
 
subject: Problem w/ program
 
Similar Threads
UML composition doubt
String literals immune from GC, correct?
Find shortest string with all the words in any order
Implementing UML Concepts in Java
Problem w/ program