0

my program (made in Netbeans) does work fine on my PC where I have jdk-12.0.2

On my other Computer where I had the newest jre1.8.0_241 it did not run, but gave me the errormessage: A JNI Error has occured, please check your installation and try again.

I installed the newest jdk-13.0.2 and now it works.

But what could be the reason for this? When do I need the jdk and when is the jre enough? Or did I mess up somewhere and the jre should've done the job?

Many thanks in advance!

my program is a GUI of a simple text game, so I used only java.awt, java.swing and java.util if this is important

I had a look at this page and I really dont understand why installing the jdk solved my issue with running the program

eli44
  • 111
  • 1
  • 12

0 Answers0