Java - Unsupported major.minor version 52.0

  • Context: Java 
  • Thread starter Thread starter hzp
  • Start date Start date
  • Tags Tags
    java
Click For Summary

Discussion Overview

The discussion revolves around an error encountered in Java programming related to the "Unsupported major.minor version 52.0" message when attempting to run an executable file created with jsmooth. Participants explore the implications of Java version compatibility in the context of compiling and running Java applications.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant describes encountering an error when trying to run a Java application after creating an executable with jsmooth, indicating a version compatibility issue.
  • Another participant mentions resolving the issue by changing the minimum JVM version to match the source version used during compilation.
  • A third participant seeks clarification on how to change the minimum JVM version, expressing confusion about the process.
  • One participant explains that the error typically arises when code is compiled with a newer version of Java than the version of the JVM being used to run it, highlighting a common issue with IDE settings.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the specifics of changing the minimum JVM version, as one participant seeks further clarification while others provide explanations based on their experiences.

Contextual Notes

The discussion does not resolve the technical steps for changing the minimum JVM version, and there may be assumptions about the user's familiarity with Java IDEs and jsmooth that are not explicitly stated.

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.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
7K
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 12 ·
Replies
12
Views
11K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 25 ·
Replies
25
Views
3K