This question already has answers here:
How to bundle a JRE with Launch4j?
(6 answers)
Closed 1 year ago.
I have built a Java SWT application using Eclipse on a Windows 10 (64 bit) laptop. I am trying to convert it into a .exe file so anyone can run the application regardless of having java installed.
I have used Launch4J to convert my runnable .jar file to a .exe file and I am successfully able to run it on my laptop.
However, when I try to run it on any other laptop, the .exe file does not open/does nothing on a double click.
When I tried to run the original .jar file on a different laptop from command line this is the error I am getting:
_
Other posts on here say to include JRE and libraries in the build path which I did but it did not fix the problem.
Does anyone know how to fix this and allow my application to run?
The message means the SWT code has been compiled with Java 11 (class file version 55) but you are trying to run it with Java 8 (class file version 52).
You can't do this, you need at least Java 11 to run current versions of SWT (or any Eclipse code).
If you must run with Java 8 the SWT for Eclipse 2020-06 (4.16) was the last to be compiled for Java 8. The archive site here has that build.
Related
This question already has answers here:
How can I get Java 11 run-time environment working since there is no more JRE 11 for download?
(4 answers)
Closed 3 years ago.
I'm trying to run a java application that I have compiled using the IntelliJ IDEA, by the commandline running the following command:
java myApp.Main
This gives me the following error:
"Exception in thread "main" java.lang.UnsupportedClassVersionError: FlightConverter/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0"
In IntelliJ the JRE set to run in the run configuration is: /Java/jdk-11.0.3, but I get the error above when I try to run it. When i type java -version in cmd I get "1.8.0_211"
I cant really seem to find out how to update my current JRE to match what is used by the compiler either? It seems I'm only able to find JRE 8.xx online
I'm sure you can get location of java 8 from local system and set that as a compiler in IntellIJ IDE.. This way both your system and IDE works only on Java 8 and everything will work fine...
Hope this helps...
This question already has answers here:
Error Launching Idea. Failed to load JVM DLL C:\Program Files\Java\jdk1.8.0_112
(16 answers)
Closed 4 years ago.
I have got myself a new laptop Asus it runs on Windows 10 x64.
I have downloaded on this laptop java 10.0.2 and the latest version of intellij.
I did open once the intellij yesterday but today I wanted to open it again and im keep getting that error
I tried to google it out and I entered my variable environment and I did define that JAVA_HOME but it did nothing...
I would appreciate some help.
there are to chances causing this:
Wrong JDK - check whether you have downloaded the JDK for x64, and if not download it and install the correct one. JDK download site click here
Environmental variable is not set properly - Here is the guideline to set Environmental variables click here
To permanently run as administrator follow these steps:
Navigate to the program folder of the program you want to run. For example, C:\Program Files\Adobe\Acrobat 8.0\Acrobat.
Right-click the program icon (the .exe file).
Choose Properties.
On the Compatibility tab, select the Run This Program As An Administrator option.
Click OK.
This question already has answers here:
How to set the environment variables for Java in Windows
(17 answers)
Closed 5 years ago.
On my windows 7, 64 bit pc, I have installed java but while typing java -version in command prompt it shows java' is not recognized as an internal or external command, operable program or batch file.".and there is no java folder in program files even.The java version which i have installed is 8 and it is 64bits.
Try setting the environment variables.
The answer can be found on this SO page.
You must install the latest version of JDK from here:
Download JDK From Here
After Installing the latest version follow these steps :
Setting Path in Java
Hope this will help you out.
This question already has answers here:
Cannot run Eclipse; JVM terminated. Exit code=13
(34 answers)
Closed 7 years ago.
I recently tried running Eclipse on my Windows installation after several months (since I was working primarily on Ubuntu). Naturally, my java installation was outdated and Eclipse reported that it couldn't find a JDK to work with, so I proceeded to update the existing java installation. However, after the most recent version of Java was installed, the installer proceeded to uninstall the previous, outdated version of java (1.7), with my consent. Now, when I try to run Eclipse, this is the error message I get:
It probably has something to do with setting of path variables or previous eclipse settings and the version of eclipse I'm using is from the Android ADT bundle (please do not ask me to switch to Android Studio; I have my reasons).
How do I fix this and get Eclipse up and running?
No need to re-install eclipse, if you read the log you will notice that javaw was told to use java 6, but it is obviously not the java version you are trying to launch with.
Simply change 1.6 to 1.x in $ECLIPSE_HOME/eclipse.ini.
The error sounds you need to install JRE & JDK 1.6.
I work on Mac OS. I have a similar case I have to install JRE & JDK 1.6 since the one coming with the original OS is newer than it needs
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Cannot run Eclipse; JVM terminated. Exit code=13
I downloaded Eclipse eclipse-jee-galileo-SR2-win32 in zip format then I extract the same on my harddisk.
So when I clicked on eclipse.exe I am getting following window as alert.
Though I have java 1.6_35 installed on my machine.
After googling a lot so far I am unable to rid on this.
how to start eclipse now.
same is working fine on other machine.
Check your eclipse.ini file (in the same folder as the exe). Maybe it does not point to the location where your java is installed.
Search for a line like this
-vm c:/Program Files/Java/jdk1.6.0_22/bin/javaw.exe
Make sure if your jvm is 32 bit.
you can find by running
java -version .
you have eclipse for 32-bit jvm (-arch x86).