Java class files with "$" in them.


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Java class files with "$" in them.

  1. #1
    Join Date
    Jul 2003
    Posts
    2

    Question Java class files with "$" in them.

    I have a geocities website and I want to run my applets in an HTML window. My applet has more than one class file. Ex: MyApplet.class, MyApplet$1.class, MyApplet$2.class. When I try to upload the class files, I get an "invalid file name" error because of the "$". I can rename the file and upload, but it wont work correctly. It works just fine on my PC, but not over the web. Any ideas?

  2. #2
    Join Date
    Mar 2003
    Posts
    834
    Create a JAR (Java ARchive) locally using these files:
    Code:
      c:\> jar -cvmf manifest.txt MyApplet.jar *.class
    You then upload this single file.
    ArchAngel.
    O:-)

  3. #3
    Join Date
    Jul 2003
    Posts
    2

    Smile Thanks for the help!

    Thanks for the help. Your answer helped out tremendously. Visis my website to see the results of your insight: www.geocities.com/javaman302002


    Thanks again!
    javaman302002

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center