PDA

View Full Version : Mac OS X Java 6 Update 4 causes AirView launch problems


reset
06-20-2009, 09:43 AM
After I install the official java update from apple http://support.apple.com/downloads/Java_for_Mac_OS_X_10_5_Update_4, the Airview application stop to work.
This is the error from a console:
[JavaAppLauncher Warning] Java application launched from PPC or bad stub. Relaunching in 32-bit, and tagging sub-processes to prefer 32-bit with $JAVA_ARCH=i386.
[JavaAppLauncher Error] This process is [i386] and was re-exec'd from [i386], but for some reason we are trying re-exec to [].
[JavaAppLauncher Error] unable to find a version of Java to launch
My hardware is:
Hardware Overview:

Model Name: MacBook
Model Identifier: MacBook5,2
Processor Name: Intel Core 2 Duo
Processor Speed: 2 GHz
Number Of Processors: 1
Total Number Of Cores: 2
L2 Cache: 3 MB
Memory: 2 GB
Bus Speed: 1.07 GHz
Boot ROM Version: MB52.0088.B00
SMC Version (system): 1.38f5

What can I do to work it again?

UBNT-Mike.Ford
06-22-2009, 03:55 PM
Hello,

I have forwarded this info to my software engineers.

Thanks,

Mike

smitmor
06-22-2009, 05:00 PM
For me, the Ubiquiti logo bounces around in the dock for a few seconds then it completely goes away. No error. Nothing.

UBNT-Ramin
06-23-2009, 09:13 AM
After I install the official java update from apple http://support.apple.com/downloads/Java_for_Mac_OS_X_10_5_Update_4, the Airview application stop to work.
Ok, I just ran software update on my MacBook to 10.5.7 and then did the Java 6 Update 4 (I was at update 2) and it looks like our good friends at Apple with their fine sensibilities changed something major in their JVM startup APIs. :x

Update 4 is supposed to be a "simple" upgrade to latest Java 6 update 13 JVM. No major API and/or runtime changes, but that doesn't appear to be the case since AirView works just fine with jre6_u13 on Windows and Linux.

Oh well, such is life. I'll investigate the issue and get back to you when I have a solution. Please stay tuned. We at Ubiquiti apologize for the inconvenience this may cause you.

Regards,

reset
06-23-2009, 11:41 AM
Thanks I'am waiting for a solution.

UBNT-Ramin
06-24-2009, 04:30 PM
After having investigated this for the past couple of days it turns out the issue isn't with the app at all. The AirView application itself runs perfectly fine when invoked from a shell using a bash script. The problem is with the change Apple made to Java6U4, which made the Java launcher that we use to launch the app, incompatible.

Further explanation (in case you care): The launcher that we use is a 32-bit stub and used to work just fine under Java6U2. Apparently prior to Java6U4 any 32-bit stub worked just fine and no harm, no foul. But as I explained in a previous reply, it turns out the good folks at Apple decided as of Java6U4 to only support 64-bit stubs. And all of a sudden what used to work before no longer does. Thank you very much Apple! :x

In any case, I've since gone ahead and produced a brand new Mac distro tar.gz file that contains a very flat structure (much like the Linux distro file), compiled on my MacBook using the latest Java 6 Update 4. The only thing you need to do is download it, double-click to un-tar it, which opens it up to a directory of its own, then simply double-click on airview-mac.command file in the new directory and it should work just fine. I've tested this new distro on a couple of different Macs to make sure it works flawlessly so it really should work for you now.

Just download the new Mac 1.0.09 distro file from the download page (http://www.ubnt.com/airview/downloads.php) and let me know how things go.

There's one quirk with this workaround which you just to be aware of. When you close the main application window, the corresponding shell window that launched it remains open with the message "[Process completed]" at the end of it. Just close this window manually. I wasn't able to figure out a quick way to automatically close this window so this is the only manual thing you have to do every time you run the app.

This is only a work-around and as such a bit more cumbersome to use but we are working on a fix so that the users can simply go back to double-clicking on the AirView icon to launch the app as they used to under Java6U2.

Regards,

WHT
06-24-2009, 04:35 PM
Perhaps their Java engine needs a liver transplant as well? :lol:

msummer
06-24-2009, 05:30 PM
Hi,

I downloaded the tar.gz and tried to launch it via the script but it still fails I looked at the script and tried to execute the launch command in a terminal window to see the actual error. Here is what I get when I execute the following command in the directory where the application is located:

cd ./Contents/Resources/Java

java -Djava.library.path=. -Dapp.logging.file.path=./log/startup.log -classpath .:airview-o.jar:airview-3rdpartylibs_mac.jar com.ubnt.app.AirViewer

Output:

Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)

