Skip to main content



      Home
Home » Newcomers » Newcomers » How to enable Applets on a new JDK/Eclipse install.
How to enable Applets on a new JDK/Eclipse install. [message #1802200] Mon, 04 February 2019 00:25 Go to next message
Eclipse UserFriend
I have a big problem, and I need fairly urgent help. I teach a computer science course that requires the students to have an understanding of applets. Yes, it's an outdated course, I know, but there is no alternative, the students need to use applets.
Applets work fine on my computer because I've had all versions of Java and Eclipse on in the past, so it can clearly find something it needs.
But today, in the first lesson of the course, I installed the latest JDK and the latest eclipse (2018.12). Create an applet, have it output "Hello World" to the screen and of course it doesn't work because applets have been removed.
I need to fix this, and fast. I have them again tomorrow and every day is wasted teaching time, this is critical. I tried installing old versions of JDK and Eclipse but the old version of eclipse just crashes after getting installed over the new version.
In the java module-info I tried "requires java.desktop" which fixed the error warning in the source window, but still won't compile because it can't find sun's applet viewer.

Can anyone provide a simple step-by-step guide on how to get applets working properly on a new eclipse install? I'm tearing my hair out and feeling incredibly frustrated. I know it's stupid that this is even an issue, but it is.
Re: How to enable Applets on a new JDK/Eclipse install. [message #1802268 is a reply to message #1802200] Tue, 05 February 2019 10:05 Go to previous message
Eclipse UserFriend
Never install one version of Eclipse over another. Installing a new version of Eclipse, without overwriting an existing install, and using it with an older JDK should work as you expect. Both applets and the Applet Viewer itself are gone in JDK 11. https://bugs.openjdk.java.net/browse/JDK-8202161 .

[Updated on: Tue, 05 February 2019 10:06] by Moderator

Previous Topic:Marketplace issues
Next Topic:Eclipse for Scientific Computing
Goto Forum:
  


Current Time: Sun Jul 13 12:28:10 EDT 2025

Powered by FUDForum. Page generated in 0.08242 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top