• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem w/ program

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Include the wheel class in your slotmachine class.
 
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
and use code tags.
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 1844
Eclipse IDE Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic