<waves at Casey>

I just ran into the same issue.       My java control panel shows java 8,
but that error message seems to indicate that it is trying to execute with
a much earlier version of java.   I'm not an OSX expert, but from what I
can find with google it seems to be something esoteric about how the app is
packaged that is making it use the wrong java vm.  Might well also have to
do with having upgraded from an earlier OSX.

There's probably a better way, but a workaround I found was to explicitly
run the application from a terminal window with the JAVA_HOME set to the
correct version of java.

In my case, the java control panel says the correct java path is
"/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/" and
the AltOS app is installed in /Applications/AltosUI.app, so after some
poking around:


export JAVA_HOME=/Library/Internet\
Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/
java -cp /Applications/AltosUI.app/Contents/Resources/Java/ -Xms512M
-Xmx512M -Dosgi.clean=true -jar
/Applications/AltosUI.app/Contents/Resources/Java/altosui.jar


It still gives me some startup errors, I don't know if I would trust it to
configure a flight computer and I haven't tried connecting to a TeleDongle
or TeleBT, but it is at least functional enough to view and export a
previously downloaded .eeprom file, which was what I was after.     You can
probably guess which .eeprom file I was interested in.

Erik


On Mon, Sep 3, 2018 at 6:49 PM Charles L Hakes <[email protected]>
wrote:

> That is what I was seeing.  Did you upgrade from a previous MacOS?  My
> “Java” is happily at the latest version, but there was a command in the
> terminal (that I would have to go look up) that shows some old system
> pointer to an older Java.  I haven’t the time now to figure out how to
> override that, but my guess is it would fix the problem.
>
> Charlie
>
> > On Sep 3, 2018, at 7:03 PM, Casey Barker <[email protected]> wrote:
> >
> > I see an error when running AltosUI.app 1.8.6 on Mac OS 10.13.6, running
> the stock Java 2017-001 from Apple. I also tried it on a second Mac OS
> computer, and it's consistent. I rolled back to 1.8.5, and the error goes
> away, so it's something between those two versions.
> >
> > Cannot launch Java application
> > Uncaught exception in main method:
> > java.lang.UnsupportedClassVersionError:
> com/sun/speech/freetts/VoiceManager : Unsupported major.minor version 51.0
> >
> > Not sure if I should use the 1.8.5 UI with newer firmware, so I'll
> switch to a VM.
> >
> > Casey
> >
> > <Error.png>
> > _______________________________________________
> > altusmetrum mailing list
> > [email protected]
> > http://lists.gag.com/mailman/listinfo/altusmetrum
>
> _______________________________________________
> altusmetrum mailing list
> [email protected]
> http://lists.gag.com/mailman/listinfo/altusmetrum
>


-- 
Science and Honor!
_______________________________________________
altusmetrum mailing list
[email protected]
http://lists.gag.com/mailman/listinfo/altusmetrum

Reply via email to