Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 7 of 7

Thread: I need to execute Applets in browser

  1. #1
    Junior Member
    Join Date
    Jun 2022
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question I need to execute Applets in browser

    Hello

    First of all, since I am new here, I wish to greet everyone in the forum

    I would really appreciate if you can help me with a problem. I am a teacher and I have a collection of physics applets that have been very useful to me for a long time. Since the last editions of Java it has been more and more difficult to use them, and now I can't at all. I tried some old browsers and Chrome extensions but it didn't work.
    I need to know if there is a way to translate those web pages that contain applets into some other form that will allow me to run them, or if there is a third-party platform that supports it.
    Thank you very much for your time.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: I need to execute Applets in browser

    Applets can often be rewritten to execute as a desktop app by wrapping the applet code in a class with a frame and providing the interface/methods that the applet uses and calling the applet's methods as needed.

    There is a program in the SDK that will execute applets: Appletviewer
    See if that does what you want

    I do not think there are any browsers that now support applets.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Jun 2022
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: I need to execute Applets in browser

    I am trying with Appletviewer, however it finds errors in the code:java.lang.ClassFormatError: Name index 0 in LocalVariableTable has bad constant type in class file lithiccalendar
    I guess it needs some reconversion

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: I need to execute Applets in browser

    Do you get that error with more than one applet?
    What version of the JDK are you using?

    Do you have the source files for the applets? Can you compile them?

    Try posting the error message on Google. Here is one of the responses I get:
    https://nick-lab.gs.washington.edu/j...rticle-01.html
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Jun 2022
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: I need to execute Applets in browser

    I have read the mentioned article, and I think it effectively identifies the problem. Unfortunately I don't have the sources, so I can't recompile.
    Anyway thank you very much for your help.

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: I need to execute Applets in browser

    Can you post one of the applets on a site where I could download it?

    What version of java do you have?
    If you don't understand my answer, don't ignore it, ask a question.

  7. #7
    Junior Member
    Join Date
    Jun 2022
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: I need to execute Applets in browser

    I have decided to stop trying because my time for experimentation is short. In any case, thank you very much for your attention. My best regards.!

Similar Threads

  1. Replies: 2
    Last Post: August 7th, 2014, 12:46 PM
  2. Replies: 4
    Last Post: April 27th, 2014, 06:40 AM
  3. Change the default JRE the browser uses to open applets
    By ComeOn in forum Java Theory & Questions
    Replies: 2
    Last Post: March 8th, 2014, 03:39 AM
  4. how to execute multiple different queries in one execute?
    By Sakina in forum JDBC & Databases
    Replies: 1
    Last Post: June 9th, 2012, 09:40 AM
  5. Applets
    By santiagomez in forum Java Theory & Questions
    Replies: 2
    Last Post: July 31st, 2010, 04:05 PM

Tags for this Thread