Angelgce
Angelgce

Reputation: 11

java virtual machine launcher Error: A jni error has occurred

I made a little program, so i built it and ran it on my pc and it worked. I took the .jar file and I ran it in other pc, but in others pc my program is not working and show this msg "java virtual machine launcher Error: A JNI error has occurred" I looked in the internet but all the questions and answers that I found where made for similiar isues but differnt, becase in their cases their softwares could'nt ran in their owns machines. in my case, my machine ran my software, and also this is happening with all my projects (i'm using netbeans).

My PC:

enter image description here

On other PC:

enter image description here

Text from Screenshot

Title:  Java Virtual Machine Launcher
Icon:   Red and white "X" error icon.
Text:   Error: A JNI error has occurred, please check your installation and try again.
Button: Aceptar

Title:  Java Virtual Machine Launcher
Icon:   Red and white "X" error icon.
Text:   A Java Exception has occurred.
Button: Aceptar

Upvotes: 1

Views: 5114

Answers (2)

Angelgce
Angelgce

Reputation: 11

i solve it installing JDK in the other computers ... :( idk'n why those computers didn't work with JRE

Upvotes: 0

mentallurg
mentallurg

Reputation: 5207

One reason can be that you have installed a 32-bit Java on 64-bin OS. To check that, open console and run command

java -version

This will show basic info about JRE including if it is 32-bit or 64-bit. If it is 32-bit, uninstall it and install 64-bit version.

Upvotes: 1

Related Questions