Linux/Mac isntallation

Affiliation
American Association of Variable Star Observers (AAVSO)
Mon, 10/10/2022 - 19:17

There is no "recipe" for installing VStar on Linux or MacIntosh

Affiliation
American Association of Variable Star Observers (AAVSO)
What happens

When I start up VStar I get:

Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "AWT-EventQueue-0"

 

Looking at VStar.sh, I see it has:

java -splash:"$APP_DIR/extlib/vstaricon.png" \
     -Xms800m -Xmx${MAX_MEM} -jar "$APP_DIR/dist/vstar.jar" $*

 

The vstar-bash download does not include a "dist" directory

Affiliation
Astronomical Society of South Australia (ASSAU)
dist directory

Hi Tom

With the last release of VStar (https://github.com/AAVSO/VStar/releases/tag/2.22.0), here's what I see with vstar-bash.zip:

mkdir tmp

cd tmp

unzip ../vstar-bash.zip

cd vstar/

ls

ChangeLog.txt data doc plugin-dev VStar.sh dist extlib

ls dist

vstar.jar

./VStar.sh starts OK in that context.

The Mac OS X vstar-mac.dmg does not contain VStar.sh even though it can be used if git cloning and building in a Mac terminal. I removed the alternate example usage of ./VStar.sh from the wiki page.

I'm wondering whether you were looking in vstar-mac.dmg inadvertently. Just trying to understand what you are seeing and why.

Other Linux users care to say what they find here?

David

Affiliation
American Association of Variable Star Observers (AAVSO)
That works

I don't know how my dist directory got lost but "unzip" creates it. I was previously using the archive manager to extract the vstar tree.  Another trial of that approach yielded a dist directory, so I am baffled as to what happened (I didn't download vstar-mac.dmg).

Anyway, I can now run VStar.  Thankyou!

Affiliation
American Association of Variable Star Observers (AAVSO)
New difficulty

Tried firing up VStar today and ran into a different problem:

Can't load library: /usr/lib/jvm/java-11-openjdk-amd64/lib/libawt_xawt.so

Looking in the appropriate directory, I see libawt_headless.so and libawt.so, but no libawt_xawt.so

Affiliation
Astronomical Society of South Australia (ASSAU)
Linux error

Hi Tom

Hmm. Odd that it was working before. A new version of Java installed? Still VStar 2.22.0?

What Linux distribution is this, e.g. Ubuntu, Debian, or something like WSL on Windows?

A delete and re-install of Java would be one approach (e.g. sudo apt install openjdk-11-jdk)

Happy to help further.

David

Affiliation
American Association of Variable Star Observers (AAVSO)
Update

Ubuntu Linux, VStar 2.22.0.  I will note that the Java was installed from the Oracle download page.

I reinstalled Java as above and now VStar runs, but I do get the following warning at startup:

"libpng warning: iCCP: known incorrect sRGB profile"