mob-i-l
Posts: 276
Joined: Sat Dec 29, 2012 2:45 am
Location: Lund, Skåne/Scania, Sweden
Contact: Website Facebook Google+ Twitter YouTube

How can you run a Java Applet in Raspbian Buster?

Wed Dec 04, 2019 12:21 am

How can you run a Java Applet in Raspbian Buster? (I have Raspberry Pi 4 B.) I have some applets on: http://www.df.lth.se.orbin.se/~mikaelb/java.html
http://www.df.lth.se.orbin.se/~mikaelb/ ... u/all.html
http://www.df.lth.se.orbin.se/~mikaelb/jpc/c.html

I could not install icedtea-plugin, but I could install Midori. I also have Firefox ESR, and maybe Java applets can work in those browsers.

Code: Select all

$ sudo apt-get install icedtea-plugin
E: Unable to locate package icedtea-plugin
It seems Java8 and Java11 is installed by default in Raspbian Buster, but Java7 was perhaps the last with icedtea-plugin:

Code: Select all

$ update-alternatives --list java
/usr/lib/jvm/java-11-openjdk-armhf/bin/java
/usr/lib/jvm/java-8-openjdk-armhf/jre/bin/java
Have Pi0&1A&1B&1B+&2B&3B&4B w/ Raspbian. Started w/ BASIC on ABC80&ZX81 then Forth, Z80… https://scratch.mit.edu/users/mobluse/ https://github.com/mobluse/ https://twitter.com/mobluse/ https://YouTube.com/MOBiL4u/

Heater
Posts: 13877
Joined: Tue Jul 17, 2012 3:02 pm

Re: Java Applet

Wed Dec 04, 2019 10:14 pm

Wow, you are replying to a question asked 6 years ago about a technology that nobody has used for 10 years before that!

Are there still people who seriously want to run Java applets in a browser?
Memory in C++ is a leaky abstraction .

mob-i-l
Posts: 276
Joined: Sat Dec 29, 2012 2:45 am
Location: Lund, Skåne/Scania, Sweden
Contact: Website Facebook Google+ Twitter YouTube

Re: Java Applet

Thu Dec 05, 2019 12:48 am

It's more to show old programs. The Java applets still work in IE in Windows 10. It would be good if they also could work in some browser in Raspbian Buster.
Have Pi0&1A&1B&1B+&2B&3B&4B w/ Raspbian. Started w/ BASIC on ABC80&ZX81 then Forth, Z80… https://scratch.mit.edu/users/mobluse/ https://github.com/mobluse/ https://twitter.com/mobluse/ https://YouTube.com/MOBiL4u/

JohnsUPS
Posts: 129
Joined: Fri Jul 06, 2018 2:13 am
Location: USA

Re: How can you run a Java Applet in Raspbian Buster?

Thu Dec 05, 2019 4:10 pm

Unfortunately I am in this same predicament.
There are status web pages hosted by small servers installed to monitor the HVAC in buildings where I work. These devices are old, and are using NPAPI still. I can pull them up in my Chrome browser (via a JNLP file/Java Webstart), but have had no success whatsoever with Raspbian Stretch on a Pi 3b+ running IcedTea....

mob-i-l
Posts: 276
Joined: Sat Dec 29, 2012 2:45 am
Location: Lund, Skåne/Scania, Sweden
Contact: Website Facebook Google+ Twitter YouTube

Re: How can you run a Java Applet in Raspbian Buster?

Thu Dec 05, 2019 9:27 pm

I could get Java Web Start to work in Chromium in Raspbian Buster with this command in Bash:

Code: Select all

sudo apt install icedtea-netx
At least the first demo on this page worked:
https://docs.oracle.com/javase/tutorial ... index.html

I can start some Java applets using commands similar to this in Bash:

Code: Select all

appletviewer http://www.df.lth.se.orbin.se/~mikaelb/pocketcalc.html
appletviewer seems to be installed from start in Raspbian Buster.
Have Pi0&1A&1B&1B+&2B&3B&4B w/ Raspbian. Started w/ BASIC on ABC80&ZX81 then Forth, Z80… https://scratch.mit.edu/users/mobluse/ https://github.com/mobluse/ https://twitter.com/mobluse/ https://YouTube.com/MOBiL4u/

JohnsUPS
Posts: 129
Joined: Fri Jul 06, 2018 2:13 am
Location: USA

Re: How can you run a Java Applet in Raspbian Buster?

Sat Dec 07, 2019 2:20 am

mob-i-l wrote:
Thu Dec 05, 2019 9:27 pm
I could get Java Web Start to work in Chromium in Raspbian Buster with this command in Bash:

Code: Select all

sudo apt install icedtea-netx
At least the first demo on this page worked:
https://docs.oracle.com/javase/tutorial ... index.html

I can start some Java applets using commands similar to this in Bash:

Code: Select all

appletviewer http://www.df.lth.se.orbin.se/~mikaelb/pocketcalc.html
appletviewer seems to be installed from start in Raspbian Buster.
I'll give this a try.
Currently, I was using Raspbian Stretch with IcedTea installed and default Chromium browser on a 3B+. Tried various Java installations as well w/ no success. The JNLP files I'm accessing request the use of 8.1+ (I believe that was it), so I'm not sure if IcedTea will work. I'll give it a go Monday and try the demo pages you have listed above.
Today I set up a thin client in lieu of a Pi (TC was running HP ThinPro, a version of Debian), and it too ran IcedTea w/ no success accessing the JNLP web start page.

Return to “Java”