qzind / qz-print

Archive for legacy qz-print versions (1.8, 1.9). See https://github.com/qzind/tray for modern versions.
Other
141 stars 101 forks source link

Could not find the main class / Exception in thread "main" #66

Closed tresf closed 9 years ago

tresf commented 9 years ago

Issue:

Could not find the main class: qz.ws.PrintWebSocketServer. Program will exit.

Exception in thread "main" java.lang.UnsupportedClassVersionError: 
org/eclipse/jetty/server/Handler : Unsupported major.minor version 51.0

Cause:

Java 7 or higher is missing from the system. Java 7 or higher is required to run QZ Tray

Resolution:

Install Java 7 or higher from the Oracle website.

fmq commented 7 years ago

Hello

I have this same issue but Java 1.8 is installed on my system.

Any ideas?

errorqz

tresf commented 7 years ago

99% of the issues are resolved following this guide.

https://qz.io/wiki/faq#cannot-launch-software

In short:

  1. Remove JAVA_HOME references from ENV. Make sure no lingering versions of java.exe in PATH
  2. Reboot computer
  3. Reinstall Java from offline installer
fmq commented 7 years ago

eliminating an old reference to an un existing java worked!

Thanks you for your quick response!

Seshabhattar commented 7 years ago

Issue Resolved after Uninstalling 64 bit version of java 1.8 and reinstalled java 1.8 _131 32 bit (X86). Disable all other java versions and use only 32 bit version.