Mac OS X Mountain Lion missing 32-bit Java

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: 99jonathan, roger, imaqine

Mac OS X Mountain Lion missing 32-bit Java

Postby Bigtoad » Sun Feb 10, 2013 1:21 am

This has been driving me crazy for days now. I just recently got a new NXT kit and started working with my Lego Robotics stuff again. (I have two old RCX kits, one 1.0 and the other 1.5, but I haven't touched them for years.) In the intervening time, I switched to using a Mac. I already use Eclipse for other software development, including a small amount of Java, but I'm a neophyte at Java, really. I thought I had everything setup and working and then, when I tried to run my tiny little test project, I got this:

Linking ...
Error: This Java instance does not support a 32-bit JVM.
Please install the desired version.
Linking the file failed with exit status 1

That's where I've been stumped for the last three days of extensive web searching. I cannot, for the life of me, find a 32-bit JVM/JDK/whatever that I can install on my Mac OS X 10.8.2 system. I even tried installing the MacPorts openjdk6, but that build failed too. Has anybody got this working on Mac OS X 10.8.2 with Eclipse? Where can I find a functional 32-bit JVM for this platform? The JVM that Oracle supplies, which is the only official JVM for this OS version, does not appear to support 32-bit operations at all. It is strictly 64-bit.

Apple has been pissing me off more and more with the direction they are taking Mac OS X. I don't think I'll be buying another Mac unless something changes before I need a hardware upgrade.
Bigtoad
New User
 
Posts: 2
Joined: Sun Feb 10, 2013 1:04 am

Re: Mac OS X Mountain Lion missing 32-bit Java

Postby skoehler » Sun Feb 10, 2013 1:42 am

You have installed Oracle's Java for OS X right?
What you need is Apple's Java 6. I'm pretty sure it's available for Mountain Lion.
So please google for Java 6 on Mountain Lion. I found the following, which looks primising:
https://discussions.apple.com/thread/41 ... 0&tstart=0
http://stackoverflow.com/questions/1365 ... ntain-lion

It seems, Apple's Java 6 JDK is available on developer.apple.com.

BTW: the root problem is that Lego provides a 32Bit driver only (it works on 64bit OS, but not with 64 bit applications) and that we haven't found a way to bypass it yet.
skoehler
leJOS Team Member
 
Posts: 1422
Joined: Thu Oct 30, 2008 4:54 pm

Re: Mac OS X Mountain Lion missing 32-bit Java

Postby Bigtoad » Mon Feb 11, 2013 6:17 am

Thanks, I got it working from the command line with the Java 6 tools from developer.apple.com. I'm still struggling with the Eclipse piece of it but I'll figure it out eventually. I think I need to get the -d32 JVM switch configured in the right place in Eclipse and, so far, I haven't found the right place. I have been using Eclipse for a while but it was for Perl, not Java.
Bigtoad
New User
 
Posts: 2
Joined: Sun Feb 10, 2013 1:04 am

Re: Mac OS X Mountain Lion missing 32-bit Java

Postby moosooboo » Wed Feb 13, 2013 2:01 pm

I feel your pain, I've used Macs for many years and they are quickly going off the boil. I'm running linux in a virtual machine hosted by OS X, but am also looking at dual booting my mac between the two. I'd go all the way and totally ditch OS X now, but there are some apps that I really can't find good alternatives for. Anyway, a linux virtual machine works very well, VM Ware Fusion works almost flawlessly if that is any help.
moosooboo
New User
 
Posts: 14
Joined: Thu Jan 17, 2013 5:10 pm

Re: Mac OS X Mountain Lion missing 32-bit Java

Postby omatthias » Thu Jul 24, 2014 8:07 pm

Hey Guys

I encounter the same problem. Since i have formatted my SSD and built in a second HDD and combined them to a fusionDrive and afterwards re-imported my Data from an BackUp, I can no longer use eclipse. It won't sync my code to the NXT. I am not really familiar with "programming" itself, I am just programming the NXt in Java with knowledge we had on the university. If anybody might help me out, it would be great.

So, now to the specs, ich have a MacBook Pro from 2012, and as i said, everything worked fine, just until this event.

Anybody an idea?

edit: it just says:
Error: This Java instance does not support a 32-bit JVM.
Please install the desired version.
Linking the file failed with exit status 1
omatthias
New User
 
Posts: 2
Joined: Thu Jul 24, 2014 8:04 pm


Return to NXJ Software

Who is online

Users browsing this forum: No registered users and 1 guest

more stuff