I have just installed osx mavericks, and Java SE6 just disappeared from my system... anyway, I already have Java SE7 and I am happy with that, no need to reinstall Java SE6 since my NetBeans already works on Java7 and NetLogo too if I start it from terminal...
I am wondering how to tell the plist file of my NetLogo 5.0.4 to look for the JavaSE7 folder... any help much appreciated.
Best,
Simone
Answer
You might think that changing "1.5" to "1.7" in these Info.plist lines:
<key>JVMVersion</key>
<string>1.5+</string>
would work, but it doesn't. That's because Java 6 is from Apple but Java 7 is from Oracle, and "Apple java applications and Oracle's aren't executable compatible" (source).
Unless you want to mess with making a new NetLogo app bundle using Oracle's AppBundler tool, the simplest way to get the app running under Java 7 is to download the Linux version of NetLogo and use the supplied netlogo.sh launch script.
More info
When running headless, NetLogo has been tested thoroughly on Java 7. For headless runs, I definitely recommend Java 7 because it's faster.
The NetLogo GUI, however, hasn't been tested with Java 7. Once you get it launched, it will probably mostly work, but you might have problems or incompatibilities. We'll probably switch eventually (it's issue 197), but the work on that hasn't been done yet. That ticket would be a good place to record any problems that you find.
If you decide to fall back to Java 6, you can get it from http://support.apple.com/kb/DL1572 . (link is current as of October 2013)
Related
I was trying to find a download for jdk 1.6 specifically for OS X. But Oracle doesn't seem to offer one. This made me wonder if the jdk 1.6 meant for Linux would work fine on OS X. I could try running it to see if it works. But I thought I'd check here to see if there are any subtle or not-so-subtle issues that I've missed.
I have an AMD-64 architecture on my mac system.
Java 6 for Mac is provided by Apple rather than Oracle, and can be downloaded from http://support.apple.com/downloads/#Java - look for the latest "Java for OSX", which at the time of writing is 2014-001.
I am currently running Debian Linux on an ARMv7 microprocessor (aka my android phone. ;))
it really runs great, without a single issue. With surprisingly a great deal amount of application support compiled for arm, as compared to many other arm based linux distros.
I would love to use it for some Web Development, as well as Java programming and compiling, but I am having a bit of trouble trying to find any IDE's that are either architecturally independent or compiled for the ARM processor..
One I am really curious about is, IntelliJ IDEA. But I cant figure out if it is architecturally independent or just x86 support only.
I also believe Netbeans is ready and compiled for NetBeans, but I am not a big user of it so I would prefer to use one of the ones I use more often. but if it comes to it, and it does support arm, I will definitely use it.
So what do you folks know of? Are there any programs that are compiled for arm that will suit this purpose for me? or am I stuck with Vim or something?
Well it never hurts to try :)
Have you downloaded the JRE for ARM from http://www.oracle.com/technetwork/java/embedded/downloads/javase/index.html? Get that and download IntelliJ 11 Community Edition for linux and give it a go.
On the Samsung Chromebook Arm, Eclipse works when running Crouton and Ubuntu. At the command line, enter:
sudo apt-get install eclipse
Ubuntu will automatically install Java JDK 6 for arm. Replacing it with Oracle Java JDK 8 for Arm will improve performance
Alternatively, when using Chroagh and Arch Linux, Intellij Idea works. At the command line, enter:
cd /usr/lib
sudo ln -s libgif.so libgif.so.4
pacman -S intellij-idea-community-edition
Intellij Idea install with Open-JDK7 for ARM, but you can replace it with Oracle JDK8 for ARM.
Lastly, I have had no luck installing Android-Studio or the Android SDK for Eclipse on either Ubuntu or Arch. Still searching for this solution.
It is still a bit early for ARM desktop-class hardware to use for development even if the hw is now strong enough.
I have managed to run some bigger Swing applications on my XE303C Chromebook under Ubuntu 12.04 (OpenJDK7 and now Oracle JDK( for ARM/Linux 8 EA) but I haven't had much success with Java IDEs.
Netbeans 7.3 fails to start on both JREs after the splashscreen.
Eclipse is in the repos though, so it may work. (I am a Netbeans guy so I haven't tried)
If you're using Java < 1.7 on OS X and you need to use JSObject for connecting an applet to JavaScript, you can find it in in $JAVA_HOME/jre/lib/plugin.jar.
The "plugin.jar" archive doesn't seem to exist on Java 1.7 for OS X (as packaged by Oracle). There is a jfxrt.jar that seems to contain JSObject, but that unfortunately means that you can't use the same plugin.jar that you can on almost any other JDK, including 7u5 for Linux, which still has plugin.jar built right in.
In particular, this gets irritating if you're trying to use it as a compilation dependency for a build tool such as Maven, which you could otherwise do with a JAVA_HOME-relative path.
Java 7 on Mac OS X doesn't support the Java plugin. So, plugin.jar is simply not there. If you manage to find the Java 7 installation guide for Mac OS X on Oracle's website (good luck with that) you'll see:
Note that for the 7u4 release, Java plugin and Java Web start applications are not supported.
And, yes, 7u5 is out, but its release notes say it's just a bug and security fix. I'm assuming Oracle just didn't bother to update their installation notes. It looks like the 7u6 developer preview does include the plugin, so at least it's on its way.
The jfxrt.jar file is for Java FX, which is included in the Oracle Java 7 Mac OS X release. Of course, Java FX is built on top of Java applets and is intended to run via the Java plugin, so don't ask me why it would be included in Oracle's Mac OS X Java 7 release while the Java plugin itself isn't. (I guess you can build Java FX apps, you just can't run them?)
The real answer appears to be "don't use Java 7 on Mac OS X quite yet." Which may be one of the reasons Oracle extended the Java 6 EOL until November.
Plugin.jar is available on Java 7u6 for OS X, now available.
I'm starting to develop my new study project. Because I want and need to run it on different platforms (Linux and Windows) I decide to use Java. Also, because I want to learn something new - I have decided to use Qt Jambi. And here are my problems and doubts. I think that most of it are because I do not understand everything clearly... ;) For now, I develop my application mostly in .Net, and few in Java Swing.
Firstly, I'm using Windows 7 64bit and I want to develop most time on this system. So I've installed the new Eclipse Helios 64bit and Jave SE 64bit. And here is the first concern and problem:
1. It can be stupid, but if I'm using such a configuration, my application will be 32bit or 64bit? :)) It must be 32bit, 64bit can be an option...
2. I've download the Qt Jambi 4.6.3 from this site: http://sourceforge.net/projects/qtjambi/files/ and I can't run it... I've got such error:
java.lang.ExceptionInInitializerError
at com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:60)
Caused by: java.lang.RuntimeException: Loading library failed, progress so far:
Unpacking .jar file: 'qtjambi-win32-msvc2005-4.6.3.jar'
Checking Archive 'qtjambi-win32-msvc2005-4.6.3.jar'
- skipping because of wrong system: trying to load: 'win32', expected: 'win64'
From this description I thought that the 64bit java and 32bit Qt is a problem. Because there is no Qt Jambi 4.6.3 for 64bit windows I've installed the 32 bit Java SE and Eclipse simultaneusly. But this do not help.
On the other hand, I found 64bit Qt Jambi from Nokia site - the last version with their support and everything works (only Qt Jambi.exe file not run, because could not find the jvm.dll, which is also strange....
What I want is to develop 32bit application in Java with newest stable Qt Jambi (4.6.3) which will run on Linux and Windows (both 32 and 64bit), and I'm developing in on 64bit Windows. My other questions are:
1. From documentation I understand that I need qtjambi.jar and the second one specific for each system because of C++. Is there any way to include all and make application to choose the right one during start up or intallation?
2. And for people developing in Qt - is better to use Eclipse plugin or to use Qt Creator and then juic ?
3. Some recommended books / tutorials will appreciate.
Thank you for patience to read that and for any answers :)
MichaĆ
I had this same problem. To get it to work I have to remove the 64-bit java installations of Java 6 Update 22 and Java SE Developement Kit 6 update 22. Once I removed these Eclipse helios new that it should use the 32 bit java stuff.
I am trying to debug a j2ee application in tomcat using Intellij Idea in an OS X 10.6.4 system. I need it specifically to run over a 1.5 JVM and 1.5 JDK so that the jgroups-all component doesn't crash the application through this error:
class: java.lang.ClassNotFoundException: [Lorg.jgroups.Address;
at com.opensymphony.oscache.plugins.clustersupport.JavaGroupsBroadcastingListener.initialize(JavaGroupsBroadcastingListener.java:119)
Has anyone needed to install an older version of JVM or JDK in OS X before?
NOTE: I'm a Mac newbie.
Thanks, everyone.
Well, as far as I know you should be able to choose an older VM in the Java control panel, although I think Apple removes old JREs by default now.
Did you consider Apple's Java Deprecation before starting you project? It looks like you will be out of luck in the near future. If Apple doesn't even want to support some recent JRE anymore it is unlikely that they will offer old, unsupported ones, which even Oracle ended support for.
Even if Oracle will provide some JRE/JDK for Mac OSX it is highly unlikely that they will back-port some Java 5 to Mac OSX. Your best bet is to migrate your application to a version which is supported first, before doing any other steps.
Try the solution here.