Fri, 06/03/2022 - 19:14
After installing in Windows and following the normal installation flow, I get the following error when I try to run VStar:
Could not find the main class: org.aavso.tools.vstar.ui.VStar.
Any thoughts on what's happening?
Thanks
Rich Krahling
Hi Rich
Have a look here to see whether the problem you're seeing is covered:
https://github.com/AAVSO/VStar/wiki/Installation-Recipes
but if not (and I suspect not in this case), I'll let Max respond to this because he creates the Windows installer that goes with each release.
David
you also can try this:
1) download OpenJDK, say, version 11: https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_windows-x64_bin.zip
2) Unzip it into VStar folder:
3) Open VStar.ini (just click on it and it will be opened in the notepad) and specify JavaPath parameter:
This will force the VStar launcher to use the specified Java virtual machine
3) Then try to launch VStar.exe
------
Strange, but I cannot see images I put in the message. If you cannot see them too, please read the message here: https://docs.google.com/document/d/1jHNrqP7IP7dDoky_c8Kzt5U7AomjCT9WRYvtxre1yko/edit?usp=sharing
Could you please…
Hi Rich,
Could you please run "VStar Debug Mode" (from VStar program group in the Windows Start menu) and make a screenshot of the console window?
unfortunately, I cannot see the picture. Something wrong with the forum...
Hi All,
I think I may be able to explain the red "X's".
Unfortunately, due to a management decision we can no longer attach images or files to forum posts and that applies to embedded images as well. Embedded images are replaced with the red X.
Sorry for the inconvenience.
Sara
Thank you for the…
Hi Sara,
Thank you for the information!
Cheers,
Max
Launching java.exe
With parameters:
-splash:"C:\Users\krahlinr\vstar\extlib\vstaricon.png"
-Xms800m
-Xmx1500m
-jar "C:\Users\krahlinr\vstar\dist\vstar.jar"
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/aavso/tools/vstar/ui/VStar : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
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$000(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)
Could not find the main class: org.aavso.tools.vstar.ui.VStar. Program will exit.
Hi Rich,
Thank you for the detailed information.
This indicates that your Java version is <1.8. VStar requires Java 1.8 or higher. Please try to update Java.
To check the current Java version, use
java -version
from the command line.
additionally, please go to Windows console (Win+R, type cmd and Enter), then type ECHO %CLASSPATH% and show the result.
Microsoft Windows [Version 10.0.18363.1316]
(c) 2019 Microsoft Corporation. All rights reserved.
C:\Users\krahlinr>echo %classpath%
%classpath%
Thank you, Rich. So the problem is not with bad environment variable (CLASSPASS). As I wrote in the message above, you likely have too old Java (version <1.8).
On page 4 of VStar Manual 2.22.0 it states that at least version 1.6 is required. Should this be changed to 1.8?
Indeed. Thank you for the comment. We will fix it.
Indeed. Thanks for the report. I've created an issue: https://github.com/AAVSO/VStar/issues/284