Run java applet on ubuntu

Introduction

In the past I made a simple product using applet for studying java, but recently when I compiled it to run the past product with JDK11

Caution:Test.java is using or overriding a deprecated API.
Caution:Detail is,-Xlint:Recompile with the deprecation option.`

If you recompile with -Xlint: deprecation

Test.java:3:warning:[deprecation] javax.swing JApplet is not recommended
public class Test extends javax.swing.JApplet {
                                       ^
1 warning

I got a sentence saying, and when I tried to open it with applet viewer, I got various errors, and it was an error that I did not understand well just by studying java a little to take the basic information engineer exam, so please check it. For the first time, I learned that applet doesn't work with jdk11 ...

I really wanted to move past productions, so I hurriedly uninstalled jdk11 and reinstalled jdk8 to get applet working. I will summarize the procedure as a memorandum.

Method

First, to uninstall openjdk-11-jdk, do the following: sudo apt-get purge openjdk-\ * icedtea- \ * icedtea6-\ * When you're done, check with java -version that there are no such files or directories, then run sudo apt install openjdk-8-jdk to install ʻopenjdk-8-jdk. .. When completed, check with java -version` and the installation is complete. You should not get an error when you compile again.

Recommended Posts

Run java applet on ubuntu
Run PostgreSQL on Java
Run tiscamera on Ubuntu 18.04
Install OpenJDK7 (JAVA) on ubuntu 14.04
Oracle Java 8 on Docker Ubuntu
Install Java on WSL Ubuntu 18.04
Run chromium-mir-kiosk on Ubuntu Core
Run Eclipse CDT on Ubuntu
Run Java EE applications on CICS
Run tomcat shell script on java8
Enable Java 8 and Java 11 SDKs on Ubuntu
Java cannot be installed on Ubuntu 13.04
Run NordVPN on Docker (Windows) Ubuntu container
Install OpenJDK (Java) on the latest Ubuntu
Build OpenCV with Java Wrapper on Ubuntu 18.04
Until you run apache on ubuntu on docker
Run Ubuntu + ROS with Docker on Mac
tmux on Ubuntu
Display the System Monitor applet on the Ubuntu 20.04 taskbar
[Java] Build Java development environment on Ubuntu & check execution
Compile and run Java on the command line
Run Mecab on Win10 + Eclipse + Java + cmecab-java (January 2020)
How to run NullpoMino 7.5.0 on Ubuntu 20.04.1 64bit version
Screen recording on Ubuntu 20.04
Web Bluetooth on Ubuntu20.04
Let's touch on Java
Run STS4 on Mac
Try DisplayLink on Ubuntu 20.04
Reinstall Kubernetes on Ubuntu 19.10
Install Java on Mac
Use Flutter on Ubuntu
Test run on rails
Install Ruby on Ubuntu 20.04
Setting JAVA_HOME on Ubuntu
Install Autoware on Ubuntu 18.04.5
Put JetBrains on Ubuntu
Use mkdir on ubuntu
Apache2 on Ubuntu20.04 LTS
Use cpplapack on ubuntu
ubuntu on wsl part 10
Install Homebrew on Ubuntu 20.04
Run Processing on Ant
Build Zabbix on Ubuntu 20.04
Run phpunit on Docker
How to run Java EE Tutial on github on Eclipse
Run kuromoji on Win10 + Eclipse + Java environment (January 2020 version)
Using Flutter on Ubuntu (Part 2)
Building WebGIS on Ubuntu20.04 LTS
Put Ubuntu 20.04.1 on Raspberry Pi 4
Run batch with docker-compose with Java batch
Build VNC Server on Ubuntu 20.04
Install Cybozu Office 10 on Ubuntu 20.4
Downgrade Java on openSUSE Linux
Extend swap area on Ubuntu 18.04
Install Docker on Ubuntu Server 20.04
Japanese input on Ubuntu20.04 Desktop
Reflection on Java string manipulation
Run openvpn on Docker (windows)
Install zabbix agent (5.0) on Ubuntu 18.04
Install MAV Proxy on Ubuntu 18.04
Record video on ubuntu18.04 LTS