JasonEric / openjdk-osx-build

Automatically exported from code.google.com/p/openjdk-osx-build
0 stars 0 forks source link

Can't start OpenJDK 1.7 from /usr/bin/java #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When I set JAVA_HOME set to
/Library/Java/JavaVirtualMachines/openjdk-1.7-x86_64/Contents/Home

Launching standard java, ie /usr/bin/java :

DYLD_PRINT_LIBRARIES= java -Xinternalversion

dyld: loaded: /usr/bin/java
dyld: loaded: 
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
dyld: loaded: /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
dyld: loaded: /usr/lib/libSystem.B.dylib
dyld: loaded: /usr/lib/libauto.dylib
dyld: loaded: /usr/lib/libicucore.A.dylib
dyld: loaded: /usr/lib/libobjc.A.dylib
dyld: loaded: /usr/lib/libz.1.dylib
dyld: loaded: /usr/lib/libstdc++.6.dylib
dyld: loaded: /usr/lib/system/libmathCommon.A.dylib
dyld: loaded: 
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
dyld: loaded: /usr/lib/libxml2.2.dylib
dyld: loaded: 
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwor
k.framework/Versions/A/CFNetwork
dyld: loaded: 
/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfig
uration
dyld: loaded: /System/Library/Frameworks/Security.framework/Versions/A/Security
dyld: loaded: 
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
dyld: loaded: /usr/lib/libsqlite3.dylib
dyld: loaded: 
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCo
re.framework/Versions/A/CarbonCore
dyld: loaded: 
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata
.framework/Versions/A/Metadata
dyld: loaded: 
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServic
es.framework/Versions/A/OSServices
dyld: loaded: 
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKi
t.framework/Versions/A/SearchKit
dyld: loaded: 
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.frame
work/Versions/A/AE
dyld: loaded: 
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe
rvices.framework/Versions/A/LaunchServices
dyld: loaded: 
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Dictiona
ryServices.framework/Versions/A/DictionaryServices
dyld: loaded: /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
dyld: loaded: 
/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
dyld: loaded: /usr/lib/libbsm.0.dylib
dyld: loaded: /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
dyld: loaded: /usr/lib/system/libkxld.dylib
dyld: loaded: /usr/lib/libxslt.1.dylib
dyld: loaded: 
/Library/Java/JavaVirtualMachines/openjdk-1.7-x86_64/Contents/Home/bin/java
dyld: loaded: /usr/lib/libSystem.B.dylib
dyld: loaded: /usr/lib/system/libmathCommon.A.dylib
Error: could not find libjava.dylib
Error: Could not find Java SE Runtime Environment.

-->

It didn't works, libjava.dylib is not found ;(

Launching java directly from
/Library/Java/JavaVirtualMachines/openjdk-1.7-x86_64/Contents/Home/bin/java
:

DYLD_PRINT_LIBRARIES=
/Library/Java/JavaVirtualMachines/openjdk-1.7-x86_64/Contents/Home/bin/java
-Xinternalversion

dyld: loaded: 
/Library/Java/JavaVirtualMachines/openjdk-1.7-x86_64/Contents/Home/bin/java
dyld: loaded: /usr/lib/libSystem.B.dylib
dyld: loaded: /usr/lib/system/libmathCommon.A.dylib
dyld: loaded: 
/Library/Java/JavaVirtualMachines/openjdk-1.7-x86_64/Contents/Home/jre/lib/amd64
/server/libjvm.dylib
dyld: loaded: /usr/lib/libstdc++.6.dylib
dyld: loaded: 
/Library/Java/JavaVirtualMachines/openjdk-1.7-x86_64/Contents/Home/jre/lib/amd64
/libverify.dylib
dyld: loaded: 
/Library/Java/JavaVirtualMachines/openjdk-1.7-x86_64/Contents/Home/jre/lib/amd64
/libjava.dylib
OpenJDK 64-Bit Server VM (20.0-b02) for bsd-amd64 JRE
(1.7.0-internal-henri_2010_11_30_00_26-b00), built on Nov 30 2010
00:31:26 by "henri" with gcc 4.0.1 (Apple Inc. build 5494)

-->

It works, libjava.dylib, libjvm.dylib and libverify.dylib are found.

It may be related to change in java start mode (see: 
http://mail.openjdk.java.net/pipermail/bsd-port-dev/2010-January/001097.html)

Original issue reported on code.google.com by henri.gomez on 30 Nov 2010 at 8:41

GoogleCodeExporter commented 8 years ago
Fixed using Alexander Strange (Apple) proposed patch on its  java-dev list

Original comment by henri.gomez on 30 Nov 2010 at 11:56

GoogleCodeExporter commented 8 years ago
This bug is still referenced in the README file of current downloads.

Original comment by dkocher@sudo.ch on 9 May 2012 at 12:42

GoogleCodeExporter commented 8 years ago
OpenJDK for BSD branch is no more maintained since OpenJDK 7 and 8 are 
available for month in OSX specific (and supported) versions :

http://code.google.com/p/openjdk-osx-build/downloads/list

Original comment by henri.gomez on 9 May 2012 at 12:58

GoogleCodeExporter commented 8 years ago
Yep - the bug is still present in the readme (at least for the Snow Leopard 
build from March)

Original comment by carle...@gmail.com on 18 May 2012 at 1:49