Reputation: 11
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).
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
Reputation: 11
i solve it installing JDK in the other computers ... :( idk'n why those computers didn't work with JRE
Upvotes: 0
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