Any ideas or pointers ?

Thanks,

Mark

UBNT-Ramin
06-25-2009, 02:31 PM
I downloaded the tar.gz and tried to launch it via the script but it still fails.

Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
Hmm... :? This is very interesting because I definitely tested that script on not just the same 1.0.09 executable class files, but also on a couple of versions back just to make sure it all works, and it definitely did for me on my MacBook with 10.5.7 and Java6U4. Very strange.

This error usually occurs whenever a class file that's been compiled using a newer version of JDK is ran on an older version of the JRE/JVM. In your case, if you truly have installed Java6U4 this shouldn't have happened. Please double-check your Applications -> Utilities -> Java Preferences to make sure Java SE 6 64-bit appears at the top of both applications and applet lists.

In any case, I've since gone ahead and produced a brand new Mac distro tar.gz file that contains a very flat structure (much like the Linux distro file), compiled on my MacBook using the latest Java 6 Update 4. The only thing you need to do is download it, double-click to un-tar it, which opens it up to a directory of its own, then simply double-click on airview-mac.command file and it should work just fine. I've tested this new distro on a couple of different Macs to make sure it works flawlessly so it really should work for you now.

So please disregard any and all previous instructions and/or workaround scripts and just download the new Mac 1.0.09 distro file from the download page (http://www.ubnt.com/airview/downloads.php) and let me know how things go.

Thanks, and once again, sorry about the inconvenience.

PS: In the off chance that this doesn't work for you, please reply back with the output of "java -version" from a terminal window. This is what it reads on my MacBook:
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03-211)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-83, mixed mode)

It should be the same on yours.

smitmor
06-25-2009, 10:34 PM
Thanks for the quick workaround. Works like a champ for me!

reset
06-26-2009, 08:20 AM
Thanks a lot. This version is works great.

UBNT-Ramin
06-26-2009, 09:45 AM
Excellent! :D Unfortunately the .command file isn't as "pretty" with a beautiful Mac-specific icon in the Finder window, but as long as it works, right? I figured that's a lot more important to you folks than a pretty icon, until the launcher issue gets resolved.

Thanks again for your patience.

Cheers,

buzzsawddog
07-01-2009, 10:41 AM
Thank you much for the fix, doing as directed worked on my macbook.

macsrwe
07-31-2009, 04:06 PM
OK, I'm following this so far. But there's another problem.

Telling people to run "Java for Mac OX 10.5 Update 4" isn't sufficient, because Java 6 runs only on the Intel Macs. If our marvelous economy finds you still using an older G4 Mac, as I am, all this update does is improve Java 5 (otherwise known as 1.5.0_19).

So, if you attempt to use the AirView command suite on a G4 PowerBook, you get:

Exception in thread "main"
java.lang.UnsupportedClassVersionError: Bad version number in .class file

(This is the same as msummer reported, and I bet the problem is that he has a PPC Mac also.)

And I don't see anywhere that I can download a version of your software other than the one that gives me that message. :-(

I'd hate to think I just spent money on a device that won't work at all on my Mac.

droobie
08-12-2009, 12:25 PM
I get the exact same problem that msummer had.

I can't use Java 6 U4 because I have an Intel Mac Core Duo (not a C2D). It installs, but I never have Java 6 in my list under Java Preferences.

EDIT: It appears that basically the 'new version' has broken support for the legacy hardware in favor of the bleeding edge. My Macbook Pro is only 3 years old (bought it in May 2006) so that's quite disappointing.

I guess I'll be running airview in Windows.

