Java

Contents
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

Related articles
Development in Java
Installing Java
Install Java on Linux
Install Java on FreeBSD
Install Java on macOS
Install Java on OpenBSD
Intellij
Compiling and running Java code
final
switch
Determine the variable type
Random number generator
Import from other classes
Maven
JUnit

Search this site

Subscribe to Telegram channel @aofeed to follow new articles and updates to old ones

Go to channel

@aofeed

Ask a question in the Telegram group

@aofeedchat

Contacts and cooperation:
I recommend our hosting beget.com
Write to info@aredel.com if you:
1. Want to write an article for our site or translate an article into your native language.
2. Want to place thematically relevant ads on the site.
3. Ads on my site pass maximum censorship. If you see an ad block unsuitable for school-age children, shocking or misleading - please contact us by e-mail
4. Found a mistake, inaccuracy, bug, etc. on the site. ... .......
5. Articles can be shared on social media by clicking a network icon: