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.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Thread 'Project Documentation'
Trying to package up a small bank account manager project that I have been tempering on for a while. One that is certainly worth something to me. Although I have created methods to whip up quick documents with all fields and properties. I would like something better to reference in order to express the mechanical functions. It is unclear to me about any standardized format for code documentation that exists. I have tried object orientated diagrams with shapes to try and express the...
Back
Top