Displaying 20 results from an estimated 2000 matches similar to: "RJB in Rails - setting JAVA_HOME correctly in environment.rb"
2009 Sep 30
0
rjb failure: can't create Java VM
Help!
On my Mac dev machine, everything works, and obviously on my Debian
production server something is wrong.
I set JAVA_HOME and LD_LIBRARY_PATH in environment.rb, but it''s still
blocked.
Anyone has experience with rjb?
--
Posted via http://www.ruby-forum.com/.
2006 Jan 31
4
Rails to Java
Hello,
I just started playing with RubyOnRails. It is indeed fascinating! I
have a question about using rails models to connect to backend Java
(i.e. EJBs) instead of database.
Any pointers will be appreciated.
Thanks and Regards,
Khaled
--
Posted via http://www.ruby-forum.com/.
2011 Dec 09
1
Issue installing rjb, could not create MakeFile
Hello,
I''m having some problems when try to install rjb i get this message
C:\Users\PC1090\Documents\RJB\rjb-1.3.8>ruby setup.rb config
---> bin
<--- bin
---> lib
<--- lib
---> ext
C:/Ruby187/Ruby1.8.7/bin/ruby
"C:/Users/PC1090/Documents/RJB/rjb-1.3.8/ext/extconf.rb"
checking for jni.h... no
*** C:/Users/PC1090/Documents/RJB/rjb-1.3.8/ext/extconf.rb failed
2005 Dec 21
5
text search engine ?
Hi there,
What are you using for text search engine in your rails applications ?
I have been using simple search for simple applications, but then I
need to search text in model instances inside collections such as
user.documents and the like. I believe that simple search does not
support any sort of ranged queries, and sql like might be overkill for
tables with lots of records.
Bests,
Sergi
2011 Feb 10
3
Using RJB in a Rails 3 app?
I''m trying to interact with a java library (Aspose Slides) inside of my
Rails 3 app. I''m trying to get the rjb gem installed but I keep running
into the same error when I try to start the app:
[BUG] cross-thread violation on rb_gc()
(null)
Abort trap
I''m on OSX 10.6.6, running ruby 1.8.7-p174 (via RVM) and Rails 3.0.4. I
tried a couple of methods for getting this
2009 Sep 28
3
rjb: Java classes in Rails
Hi,
For those who might not be aware, rjb is a killer gem for using java
classes inside your rails app (or any ruby code). Check it out at:
http://rubyforge.org/projects/rjb/
I was able to successfully use it in one of my apps that required some
code that is only available in java. And it''s much nicer than having to
compile a java app, then shell out using backticks, get back the return
2008 Feb 27
1
RJB Not Working?
Heya all --
I recently downloaded the RJB 1.1.1 gem, and the install seemed to go
fine. However, when I try to require ''rjb'' I get the following error:
no such file to load -- rjb
Has anyone seen this before? Any thoughts what it could be? Thanks so
much!
-Lucas
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this
2007 Feb 23
2
cluster with environment variables
In production I''ve setup a mongrel cluster of 2 servers. Now I''m
using RJB(ruby java bridge). So I need certain java environment
variables set before mongrel starts.
So I set them:
export LD_LIBRARY_PATH=/usr/java/jdk1.6.0/jre/lib/i386/:/usr/java/jdk1.6.0/jre/lib/i386/client/:./
export JAVA_HOME=/usr/java/jdk1.6.0/
Then I run "mongrel_rails cluster::start".
Now
2007 Mar 05
0
File I/O with rjb
I am trying to do file i/o with rails and rjb and can''t figure out a
way to make this work. Here''s what I am trying to do:
- a user uploads an image to the server via a standard html form:
<%= file_field("blog", "attach") %>
- this returns a ruby File object to the controller in
params[:blog][:attach]
- then I need to convert this into a Java
2007 Mar 05
2
Help with rjb
I am trying to do file i/o with rails and rjb and can''t figure out a
way to make this work. Here''s what I am trying to do:
- a user uploads an image to the server via a standard html form:
<%= file_field("blog", "attach") %>
- this returns a ruby File object to the controller in
params[:blog][:attach]
2012 Jun 05
0
[LLVMdev] vmkit: Requires JAVA_HOME
While building i got this error
Error: JAVA_HOME is not defined correctly.
I wonder why vmkit requires JAVA_HOME, i would expect it to be
independent of any java staff except the classspath. Am i missing something?
Thank you
Foivos
2012 Jun 05
1
[LLVMdev] vmkit: Requires JAVA_HOME
While building i got this error
Error: JAVA_HOME is not defined correctly.
I wonder why vmkit requires JAVA_HOME, i would expect it to be
independent of any java staff except the classspath. Am i missing something?
Thank you
Foivos
2006 Aug 15
20
Talking to Java APIs
I''m trying to figure out how Ruby in general, and/or anything extra
Rails may have, can talk to Java APIs of third party server apps.
After quite a few search attempts net-wide and on ruby forums, and
with "Programming Ruby" in hand, I''m coming up with zilch. Either I''m
not finding it, or I''m not recognizing it.
I''m assuming there has
2009 May 25
2
Looping through java hashmap from ruby through rjb
Greetings.
I am trying to list all keys in a java.util.HashMap field.
The Java code to do this looks like:
#
Collection c = hMap.values();
#
#
//obtain an Iterator for Collection
#
Iterator itr = c.iterator();
#
#
//iterate through HashMap values iterator
#
while(itr.hasNext())
System.out.println(itr.next());
So, I took a stab at the ruby version:
# I have a java hashmap called fields
2006 Feb 07
15
So, this search thing...
I am using ferret right now, and it works great for all my regular text
documents/information. My problem arises when I want to index/search all of
our assets (mostly pdf files). Currently, there is no way to READ pdfs from
Ruby. Because of this I have to resort to using Java to read the PDF''s and
then Lucene to index them. My problem here is a couple things.
One, to index a asset I have
2007 Apr 27
2
Jarque-Bera and rnorm()
Folks,
I'm a bit puzzled by the fact that if I generate 100,000 standard normal
variates using rnorm() and perform the Jarque-Bera on the resulting vector,
I get p-values that vary drastically from run to run. Is this expected?
Surely the p-val should be close to 1 for each test?
Are 100,000 variates sufficient for this test?
Or is it that rnorm() is not a robust random number generator?
2011 Aug 28
1
Request suitability comments
Hello:
I'm trying to find a search tool for a website I am planning. The
many CMS packages I've tried fall short when it comes to configurable
search modules.
I'd appreciate comments/suggestions on the suitability of Xapian
given the following:
a) the web site under development will have upwards of 1500 URL links
to other Internet locations.
b) each URL will have --
2010 Mar 09
1
rJava works on karmic for root but not for user sean
Good afternoon,
A strange one - library(rJava) works for root but not for user sean
On 64-bit Ubuntu 9.10, using R as root (sudo -i), I can say
library(rJava)
and it works fine with no error message of any kind. But logged in as
myself user "sean", it can't start...
sean at SeansPC:~$ R --no-save --vanilla
R version 2.10.1 (2009-12-14)
Copyright (C) 2009 The R Foundation for
2012 Mar 20
1
rJava / RCMD javareconf fails
Hi All,
Running R CMD javareconf -e (or R CMD javareconf as root I am rot on my
machines) Fails.
/
[root at penguins1lanalt etc]# R CMD javareconf
Java interpreter : /usr/bin/java
Java version : 1.6.0_30
Java home path : /usr/java/jre1.6.0_30
Java compiler : not present
Java headers gen.:
Java archive tool:
Java library path:
2010 Aug 13
1
Installing rJava fails on Gentoo (amd64) with Sun JDK - checking JNI data types... error
Installing rJava fails consistently, whether installed via
the command line as below, or through "install.packages(
'rJava' )", and whether 0.84 or 0.85 is used, with the
message :-
"checking JNI data types... configure: error: One or more
JNI types differ from the corresponding native type. You may
need to use non-standard compiler flags or a different
compiler in order to