UBNT-Ramin
08-12-2009, 01:42 PM
Telling people to run "Java for Mac OX 10.5 Update 4" isn't sufficient, because Java 6 runs only on the Intel Macs. If our marvelous economy finds you still using an older G4 Mac, as I am, all this update does is improve Java 5 (otherwise known as 1.5.0_19).

So, if you attempt to use the AirView command suite on a G4 PowerBook, you get:

Exception in thread "main"
java.lang.UnsupportedClassVersionError: Bad version number in .class file

macsrwe, I'm very sorry that you've ran into this issue, and frankly I'm not convinced that this is the exact same issue msummer ran into since he/she never replied back after I'd posted the fix.

On the main AirView page, there's a very clear note with a link to the downloads page, which explains that the AirView application REQUIRES Java 6 JRE to run. Now, if for whatever reason you're unable to install/run a Java 6 JRE, then unfortunately there's not much we can do.

AirView is a desktop application with certain demands on the underlying desktop O/S. Sun only provided desktop API support in ver 6 of their JRE and nothing before. It's because of this reason that we require JRE 6.

It's unfortunate that Apple decided to produce a JRE 6 only for their Intel-based machines. This decision is out of our control and indeed very unfortunate for Apple users of older generation machines.

In contrast, there's a JRE 6 available for every single version of Windows (supported editions), and just about every distribution of Linux, including some obscure ones that most people haven't even heard of. Apple could have easily produced a JRE 6 for their older generation hardware and frankly to this day I don't understand their reasoning for not doing that.

I'd hate to think I just spent money on a device that won't work at all on my Mac.

If you find you're unable to locate a suitable machine to run the application, please contact the distributor where you purchased the product and inquire about a refund.

Regards,

macsrwe
08-12-2009, 02:16 PM
[quote]On the main AirView page, there's a very clear note with a link to the downloads page, which explains that the AirView application REQUIRES Java 6 JRE to run.[quote]

Let me suggest that this note is much less than clear. Here's what it says:

[quote]Apple has made a version 6 JRE available, but only a 64-bit version for users of OS X v10.5.7 and above. It's called Java 6 Update 4 and can be downloaded and installed from: http://support.apple.com/downloads/Java_for_Mac_OS_X_10_5_Update_4, or by running Software Update on your Mac. If your Mac OS X is below 10.5.7 you must first use Software Update to upgrade your O/S to that revision before being able to download/install the required JRE.[quote]

This note states that any user of 10.5.7 or above can obtain the necessary prerequisite software by running Software Update. But as I discovered, this is not true for all Macs. A correction to this page seems in order.[/b]

macsrwe
08-12-2009, 02:19 PM
On the main AirView page, there's a very clear note with a link to the downloads page, which explains that the AirView application REQUIRES Java 6 JRE to run.

Let me suggest that this note is much less than clear. Here's what it says:

Apple has made a version 6 JRE available, but only a 64-bit version for users of OS X v10.5.7 and above. It's called Java 6 Update 4 and can be downloaded and installed from: http://support.apple.com/downloads/Java_for_Mac_OS_X_10_5_Update_4, or by running Software Update on your Mac. If your Mac OS X is below 10.5.7 you must first use Software Update to upgrade your O/S to that revision before being able to download/install the required JRE.

This note states that any user of 10.5.7 or above can obtain the necessary prerequisite software by running Software Update. But as I discovered, this is not true for all Macs. A correction to this page seems to be in order.[/b]

(I have tried to post this message three times so far. Every time I get:

Failed sending email :: PHP ::
DEBUG MODE
Line : 234
File : emailer.php

What is going on?

Apparently it was posting the message anyway -- I had to delete two duplicates.)

pfunix
08-24-2009, 10:23 AM
Hi,

Is there any other way to fix this so that I can run AirView on my Mac? I have a Intel Core Duo Mac. I updated my Java and all (JavaForMacOSX10.5Update4.dmg).

I've checked my Java Preference and didn't see any J2SE 6 I only have the following:

J2SE 5.0 (32-bit)
J2SE 1.4.2 (32-bit)

my Java -version shows:

