744 Forum

Apron => Hangar 7 => Topic started by: Will on Sat, 2 Dec 2017 14:19

Title: Java issue? [SOLVED]
Post by: Will on Sat, 2 Dec 2017 14:19
I use a Mac, and this just started happening. when I double-click on AerowinxStart.jar, the icon does the little Mac animation that it shows whenever an application is launched or when a file is opened (that 1/2-second enlargement of the depiction of the file), but then nothing else happens. The Java icon does not move into the dock, and PSX does not launch. No loading screen. Nothing.

I know one isn't supposed to launch Aerowinx.jar, but just to see what happens, I double-clicked it and the Java icon does move into the dock, but nothing else happens.

This is probably something simple, but whatever it is, I'm missing it. Any ideas?

Thanks, friends.
Title: Re: Java issue?
Post by: Hardy Heinlin on Sat, 2 Dec 2017 20:33
What has changed on your Mac since the last time you successfully launched a Java application?

I remember you also had problems because some files were assigned to Internet clouds etc.


|-|ardy
Title: Re: Java issue?
Post by: Will on Sat, 2 Dec 2017 23:51
I don't know what's changed, except that I restarted the computer after a power outage.


You are correct, I had the cloud issue, but this is not that. The "cloud" icon is not present. And I can run other applications in my Aerowinx folder, such as add-ons that I've downloaded.


I'll keep looking.
Title: Re: Java issue?
Post by: Holger Wende on Sun, 3 Dec 2017 17:25
Hi WIll,

Any useful messages in the Logs/errors.txt?
I'm not familiar with Mac, but what happens if you run the command "java -jar AerowinxStart.jar" from a console window rather than double-clicking the jar file?

Good luck, Holger.
Title: Re: Java issue?
Post by: Will on Tue, 5 Dec 2017 00:15
Holger, here is what is in Logs/errors.txt:


[Aerowinx Precision Simulator - Exceptions]

java.lang.ArrayIndexOutOfBoundsException: 999
   at FmcVnavCalc.calcProfile(FmcVnavCalc.java:2728)
   at FmcVnav.startVnavCalcs(FmcVnav.java:3468)
   at FmcVnav.runLargo(FmcVnav.java:4054)
   at FmcGlobal.runLargo(FmcGlobal.java:2192)
   at Core$LargoThread.run(Core.java:1582)
   at java.lang.Thread.run(Thread.java:745)
java.lang.ArrayIndexOutOfBoundsException: 999
   at FmcVnavCalc.calcProfile(FmcVnavCalc.java:2728)
   at FmcVnav.startVnavCalcs(FmcVnav.java:3468)
   at FmcVnav.runLargo(FmcVnav.java:4054)
   at FmcGlobal.runLargo(FmcGlobal.java:2192)
   at Core$LargoThread.run(Core.java:1582)
   at java.lang.Thread.run(Thread.java:745)


Although I don't know how helpful this is, since it was last modified back in October...
Title: Re: Java issue? [SOLVED]
Post by: Will on Tue, 5 Dec 2017 00:24
Issue fixed. I re-downloaded version 10.13 and now everything is good.
Title: Re: Java issue? [SOLVED]
Post by: Jeroen Hoppenbrouwers on Tue, 5 Dec 2017 00:30
About the only way to avoid broken downloads is if Hardy would publish a hash (such as a MD5) with each file, so that after downloading you can hash the file locally on your PC and compare the outcome.

https://en.wikipedia.org/wiki/Md5sum


Hoppie
Title: Re: Java issue? [SOLVED]
Post by: Hardy Heinlin on Tue, 5 Dec 2017 02:06
Quoteat FmcVnavCalc.calcProfile(FmcVnavCalc.java:2728)

At line 2728 there is no code, just a comment :-)

I always indicate the latest file size in bytes in the first post of the download thread. If it disagrees with the downloaded file size, the download has failed for sure.


|-|ardy
Title: Re: Java issue? [SOLVED]
Post by: Will on Tue, 5 Dec 2017 03:27
I overwrote the old version... So I don't know if the file size as downloaded was different than the file size as predicted. In any event, things are working well now.

Title: Re: Java issue? [SOLVED]
Post by: Phil Bunch on Tue, 5 Dec 2017 19:01
Is there some way to see the version number as readily accessible text that is part of a new aerowinx.jar file?  If not, is there something simple that could be added to the jar file to make the version number visible?

In Windows, one can right-click a file and obtain some info about an individual file.  However, I can't find the version number by any of the simple things I know how to do in Windows.

Title: Re: Java issue? [SOLVED]
Post by: Hardy Heinlin on Wed, 6 Dec 2017 03:01
The version number is only in that forum post and title.


|-|ardy
Title: Re: Java issue? [SOLVED]
Post by: Jeroen Hoppenbrouwers on Wed, 6 Dec 2017 09:46
Ideal it is not, but a simple table with file lengths (and possibly MD5 or other hashes) could function as a makeshift version checker.