Skip to content

2024

How to install icedtea-web with OpenJDK-8?

Java

sudo dnf update -y
sudo dnf install java-1.8.0-openjdk-devel -y
java -version

Find the Java Installation Path

sudo alternatives --config java

Set JAVA_HOME Environment Variable

/usr/lib/jvm/java-11-openjdk-11.0.16.1.1-1.el8_6.x86_64
vi ~/.bashrc
vi ~/.bash_profile
vi /etc/profile

export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-11.0.16.1.1-1.el8_6.x86_64
export PATH=$JAVA_HOME/bin:$PATH
Verify the Setup
echo $JAVA_HOME
java -version

IcedTea-Web

sudo dnf install epel-release -y
sudo dnf install icedtea-web -y
javaws -viewer
javaws /path/to/application.jnlp
javaws URL 

JVM Settiing

javaws -viewer

How to setup Java Environment Variables

Windows

Download and Install Java

  • Download latest version or your required version Java (Java Oracle , OpenJDK)
  • Install on your system

Set JAVA_HOME and PATH

  • Right-click on This PC (or My Computer) and select Properties.
  • Click on Advanced system settings.
  • In the System Properties window, click Environment Variables.

Add JAVA_HOME:

  • Under System variables, click New.
  • Set Variable name as JAVA_HOME.
  • Set Variable value as the path where Java is installed. For example: C:\Program Files\Java\jdk-XX(replace XX with the version number).

Update PATH:

  • Under System variables, find the Path variable, select it, and click Edit.
  • Click New and add %JAVA_HOME%\bin

Verify Setup:

  • Open a new command prompt and type

java -version
javac -version
echo %JAVA_HOME%
- You should see the Java version and the JAVA_HOME path.

Windows

  • Right click on the 'My Computer' icon on your desktop and select 'Properties'.
  • Click the 'Advanced' tab.
  • Click the 'Environment Variables' button.
  • Click 'New'.
  • In the 'Variable name' field, enter 'JAVA_HOME'.
  • In the 'Variable value' field, enter the directory (including its full path) where you installed the JDK.
  • Restart the computer.

Linux

For your current user:

  • Open up a shell / terminal window
  • vi ~/.profile (replace vi with your favorite text editor)
  • Add export JAVA_HOME=/path/to/java/home/dir on its own line at the end of the file
  • Add export PATH=$JAVA_HOME/bin:$PATH on its own line immediately after
  • Save, and restart your shell
  • Running java -version should give you the desired results

For all users in the system:*

  • Open up a shell / terminal window
  • vi /etc/profile (replace vi with your favorite text editor)
  • Add export JAVA_HOME=/path/to/java/home/dir on its own line at the end of the file
  • Add export PATH=$JAVA_HOME/bin:$PATH on its own line immediately after
  • Save, and restart your shell
  • Running java -version should give you the desired results
  • If you are using a GUI, you may not need to open up the shell. Instead, you might be able to open the file directly in a graphical text editor.

Linux (Ubuntu or other distros):

Install Java

  • Install Java using the package manager for your Linux distribution:

    sudo apt update
    sudo apt install default-jdk
    
  • For specific versions (like OpenJDK 11), use:

sudo apt install openjdk-11-jdk

FAQ Setting JAVA_HOME

How to recover my lost NEPH Number ?

Have you already obtained a NEPH, but lost it or it is no longer active?

It's not a problem , we have solutions to allow you to resume your training!

👉 If you have the possibility, contact your old driving school so that they can give you your NEPH and your code result ( if you obtained it ).

👉If your driving school no longer has it or has left the face of the earth, don't panic! You can request your NEPH from the driving license department of your department of residence .

👉 If you are in possession of your NEPH but it appears to be inactive ( unable to register for the code test, for example ), you can request to have your NEPH reactivated by the driving license department in your department of residence.

OpenSSL Certificate Authority

OpenSSL is a free and open-source cryptographic library that provides several command-line tools for handling digital certificates. Some of these tools can be used to act as a certificate authority.

A certificate authority (CA) is an entity that signs digital certificates. Many websites need to let their customers know that the connection is secure, so they pay an internationally trusted CA (eg, VeriSign, DigiCert) to sign a certificate for their domain.

In some cases it may make more sense to act as your own CA, rather than paying a CA like DigiCert. Common cases include securing an intranet website, or for issuing certificates to clients to allow them to authenticate to a server (eg, Apache, OpenVPN).

OpenSSL Certificate Authority

Rocky Linux yum update failed

 Curl error (28): Timeout was reached for https://mirrors.rockylinux.org/
[root@rocky ~]# yum update
Rocky Linux 9 - BaseOS                                                                                                                               0.0  B/s |   0  B     03:02
Errors during downloading metadata for repository 'baseos':
  - Curl error (28): Timeout was reached for https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=BaseOS-9 [Failed to connect to mirrors.rockylinux.org port 443: Connection timed out]
Error: Failed to download metadata for repo 'baseos': Cannot prepare internal mirrorlist: Curl error (28): Timeout was reached for https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=BaseOS-9 [Failed to connect to mirrors.rockylinux.org port 443: Connection timed out]

Solution

  1. Stop the system firewall
`systemctl status firwalld

Install Package Based on Distros

Depending on the Linux distribution you are using, it will have a different Linux package manager. Here's a quick list of each package manager for popular distributions.

https://en.wikipedia.org/wiki/List_of_Linux_distributions

Debian Based

Example

Debian, Ubuntu, Linux Mint

Package Format: .deb
APT (Advanced Package Tool): The primary package management system.
sudo apt update: Updates the package index.
sudo apt upgrade: Upgrades all installed packages to their latest versions.
sudo apt install <package_name>: Installs a package.
sudo apt remove <package_name>: Removes a package.
sudo apt autoremove: Removes unnecessary packages.

Backend: dpkg (Debian Package) is the low-level tool that APT uses to handle .deb files.

dpkg -i <package.deb>: Installs a package file.
dpkg -r <package_name>: Removes a package.
dpkg -l: Lists all installed packages

Alternatives to Oracle Java / Web Start

There are a few alternatives to Oracle Java, including an alternative for Java WebStart (which Oracle deprecated).

NamePriceJCK certifiedVersionsOpenJFX/JavaFX¹Supported platforms
Eclipse Adoptiumfreeno8+noLinux (.deb, .rpm, .tar), Mac, Windows
Amazon Correttofreeyes8, 11Bundled with 8 onlyLinux (.deb, .rpm, .tar), Mac, Windows
Azul Zulufreeyes6+Bundled (choose JDK FX download)Linux (.deb, .rpm, .tar), Mac, Windows
Bellsoft Libericafree8+Bundled (choose Full JDK download)inux (.deb, .rpm, .tar), Mac, Windows
Oracle OpenJDKfreeyes7+Linux (⚠ .tar only), Mac, Windows
Red Hat OpenJDKfreeyes8+Separate download for Java 8, Windows onlyLinux (⚠ RHEL only), Windows

Due to Oracle no longer releasing updates for long-term support (LTS) releases under a permissive license, others have begun offering builds.Linux distributions have always offered their builds, and Windows also offers one now, which can be installed with the Windows Package Manager.

Clear the Java Web Start (javaws) cache

  1. Open your computer's DOS prompt by selecting the Start menu followed by the Run option. Then, enter command followed by pressing the Enter key.

  2. Type javaws at the DOS prompt followed by the Enter key to see the Java Web Start command-line options.

  3. Type javaws -Xclearcache followed by the Enter key to clear Java Web Start Cache on your computer. After the cache has been cleared, the local drive prompt will appear on the DOS prompt.