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

krahling
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

David__Benn
Affiliation
Astronomical Society of South Australia (ASSAU)
Run error

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

mpyat2
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

mpyat2
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?

mpyat2
Affiliation
American Association of Variable Star Observers (AAVSO)
unfortunately, I cannot see…

unfortunately, I cannot see the picture. Something wrong with the forum...

BSJ
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

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

Thank you for the…

Hi Sara,

Thank you for the information!

Cheers,

Max

 

krahling
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.

mpyat2
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.

 

 

mpyat2
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.

krahling
Affiliation
American Association of Variable Star Observers (AAVSO)
Echo %classpath% Output

Microsoft Windows [Version 10.0.18363.1316]

(c) 2019 Microsoft Corporation. All rights reserved.

 

C:\Users\krahlinr>echo %classpath%

%classpath%

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

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).

 

krahling
Affiliation
American Association of Variable Star Observers (AAVSO)
VStar Manual 2.22.0 says Java 1.6 required

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?