DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: calling a class in a .jar from html

  1. #1
    Join Date
    Sep 2005

    calling a class in a .jar from html

    Good morning.

    I am attempting to access a class that is in a .jar from html. Here's the code:

    <APPLET ARCHIVE="javaTest.jar" CODE="Go1.class" WIDTH=200 HEIGHT=200></APPLET>

    It aint working. The msg is "Applet Go1 notinited". The javaTest.jar file is the same folder as the html. I developed the .jar using WDSC - I can click on it and see that Go1.class is in the .jar.

    The file has a package name - WDSC sets it up that way. Do I need to qualify the archive location?

    I am very new to Java and html - any help at all is greatly appreciated.

  2. #2
    Join Date
    Aug 2003
    Give this a shot:
    It looks like you should remove the .class extension, but I would read it over a bit more.

    Hope this helps.

Similar Threads

  1. Replies: 2
    Last Post: 04-17-2009, 11:14 AM
  2. Replies: 5
    Last Post: 10-17-2002, 01:58 PM
  3. Calling parent class methods from a sub class
    By Nate McFeters in forum Java
    Replies: 0
    Last Post: 12-07-2001, 08:04 PM
  4. Calling base class methods
    By GR in forum Java
    Replies: 1
    Last Post: 11-09-2000, 06:38 PM
  5. Newbie question: Calling method in class
    By Gary J. in forum Java
    Replies: 4
    Last Post: 09-17-2000, 05:18 PM

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
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

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