Currently working IDEs
Mike Swingler
swingler at apple.com
Fri Jan 21 08:52:29 PST 2011
Eclipse's launcher uses JNI_CreateJavaVM() to instantiate the JVM in it's process. Currently, the macosx-port does not contain the hooks in it's HotSpot for the JavaVM.framework to load, and it doesn't advertise the "JNI" capability in it's bundle.
This shouldn't be too hard to get going, but it does require some design work, and we are attempting to balance this with other priorities.
Regards,
Mike Swingler
Java Engineering
Apple Inc.
On Jan 21, 2011, at 5:20 AM, Erik Mattheis wrote:
> Yes. That was the first thing I tried. Here's the eclipse.ini:
>
> -startup
> ../../../plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
> --launcher.library
> ../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.1.R36x_v20100810
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256m
> --launcher.defaultAction
> openFile
> -vm
> /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/bin/java
> -vmargs
> -Xms40m
> -Xmx512m
> -Xdock:icon=../Resources/Eclipse.icns
> -XstartOnFirstThread
> -Dorg.eclipse.swt.internal.carbon.smallFonts
>
> And here's a snippet from the log after launching:
>
> eclipse.buildId=M20100909-0800
> java.version=1.6.0_22
> java.vendor=Apple Inc.
>
> As you can see, Eclipse is ignoring the -vm argument and using the default VM.
>
> --
> Erik
>
>
> On Jan 21, 2011, at 3:54 AM, Henri Gomez wrote:
>
>>> I'm running OS X 10.6.6 on a MacBook Pro with Core 2 Duo. I installed OpenJDK with the installer from the openjdk-osx-build project <http://code.google.com/p/openjdk-osx-build/>. Next I downloaded Eclipse Classic 3.7.0 M4 for 64 bit Cocoa, expanded the archive and performed the following on the command line:
>>>
>>>
>>> $ export JAVA_HOME=`/usr/libexec/java_home -version 1.7`
>>> $ echo $JAVA_HOME
>>> /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
>>> $ java -version
>>> openjdk version "1.7.0-internal"
>>> OpenJDK Runtime Environment (build 1.7.0-internal-b00)
>>> OpenJDK 64-Bit Server VM (build 20.0-b03, mixed mode)
>>> $ cd Downloads/eclipse
>>> $ java -XstartOnFirstThread -jar plugins/org.eclipse.equinox.launcher_1.2.0.v20101119.jar -os macosx -ws cocoa -arch x86_64
>>> ***WARNING: Display must be created on main thread due to Cocoa restrictions.
>>> An error has occurred. See the log file
>>
>> Did you try to launch Eclipse by updating eclipse.ini instead ?
>
More information about the macosx-port-dev
mailing list