VStar will not run following installation - Could not find the main class: org.aavso.tools.vstar.ui.VStar.

Affiliation
American Association of Variable Star Observers (AAVSO)
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:

 

Image removed.

Could not find the main class: org.aavso.tools.vstar.ui.VStar.

 

Any thoughts on what's happening?

 

Thanks

 

Rich Krahling

Affiliation
American Association of Variable Star Observers (AAVSO)
you also can try this:1)…

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:

Image removed.

3) Open VStar.ini (just click on it and it will be opened in the notepad) and specify JavaPath parameter:

Image removed.

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

Affiliation
American Association of Variable Star Observers (AAVSO)
Hi Rich,

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?

Affiliation
American Association of Variable Star Observers (AAVSO)
Images in a forum post

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

Affiliation
American Association of Variable Star Observers (AAVSO)
Debug Console Output

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.

Affiliation
American Association of Variable Star Observers (AAVSO)
problem running VStar

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.

 

 

Affiliation
American Association of Variable Star Observers (AAVSO)
additionally, please go to…

additionally, please go to Windows console (Win+R, type cmd and Enter), then type ECHO %CLASSPATH% and show the result.