[jira] [Commented] (DAEMON-281) Jsvc not loading correct shared lib for Java 7 on MacOS

2014-01-20 Thread Helmut Nagy (JIRA)

[ 
https://issues.apache.org/jira/browse/DAEMON-281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13876344#comment-13876344
 ] 

Helmut Nagy commented on DAEMON-281:


Thanks, the patched version works for me.

OSX 10.9.1
Java Version: 1.7.0_60-ea-b01

 Jsvc not loading correct shared lib for Java 7 on MacOS
 ---

 Key: DAEMON-281
 URL: https://issues.apache.org/jira/browse/DAEMON-281
 Project: Commons Daemon
  Issue Type: Bug
  Components: Jsvc
Affects Versions: 1.0.13
 Environment: MacOS 10.8.2 with Java 7:
 $ java -version
 java version 1.7.0_15
 Java(TM) SE Runtime Environment (build 1.7.0_15-b03)
 Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
Reporter: Ian Emmons
 Fix For: 1.0.14, 1.0.16

 Attachments: commons-daemon-1.0.15-native-src-patched.zip, 
 java.c.diff, java.c.diff, location.c.diff, location.c.diff


 When I try to run my program via jsvc, it complains:
 Cannot find any VM in Java Home JAVA_HOME
 Cannot locate JVM library file
 where JAVA_HOME is set to
 /Library/Java/JavaVirtualMachines/jdk1.7.0_15.jdk/Contents/Home
 The -debug switch shows jsvc searching for several shared libraries in the 
 folder
   $JAVA_HOME/../Libraries/
 However, with Java 1.7 this folder does not exist, and jsvc should be trying 
 to load this:
   $JAVA_HOME/jre/lib/server/libjvm.dylib
 If I change JAVA_HOME to point to Apple's Java 1.6, then jsvc successfully 
 finds the JVM shared library.
 Note:  I built jsvc myself with no problems, and the output of the build 
 makes it clear that it used the Java 7 JNI headers in the compilation.
 Background:  Apple has deprecated Java 1.6.  It not longer is present unless 
 the user explicitly installs it, and recent OS updates have disabled the 
 browser plugin and removed the Java control panel.  Apple is pushing 
 customers toward's Oracle's Java 1.7.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (DAEMON-281) Jsvc not loading correct shared lib for Java 7 on MacOS

2013-11-29 Thread Helmut Nagy (JIRA)

[ 
https://issues.apache.org/jira/browse/DAEMON-281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13835283#comment-13835283
 ] 

Helmut Nagy commented on DAEMON-281:


I have the same problem using commons-daemon-1.0.15-native-src

Shouldn't that be fixed?

 Jsvc not loading correct shared lib for Java 7 on MacOS
 ---

 Key: DAEMON-281
 URL: https://issues.apache.org/jira/browse/DAEMON-281
 Project: Commons Daemon
  Issue Type: Bug
  Components: Jsvc
Affects Versions: 1.0.13
 Environment: MacOS 10.8.2 with Java 7:
 $ java -version
 java version 1.7.0_15
 Java(TM) SE Runtime Environment (build 1.7.0_15-b03)
 Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
Reporter: Ian Emmons
 Fix For: 1.0.14, 1.0.16

 Attachments: java.c.diff, java.c.diff, location.c.diff, 
 location.c.diff


 When I try to run my program via jsvc, it complains:
 Cannot find any VM in Java Home JAVA_HOME
 Cannot locate JVM library file
 where JAVA_HOME is set to
 /Library/Java/JavaVirtualMachines/jdk1.7.0_15.jdk/Contents/Home
 The -debug switch shows jsvc searching for several shared libraries in the 
 folder
   $JAVA_HOME/../Libraries/
 However, with Java 1.7 this folder does not exist, and jsvc should be trying 
 to load this:
   $JAVA_HOME/jre/lib/server/libjvm.dylib
 If I change JAVA_HOME to point to Apple's Java 1.6, then jsvc successfully 
 finds the JVM shared library.
 Note:  I built jsvc myself with no problems, and the output of the build 
 makes it clear that it used the Java 7 JNI headers in the compilation.
 Background:  Apple has deprecated Java 1.6.  It not longer is present unless 
 the user explicitly installs it, and recent OS updates have disabled the 
 browser plugin and removed the Java control panel.  Apple is pushing 
 customers toward's Oracle's Java 1.7.



--
This message was sent by Atlassian JIRA
(v6.1#6144)