Posted February 07, 2020
I have a HUGE problem, and I think I'm right on the cusp of solving it, but I just hit another roadblock:
I'm trying to make a program in Java, which I haven't used in many years. I got JDK 13 and Eclipse, and they seem to be working fine.
I've made a test program which I can run and debug, and I can also compile it into an executable JAR file, but at first there was no association for that extension, so if I tried to open it Windows wasn't sure what to do.
So I installed the JRE, but the newest version that I could find was 8.something. Now when I try to run the JAR it doesn't work. I get an error that says "Error: A JNI error has occurred, please check your installation and try again."
Then I realized that the problem could be the incompatibility between the JRE version and the JDK version (I think they're supposed to match), but I read that after version 8, there's no longer a JRE at all!
Instead, everything is supposed to be packaged into the JAR, so that it sort of has its own little portable JRE included within it, but with only the necessary files, to avoid having a bunch of unneeded junk with it.
But how can that be possible? If the JRE must be installed to even correctly run the JAR files, then how can it be inside of the JAR files? Or am I severely misunderstanding something?
One thing is that Java is supposed to be cross-platform, so without an external interpreter installed, I don't see how it could be able to run on a bunch of different operating systems! How could that be possible?
So alternatively, I thought that instead of upgrading my JRE to version 13 (which I guess is impossible), I could downgrade my JDK to version 8.
But for some reason, even though Oracle allows people to download version 13, in order to download older versions I must log in (why?), but when I signed up for an account (which supposedly was successfully completed by clicking the link in the e-mail they sent me), every time I try to log in I get an error, so I have no way of downloading it!
I've tried to find the JDK version 8 on other websites to download, but all they seem to have is the JRE of that version!
So PLEASE tell me where I can get JDK version 8 (or any version which is compatible with some JRE version) and/or how to make a JAR file which I could distribute, which would run on any operating system (especially Windows and MacOS) as long as the correct JRE is installed, so that it would be easy for anyone to get it to work anywhere.
Thank you SO MUCH if you can fix this problem!
I'm trying to make a program in Java, which I haven't used in many years. I got JDK 13 and Eclipse, and they seem to be working fine.
I've made a test program which I can run and debug, and I can also compile it into an executable JAR file, but at first there was no association for that extension, so if I tried to open it Windows wasn't sure what to do.
So I installed the JRE, but the newest version that I could find was 8.something. Now when I try to run the JAR it doesn't work. I get an error that says "Error: A JNI error has occurred, please check your installation and try again."
Then I realized that the problem could be the incompatibility between the JRE version and the JDK version (I think they're supposed to match), but I read that after version 8, there's no longer a JRE at all!
Instead, everything is supposed to be packaged into the JAR, so that it sort of has its own little portable JRE included within it, but with only the necessary files, to avoid having a bunch of unneeded junk with it.
But how can that be possible? If the JRE must be installed to even correctly run the JAR files, then how can it be inside of the JAR files? Or am I severely misunderstanding something?
One thing is that Java is supposed to be cross-platform, so without an external interpreter installed, I don't see how it could be able to run on a bunch of different operating systems! How could that be possible?
So alternatively, I thought that instead of upgrading my JRE to version 13 (which I guess is impossible), I could downgrade my JDK to version 8.
But for some reason, even though Oracle allows people to download version 13, in order to download older versions I must log in (why?), but when I signed up for an account (which supposedly was successfully completed by clicking the link in the e-mail they sent me), every time I try to log in I get an error, so I have no way of downloading it!
I've tried to find the JDK version 8 on other websites to download, but all they seem to have is the JRE of that version!
So PLEASE tell me where I can get JDK version 8 (or any version which is compatible with some JRE version) and/or how to make a JAR file which I could distribute, which would run on any operating system (especially Windows and MacOS) as long as the correct JRE is installed, so that it would be easy for anyone to get it to work anywhere.
Thank you SO MUCH if you can fix this problem!
No posts in this topic were marked as the solution yet. If you can help, add your reply