Java
| Introduction | |
| Related Articles |
Introduction
Java is a strictly typed object-oriented programming language
General purpose developed by Sun Microsystems
(Subsequently acquired by Oracle).
It is developed by a community organized through
Java Community Process, language and main implementers
The technology is distributed under the GPL license.
The trademark rights are owned by Oracle Corporation.
Java applications are usually translated into special bytecode, so they can
Work on any computer architecture for which there is an implementation
Virtual Java machines.
The official release date is May 23, 1995.
Java is one of the most popular programming languages in 2020.
Errors
java: error: release version 5 not supported
This error indicates that you are using an SDK above 8 a bytecode
The one you are trying to compile is version 5.
After the eighth version of Java, the bytecode of the fifth version is no longer supported.
This is one of the reasons why version 8 is the most popular.
«stable»
I don’t recommend changing the SDK to 8, it’s better to change the target bytecode.
In IntelliJ IDEA, this can be done as follows:
File → Settings → Build, Execution, Deployment → Compiler → Target bytecode version → 14
14 is not necessary, but you will definitely need something higher than 5.
error: unmappable character (0x8F) for encoding windows-1252
If you have comments in the code in Russian and when compiling appears
error: unmappable character (0x8F) for encoding windows-1252
Article author: Andrei Olegovich