Java  Java - Unsupported major.minor version 52.0

  • Thread starter Thread starter hzp
  • Start date Start date
  • Tags Tags
    java
AI Thread Summary
The discussion centers on a Java programming issue related to creating an executable file using JSmooth. The user encountered an "Unsupported major.minor version 52.0" error when trying to run the compiled executable. This error typically indicates a mismatch between the Java version used to compile the program and the version of the Java Virtual Machine (JVM) attempting to run it. The solution involved changing the minimum JVM version in JSmooth to match the version used during compilation. Another user sought clarification on how to change the minimum JVM version, highlighting the importance of ensuring that the Java version settings in the development environment align with the JVM being used.
hzp
Messages
10
Reaction score
0
I am programming in Java, creating a window application. I used notepad++ and compile through the command line. The program compiles and runs fine through the command line

However I want to create an executable file, so I downloaded jsmooth

But it is giving me this error and I can't really find any information that helps me:
"Exception in thread main java.lang.UnsupportedClassVersionError: Game : Unsupported major.minor version 52.0"

This is after the executable has been compiled and I try to run it. It starts and the debug command opens with this error

Followed instructions on jsmooth website and here:
http://www.coolwebproject.com/jsmooth/

my code below, not sure how it would be relevant
 

Attachments

Last edited by a moderator:
Technology news on Phys.org
Nevermind - problem is all sorted. Had to change minimum JVM version to the source version
 
Hi,

How exactly did you change the minimum JVM version?
I'm facing the same problem, however I don't know what you mean by "change minimum JVM version".
How exactly do I do that?

Thank you, if you reply this would be a major help for me!
 
It means that he compiled the code with one version of Java and tried to run the compiled code with a lower version. This often happens when you are using an IDE to compile and the version that it is set up to use is not the same as the JVM being used by your computer.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top