Open main menu

TaticView β

Changes

Java JRE install and troubleshooting

123 bytes added, 14:52, 5 October 2022
no edit summary
<!--T:11-->
So, [[File:Filesave.png]][https://adoptium.net/ download a DOWNLOAD JAVA 8 updated version] from Eclipse Foundation.
<!--T:12-->
<!--T:15-->
The installer search the folder where JAVA is installed, by reading two [https://en.wikipedia.org/wiki/Environment_variable environment variables]:
* At environment variable ''JAVA_HOME''environment variable
* At Windows [https://en.wikipedia.org/wiki/PATH_(variable)#DOS,_OS/2,_and_Windows ''PATH'']
In cases where JAVA isn't mapped in any of these variables, the installer aborts the installation and shows the following screen.
# Check if there is already an entry pointing to some old JAVA directory, if so, remove it.
# New button
# Enter the path to the JAVA BIN ''bin'' directory (where the ''java.exe'' file is)
# OK button
# Rerun the installer
== Error UnsupportedClassVersionError when running TVCli ==<!--T:25-->
<!--T:26-->
The '''UnsupportedClassVersionError''' happens because the Java version in use isn't correct.
<!--T:27-->
Bellow a complete sample of the error output
<pre>
The Java used during TVCli execution is indicated by Windows [https://en.wikipedia.org/wiki/PATH_(variable)#DOS,_OS/2,_and_Windows ''PATH''] variable.
<!--T:28-->
To determine witch version of Java is pointed by PATH variable you can use the JAVA ''-version'' parameter, we will show you bellow.
# Open [https://en.wikipedia.org/wiki/Windows_Console Windows Command Console]
# Execute java asking for his version: '''''java -version'''''
<!--T:29-->
The ''-version'' parameter should output something like bellow for Java version 8
<pre>
</pre>
<!--T:30-->If Java version is bellow 8 the ''UnsupportedClassVersionError'' is thrown. You need to install a newer version, or if a newer version is already installed, you need to [[#Configuring_Windows_PATH|correct de Windows PATH ]] variable to point to newest Java.
== More doubts ? == <!--T:23-->