eclipse run hightec error resolution

Operating System: win10 Professional Edition (originally Home Basic, use a serial number to upgrade to the Professional Edition)
problematic software: hightec trial version of Eclipse for TriCore 32bit. Contains gcc compiler.

Error phenomenon: Click Run error, two error occurred

1, eclipse exit code 13 (and the subsequent content part omitted)
2, to Fail Load Shared Library The JNI (subsequent content thereof is omitted)

Finally, the investigation into the cause of: java should call the 32bit. Because the software (trial version, is not sure about other versions are 32bit) is a 32bit.
It should look to use the jre 32bit (jave runtime, not necessarily jdk) to run.

So in C: \ Program Files installed jre version 64bit, specific location:
C: \ Program Files \ the Java \ jre1.8.0_221
C: \ Program Files \ the Java \ jre1.8.0_221 \ bin
and other
current file (C: \ Program Files \ Java \ jre1.8.0_221 \ bin) run cmd, run
java -version
following results were obtained,
Java Version "1.8.0_221"
the Java ((TM)) the Runtime Environment SE (Build 1.8.0_221-B11)
the Java HotSpot (TM) 64-Bit Server VM (build 25.221-b11, mixed mode)
can be seen to be 64bit.

Next, in the C: \ Program Files (x86) installed jre version 32bit, specific location:
C: \ Program Files (x86) \ jre1.8.0_221
such as
in the current file (C: \ Program Files \ Java \ jre1.8.0_221 \ bin) to run cmd, run
java -version
following results were obtained,
the Java Version "1.8.0_221"
the Java (TM) SE Runtime Environment (Build 1.8.0_221-B11)
the Java HotSpot (TM) Client VM (Build 25.221-b11, mixed mode)
showed no 64-bit, 32bit should be in.

win10 control panel to edit the system environment variables System Properties Environment Variables System Variables
Select PATH, you can see a lot of lines. The C: \ Program Files (x86) \ jre1.8.0_221 \ Move bin (search order to understand an executable program).
So each will give priority to the 32bit version. problem solved.
At the same time, pay attention to check the environment variable settings. Rule out interference from other paths to its settings.

Guess you like

Origin www.cnblogs.com/praiseslow/p/11291971.html