Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

class not found error.... help!

 
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?
 
Ranch Hand
Posts: 1143
1
Eclipse IDE Oracle Java
  • 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 ]
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
      Bookmark Topic Watch Topic
    • New Topic