Is JNI (Java Native Interface) Known to Work in Both Directions
on FreeBSD (to invoke the JVM from native software)?
Nick Johnson
freebsd at spatula.net
Sat Mar 29 07:53:54 PDT 2008
Yeah, it works. Take a look at jsvc that ships with Tomcat 6. It binds
to a port, drops root permission and creates a JVM and does back and forth
communication with Tomcat.
Nick
On Sat, 29 Mar 2008, Rod wrote:
> I'm having trouble using JNI software on FreeBSD.
> In summary:
> - I'm able to call native routines from a Java VM via JNI
> - However in the other direction JNI seems not to work. I can't create a JVM
> via JNI from native software.
> Admittedly, I'm using one specific software (R with rJava) and haven't tried
> running my own JNI software.
>
> What I'm noticing is that a call to JNI_CreateJavaVM () in
> /usr/local/jdk1.6.0/jre/lib/i386/client/libjvm.so results in SIGSYS, Bad
> Sytem Call.
>
> Here's my output from running R with rJava under gdb with a stack backtrace.
> It all seems to go pear-shaped at JNI_CreateJavaVM () :
>
--
"Courage isn't just a matter of not being frightened, you know. It's being
afraid and doing what you have to do anyway."
Doctor Who - Planet of the Daleks
This message has been brought to you by Nick Johnson 2.3b1 and the number 6.
http://healerNick.com/ http://morons.org/ http://spatula.net/
More information about the freebsd-java
mailing list