Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse 2022-12 (4.26.0) not debugging java code 1.6(Eclipse throws exception when trying to debug code java version 1.6)
Eclipse 2022-12 (4.26.0) not debugging java code 1.6 [message #1856754] Thu, 29 December 2022 00:37 Go to next message
Jorge Dreher is currently offline Jorge DreherFriend
Messages: 1
Registered: December 2022
Junior Member
Hello everyone, since the last update I can't use the debugger with java 1.6 code, it throws the following exception:

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/eclipse/jdt/launching/internal/javaagent/Premain : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
FATAL ERROR in native method: processing of -javaagent failed
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:280)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)
Re: Eclipse 2022-12 (4.26.0) not debugging java code 1.6 [message #1856756 is a reply to message #1856754] Thu, 29 December 2022 08:38 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33264
Registered: July 2009
Senior Member
It looks like that's a perhaps side effect of this change though even before it was set to 1.8...

https://github.com/eclipse-jdt/eclipse.jdt.debug/issues/61


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Eclipse 2022-12 (4.26.0) not debugging java code 1.6 [message #1860345 is a reply to message #1856754] Mon, 31 July 2023 14:31 Go to previous messageGo to next message
Hrvoje Lončar is currently offline Hrvoje LončarFriend
Messages: 1
Registered: July 2023
Junior Member
Any chance to fix this?

java.lang.UnsupportedClassVersionError: org/eclipse/jdt/launching/internal/javaagent/Premain : Unsupported major.minor version 52.0
FATAL ERROR in native method: processing of -javaagent failed
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:300)
	at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:397)
Exception in thread "main" 
Re: Eclipse 2022-12 (4.26.0) not debugging java code 1.6 [message #1862108 is a reply to message #1856754] Mon, 13 November 2023 12:16 Go to previous message
ihave question is currently offline ihave questionFriend
Messages: 32
Registered: November 2014
Member
Please make your choice:

Java 6 is dead
Java itself is dead
Eclipse is dead, use Netbaens
Eclipse is dead, use IDEA
Don not use debugger, use unit tests
Previous Topic:Need help, JDT auto completion runtime exception
Next Topic:[Minecraft Development HELP]
Goto Forum:
  


Current Time: Wed Feb 05 03:54:05 GMT 2025

Powered by FUDForum. Page generated in 0.03235 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top