Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open Source Java 6 Developer Preview Release




On Nov 20, 2007, at 6:31 AM, Alexander Babaev wrote:

Hi!

I've compiled amd64 version (on Leopard) and trying to start debugging session
(from IntelliJ Idea). But I get


FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_LOAD(196)
ERROR: transport library not found: dt_socket
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_LOAD(509)
JDWP exit error AGENT_ERROR_TRANSPORT_LOAD(196): No transports initialized [../../../src/share/back/debugInit.c:690]
Disconnected from server

Thanks for the report. Curtis Standfield noted that j2se/src/solaris/ back/linker_md.c hadn't been updated to use Apple's ".dylib" extensions. With a fix in place, I'm able to run the debugger:
http://hg.bikemonkey.org/javasrc_1_6_jrl_darwin/rev/7d68d77bbe56


But I can't find full scripting (Rhino) support in compiled package... Why isn't
it there? Or I have to turn on some flags during compilation?

To my surprise, it appears that Sun pulled Rhino from the JRL and OpenJDK (GPLv2) sources, apparently due to concerns regarding licensing:
http://mail.openjdk.java.net/pipermail/build-dev/2007-November/000353.html


I'm looking into integrating a solution. As a work-around, there is a BSD-licensed javascript JSR223 engine implementation, using Rhino, available via:
https://scripting.dev.java.net/


We have built and tested with Rhino version 1.6 release 5. There is a Rhino based JavaScript engine bundled in JDK 6 (http:// jdk6.dev.java.net).
The JDK 6 bundled version is based on Rhino 1.6 release 2. Unlike JDK 6 bundled engine, all Rhino features (optimizer, E4X) are enabled in this version.


This seems to work fine as a drop-in replacement for Sun's sun.org.mozilla code; JS Hello World using Rhino 1.6r5 and the Scripting package:
java -cp ~/Downloads/jsr223/javascript/build/js-engine.jar:/tmp/ rhino1_6R7/js.jar:. EvalScript
Found engine factory: com.sun.phobos.script.javascript.RhinoScriptEngineFactory
Found engine factory: com.sun.phobos.script.javascript.EmbeddedRhinoScriptEngineFactory
Hello, World


Thanks!
-landonf
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Update -- FreeBSD's 1.6 JDK on Mac OS X (From: Landon Fuller <email@hidden>)
 >Open Source Java 6 Developer Preview Release (From: Landon Fuller <email@hidden>)
 >Re: Open Source Java 6 Developer Preview Release (From: Ralph Martin <email@hidden>)
 >Re: Open Source Java 6 Developer Preview Release (From: Landon Fuller <email@hidden>)
 >Re: Open Source Java 6 Developer Preview Release (From: Ralph Martin <email@hidden>)
 >Re: Open Source Java 6 Developer Preview Release (From: Alexander Babaev <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.