Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Mar 2008 07:53:52 -0700 (PDT)
From:      Nick Johnson <freebsd@spatula.net>
To:        Rod <funkyrod@gmail.com>
Cc:        freebsd-java@freebsd.org
Subject:   Re: Is JNI (Java Native Interface) Known to Work in Both Directions on FreeBSD (to invoke the JVM from native software)?
Message-ID:  <20080329075205.A2617@turing>
In-Reply-To: <dbe5b4eb0803282336p5143c5a3ub15113eaef799668@mail.gmail.com>
References:  <dbe5b4eb0803282336p5143c5a3ub15113eaef799668@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080329075205.A2617>