$ java -version
java version "1.5.0_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-304)
Java HotSpot(TM) Client VM (build 1.5.0_19-137, mixed mode, sharing)

I'm running Mac OSX 10.5.8. Is there anyway for you guys to just put up a build for 5.0? the least. We only use Mac based hardware at my company.

I bought a bunch of this analyzers (10 Analyzers) and I can't use them on my mac hardware.

UBNT-Ramin
08-25-2009, 12:49 PM
I'm running Mac OSX 10.5.8. Is there anyway for you guys to just put up a build for 5.0? the least. We only use Mac based hardware at my company.

pfunix, once again I'm very sorry to have to repeat the same info I stated to another user earlier, but AirView is a desktop application with certain demands on the underlying desktop O/S. Sun only provided desktop API support in ver 6 of their JRE and nothing earlier. It's because of this reason that we require JRE 6. Re-coding the portions of the application to not require JRE 6 components is not exactly a trivial task and that's why it hasn't been attempted so far, and especially not when we're only talking about a fairly small sliver of the user base.

I mean Sun announced EOL (End of Life) for JDK/JRE 5.0 in Apr. 2008 and its EOSL (End of Service Life) is on Oct. 30th, 2009 (read more here (http://java.sun.com/products/archive/eol.policy.html)). So from a product development standpoint it made sense to develop to the latest JRE ver 6 APIs, especially since they provided several components we needed in our application.

It's just very unfortunate that Apple decided to produce a JRE 6 only for their Intel Core 2 Duo based machines produced after Oct. 2006. We understand that this decision made the Airview application unusable by owners/users of Mac machines prior to that, but again, this decision is out of our control and indeed very frustrating for those users, like yourself.

Although not officially supported, I have heard of folks running the Airview app on a VMWare instance running on whatever supported platform they have. This might be an alternative you can try.

Regards,

agsweeney
09-16-2009, 10:16 AM
Ramin,


Just a note here...

I had to edit your file airview-mac.command to point to the right Java on my 10.5.8 machine (Atom 330 CPU) to get the app to launch at all. It had been trying to open with Java version "1.5.0_20".



#!/bin/sh

cd "${0%/*}"

/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java -Djava.library.path=. -Dapp.logging.file.path=./log/startup.log -jar airview-o.jar >> /dev/null 2>&1

UBNT-Ramin
09-16-2009, 01:16 PM
Ramin,
I had to edit your file airview-mac.command to point to the right Java on my 10.5.8 machine (Atom 330 CPU) to get the app to launch at all. It had been trying to open with Java version "1.5.0_20".
agsweeney, as already mentioned in AirView Release Notes (http://www.ubnt.com/forum/showthread.php?t=8749), as well as earlier in this same thread, you must set your JRE configuration on your Mac properly before attempting to run AirView.

From the release notes:

Important note for Mac users: Please double-check your Applications -> Utilities -> Java Preferences to make sure Java SE 6 64-bit appears at the top of both applications and applet lists.

There was no need to modify the script if you've made the above configuration change.

Regards,

agsweeney
09-16-2009, 05:11 PM
agsweeney, as already mentioned in AirView Release Notes (http://www.ubnt.com/forum/showthread.php?t=8749), as well as earlier in this same thread, you must set your JRE configuration on your Mac properly before attempting to run AirView.

From the release notes:

Important note for Mac users: Please double-check your Applications -> Utilities -> Java Preferences to make sure Java SE 6 64-bit appears at the top of both applications and applet lists.

There was no need to modify the script if you've made the above configuration change.

Regards,


Umm, yeah...... Java 6 wasn't in the list, just so ya know.

UBNT-Ramin
09-18-2009, 08:02 AM
Umm, yeah...... Java 6 wasn't in the list, just so ya know.
Hmm wait... Java 6 doesn't show up under Java Preferences? That's odd. How did you install your JRE? It had to have been from Apple's software update, right? If it's properly installed it should show up under Java Preferences page, otherwise you have some other configuration problem.

Also, I missed the Atom 330 CPU. How well does OS X run on it? Any issues?

Regards,

agsweeney
09-18-2009, 07:48 PM
Hmm wait... Java 6 doesn't show up under Java Preferences? That's odd. How did you install your JRE? It had to have been from Apple's software update, right? If it's properly installed it should show up under Java Preferences page, otherwise you have some other configuration problem.

Also, I missed the Atom 330 CPU. How well does OS X run on it? Any issues?

Regards,

Well, it may be because it is an unsupported processor.

As for the ATOM 330, not any real issues. It is certainly not a graphics powerhouse (GMA950 performance is poor for Hulu and the Like, DVD play fine).

Sending you a PM with a script - look at it and think about it.

UBNT-Ramin
09-21-2009, 09:33 AM
Well, it may be because it is an unsupported processor.
Hmm, dunno. Could be. I wish I had enough time to get to the bottom of this Mac HW issue wrt Apple's software update and JRE 6. It would be great to find out what the problem is and why JRE 6 isn't installed on your particular HW.

As for the ATOM 330, not any real issues. It is certainly not a graphics powerhouse (GMA950 performance is poor for Hulu and the Like, DVD play fine).
This is a bit off-topic, but if you want a Atom-based graphics powerhouse, NO ONE beats this little beauty: ZOTAC IONITX-A-U Atom N330 1.6GHz Dual-Core Mini ITX Intel Motherboard (http://www.zotacusa.com/zotac-ionitx-a-u-atom-n330-1-6ghz-dual-core-mini-itx-intel-motherboard.html).

I got one at home and it kicks the crap out of anything else when it comes to HD playback and such. I'm running Windows Vista Ultimate on it, but if Mac O/S X can be installed on Atom processors, you really ought to try it on this one. You won't be disappointed.

Sending you a PM with a script - look at it and think about it.
Sure, thanks for that. I'll check it out.

Cheers,

agsweeney
09-22-2009, 11:31 AM
I have been looking at that one.

droobie
09-25-2009, 10:03 PM
Airview works fine on the regular Core Duo (which doesn't support 64-bit) if you use Snow Leopard. Leopard people are out of luck though.

This is a compelling reason for me to upgrade to Snow Leopard, but not sure if I will yet. I installed it long enough to test this though.

cahlitox
09-13-2010, 01:15 PM
Hmm... :? This is very interesting because I definitely tested that script on not just the same 1.0.09 executable class files, but also on a couple of versions back just to make sure it all works, and it definitely did for me on my MacBook with 10.5.7 and Java6U4. Very strange.

This error usually occurs whenever a class file that's been compiled using a newer version of JDK is ran on an older version of the JRE/JVM. In your case, if you truly have installed Java6U4 this shouldn't have happened. Please double-check your Applications -> Utilities -> Java Preferences to make sure Java SE 6 64-bit appears at the top of both applications and applet lists.

In any case, I've since gone ahead and produced a brand new Mac distro tar.gz file that contains a very flat structure (much like the Linux distro file), compiled on my MacBook using the latest Java 6 Update 4. The only thing you need to do is download it, double-click to un-tar it, which opens it up to a directory of its own, then simply double-click on airview-mac.command file and it should work just fine. I've tested this new distro on a couple of different Macs to make sure it works flawlessly so it really should work for you now.

So please disregard any and all previous instructions and/or workaround scripts and just download the new Mac 1.0.09 distro file from the download page (http://www.ubnt.com/airview/downloads.php) and let me know how things go.

Thanks, and once again, sorry about the inconvenience.

PS: In the off chance that this doesn't work for you, please reply back with the output of "java -version" from a terminal window. This is what it reads on my MacBook:
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03-211)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-83, mixed mode)

It should be the same on yours.


Hi! I've done all that and still my airview spectrum analizer doesn't run. I have the 1.0.11 version and a MacBook Core 2 Duo, with Mac Os X 10.5.8. When I check out the Java's Info, I get this:

Java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-9M3125)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

Note: I've already put the Java SE 6 64-bit at the top of both applications and applet lists.

Is it possible to use the Wifistation on my computer? Thanks for your time!

CzechEnglishFrenchGermanItalianPolishPortugueseRussianSpanish
Translations supported by vBET 3.5.4