question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.lang.UnsupportedClassVersionError

See original GitHub issue

I just found your extension and I’m glad someone is keeping a language tool extension up to date 😃

Describe the bug Nothing happens, no sign of any activity of the extension

Steps to reproduce Steps to reproduce the behavior:

  1. Install extension
  2. Install English support
  3. Restart VS Code
  4. Open .tex document
  5. Nothing happens

Expected behavior Latex document is spell and grammar checked.

LTeX configuration "ltex.trace.server": "verbose"

Log files

java.lang.UnsupportedClassVersionError: App 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
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at java.security.SecureClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.access$100(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main"

Version information

  • Operating system: Windows 10 (1909)
  • VS Code: 1.44.2
  • LTeX: 4.9.2
  • LTeX language extensions: English
  • Java: 1.8.0_251

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
valentjncommented, May 7, 2020

Fix released in 4.9.3.

1reaction
valentjncommented, May 7, 2020

@universemaster It seems I underestimated how many people still run Java 8. Oracle will be dropping support by the end of this year, and large projects such as the Eclipse platform will be moving to Java 11 pretty soon. So in the not-so-long term, there’s no other option for LTEX to move to Java 11 as well.

As a short-term solution, I’ll revert the changes made in LTEX 4.9.2, so Java 8 will suffice again, while we figure out a transition plan. I’m open to any kind of constructive ideas. (Maybe this is motivation for someone to tackle issue #5.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix java.lang.UnsupportedClassVersionError - Baeldung
This error is telling us that our class was compiled at a higher version of Java than the version with which we tried...
Read more >
How to fix java.lang.UnsupportedClassVersionError
This error means that the JRE that is being used to execute your class code does not recognise the version of Java used....
Read more >
How to Fix UnsupportedClassVersion Error in Java - Rollbar
The UnsupportedClassVersionError in Java occurs when the JVM attempts to read a malformed or otherwise erroneous class file.
Read more >
How to Fix java.lang.UnsupportedClassVersionError in Java?
The UnsupportedClassVersionError is a sub-class of the LinkageError and thrown by the Java Virtual Machine (JVM).
Read more >
How to resolve java.lang.UnsupportedClassVersionError ...
precise answer of this is "When JVM tries to load a class and found that class file version is not supported it throws...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found