Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem w/ program

 
mjrox88
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Vj Kamath
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Include the wheel class in your slotmachine class.
 
Matt Fielder
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and use code tags.
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
mjrox88
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic