[rjb-users] can't create Java VM

rjb-users at rubyforge.org rjb-users at rubyforge.org
Sat Nov 17 10:28:05 EST 2007


I haven't followed the discussion too closely, but
what happens if you put the itext jarfile on your
CLASSPATH (ENV['CLASSPATH']) prior to calling
Rjb::import?

Maybe that's what RJB does anyway...

Cheers,
Rich

BTW, Arton, is it possible to replace
rjb-users at rubyforge... with the actual name of the
sender on the mailing list?

--- rjb-users at rubyforge.org wrote:

> Any more ideas what could be wrong? Can somebody
> explain what happens
> when you call Rjb::load('lib/itext-2.0.6.jar')?
> Which processes are
> called? What is started? Can it be something with
> user rights? I'm
> becoming a bit desperate, I really need this to
> work. All help is
> really appreciated. Thanks.
> 
> Kind regards,
> 
> Nick
> 
> 
> 
> On Nov 14, 2007 11:25 AM, Nick Snels
> <nick.snels at gmail.com> wrote:
> > Yes I set the values in the Rails context as
> indicated by the docs and
> > the help in the Litespeed forum.
> >
> > The output of the code you gave me is:
> > JAVA_HOME=/usr/java/jdk1.5.0_08/
> >
>
LD_LIBRARY_PATH=/usr/java/jdk1.5.0_08/jre/lib/i386/:/usr/java/jdk1.5.0_08/jre/lib/i386/client/:./
> > CurrentDir=/usr/local/lsws/verkoop
> >
> > So it appears as if everything is set correctly.
> >
> > Kind regards,
> >
> > Nick
> >
> >
> >
> > On Nov 14, 2007 10:39 AM, 
> <rjb-users at rubyforge.org> wrote:
> > > Hi,
> > >
> > > Can you add the action method below in your
> controller ?
> > >
> > > def showenv
> > >  render :text =>
>
"JAVA_HOME=#{ENV['JAVA_HOME']}<br/>LD_LIBRARY_PATH=#{ENV['LD_LIBRARY_PATH']}<br/>CurrentDir=#{Dir.pwd}"
> > > end
> > >
> > > If you can, please show me the output.
> > >
> > > Regards
> > >
> > > On Wed, 14 Nov 2007 18:27:34 +0900
> > >
> > > rjb-users at rubyforge.org¤µ¤ó wrote:
> > >
> > > > Hi,
> > > >
> > > > Did you set these values in Rails Contexts ?
> > > >
> > > > On Mon, 12 Nov 2007 20:51:36 +0100
> > > > rjb-users at rubyforge.org¤µ¤ó wrote:
> > > >
> > > > > Just added JAVA_HOME and LD_LIBRARY_PATH to
> my environment variables
> > > > > of Litespeed as described in
> > > > >
>
http://www.litespeedtech.com/docs/webserver/config/rails/#env.
> > > > > Restarted the server, executed the script
> again, but I still get the
> > > > > same error. How can I debug this? Thanks.
> > > > >
> > > > > Kind regards,
> > > > >
> > > > > Nick
> > > > >
> _______________________________________________
> > > > > rjb-users mailing list
> > > > > rjb-users at rubyforge.org
> > > > >
> http://rubyforge.org/mailman/listinfo/rjb-users
> > > >
> > > > --
> > > > arton
> > > >
> > >
> > > --
> > > arton
> > >
> > >
> > > _______________________________________________
> > > rjb-users mailing list
> > > rjb-users at rubyforge.org
> > > http://rubyforge.org/mailman/listinfo/rjb-users
> > >
> > >
> >
> > _______________________________________________
> rjb-users mailing list
> rjb-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rjb-users
> 


___________________________________

Richard L. Apodaca

http://depth-first.com      Blog
http://metamolecular.com    Company


More information about the rjb-users mailing list