eclipse reports an error Failed to load the JNI shared library and other solutions

Solution to problems such as eclipse error Failed to load the JNI shared library

 

Eclipse is an extensible development platform based on Java, so you need to make sure that your computer has JDK installed before installing Eclipse. The installation of Eclipse is very simple. Eclipse IDE official website: https://www.eclipse.org/downloads/  , it is recommended that you download Compressed package version (click the Download Packages link), when downloading from the official website, you may be redirected to a page that requires you to pay. It is not eclipse that requires payment. This is just asking you to donate money. You can ignore it. You can use it after decompression. Enter The folder, the red box as shown in the figure is the eclipse startup program.

eclipse common problems and solutions

1. Eclipse installation (for the executable installation version) or running (for the compressed package version) error: Failed to load the JNI shared library

 

 

 

First check whether the JDK is installed successfully: window +R open cmd, run  java -version  , see the figure below:

If the above situation occurs, the JDK installation is successful.

 

Whether the phase numbers of JDK and eclipse match [both are 32 bits or both are 64 bits], if the number of bits is already matched, an error is still reported, it may be that the version does not match and can be handled as follows:

Find the eclipse.ini file under the eclipse installation path

 

 

Open the eclipse.ini file, add -vm and javaw.exe of the JDK installation file , including the two lines of the full name of the path:

-vm

D:\BlueJ-windows-422\bluej\jdk\bin\javaw.exe

[Note: The underlined part of my D:\BlueJ-windows-422\bluej\jdk\bin\javaw.exe is changed according to your actual situation. If there are the above two lines, you can change and modify the actual situation]

Pay attention to the added position. See the picture below:

 

2, eclipse reads UTF-8 Chinese txt file Chinese garbled solution

Reason: The default text format of eclipse is gbk format. Changing the eclipse text format to UTF-8 will display correctly. Operation: Right-click the project name → properties, and change the eclipse text format to UTF-8, see The following figure:

 

 

 

Guess you like

Origin blog.csdn.net/cnds123/article/details/112605214