Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

class not found error.... help!

 
Tom Niedoba
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an applet which has another class defined within, this class is a thread that does some work (could be multithreaded later on).
When building on my computer the sub class is also compiled:
mainclassname$threadclass.class
I'm trying to use this on a geocities webpage, but i cannot upload the class name with the "$" and I don't know how else to do this. Initially I thought the subclass is complied during runtime on the user's computer but I guess not because when loading the webpage, the console cannot find the subclass.
Any way around this?
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tom,
These are merely suggestions:
  • Make "threadclass" a separate class.
  • Make "mainclassname" implement the "java.lang.Runnable" interface.


  • By the way, I'm sure you can upload "mainclassname$threadclass.class", you just need to 'escape' the "$". Perhaps try doing FTP from the command line rather than via a GUI FTP client
    Good Luck,
    Avi.
    [ November 18, 2003: Message edited by: Avi Abrami ]
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic