Displaying 20 results from an estimated 10000 matches similar to: "Utilize Java Libraries"
2006 May 14
12
Is there a place for java in Ruby on Rails apps?
Hi all,
I''m asking this question from the standpoint of a developer with almost 10
years experience with Microsoft technologies, mostly doing server side
component and database work. So, I''m not very familiar with the java
world. Can anyon tell me how/if java development can complement Ruby on
Rails development? I''m not interested in how java can duplicate Rails
2007 Feb 19
2
help - how to call java classes from controller
hi,
I need help to call java classes from the a controller action. I can
call a java class from a ruby script, but when I am trying to call in
controller, then
require ''java''
itself gives me load error.
I have java 1.4, jruby 0.9.0 and ruby 1.8.5 installed.
I have tried to start server as :
jruby script/server but it does not work.
In my application I need to use 3rd party
2010 Oct 28
2
ActiveRecord JDBC error Generated keys not requested
I''m getting the following error while connecting to mysql using
activerecord-jdbcmysql-adapter (1.0.2). Rails 3.0.1.
ActiveRecord::JDBCError: Generated keys not requested. You need to
specify Statement.RETURN_GENERATED_KEYS to Statement.executeUpdate()
or Connection.prepareStatement().: SET SQL_AUTO_IS_NULL=0
This occurs not matter what application I run it in to e.g. rake,
rails
2008 Nov 20
1
running tests on gem
Is there a way to run he tests with cjust the gem installed?
I wanted to run the tests on the gem and tried:
$ jruby -S gem list RedCloth
*** LOCAL GEMS ***
RedCloth (4.1.1)
$ jruby --version
jruby 1.1.5 (ruby 1.8.6 patchlevel 114) (2008-11-14 rev 6586) [i386-java]
[jruby.git (master)]$ jruby -S gem check -test RedCloth
ERROR: While executing gem ... (OptionParser::InvalidOption)
2008 May 22
2
gem install of mongrel v 1.1.5 broken in jruby
Can''t install the latest mongrel (1.1.5) in JRuby (jruby revisions
ranging from 6600 to 6750[trunk] checked) -- the platform is not
being identified and it''s trying to do native compilation.
I''m not sure it''s actually a problem with Mongrel or JRuby however --
perhaps there isn''t a mongrel-1.1.5-java.gem on rubyforge?
Some investigation below:
$
2010 Sep 22
1
Bundler picking up wrong version of Ruby with Rails 3 ( possible bundler bug )
Hello All,
I am developing a JRuby on Rails 3 application. Standard stuff.
I am facing problems getting autotest to run.
Here''s the trace:
% autotest
loading autotest/rails_rspec2
bundle exec
/Users/manish/Foo/Foo-Server/jruby-1.5.2/lib/ruby/gems/1.8/gems/rspec-core-2.0.0.beta.22/bin/rspec
2008 Mar 23
1
redcloth gem ragel code doesn''t build in jruby
I tried to install RedCloth-3.274 in jruby (trunk) but the install
failed when RedCloth tried to build the C code using mkmf:
I forget whether SuperRedcloth ever did build in JRuby??
I know Hpricot (which also uses ragel which can compile to Java code)
works in JRuby -- with the patch here:
https://code.whytheluckystiff.net/hpricot/ticket/131)
I might be confusing the two ...
FYI: If you
2009 Sep 17
1
Load Error Using Mechanize Gem
Hi,
I''m getting a "Could not open any of [xml2, xslt, exslt] (LoadError)" error when trying to run a simple Ruby program taken from the EXAMPLES.rdoc file of the Mechanize gem.
The error is in this line of the Nokogiri module of libxml.rb: ffi_lib ''xml2'', ''xslt'', ''exslt''
Not sure if there are missing gems, and if so,
2011 Sep 22
3
uninitialized constant Spec::Rails (NameError) when running spec command
I get the following error when trying to run a spec command on a model
test.
The command is :- C:\Rspec Test\spec\models>spec bank_account_spec.rb
The error is :-
c:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-rails-1.3.0/lib/spec/rails/
matchers/ ar_be_valid.rb:2: uninitialized constant Spec::Rails
(NameError) from c:/jruby-1.5.0/lib/ruby/gems/1.8/gems/rspec-
rails-1.3.0/lib/spec/ra
2007 Sep 24
2
Is Rcov working with Jruby now?
Hello everyone:
I am currently assigned to test a big project which uses JRuby to build a
web application. The reason of using JRuby is the web application is
communicating with Java Service. I am writing test cases using Rspec and
looking for a code coverage tool. Rcov is no doubt a nice code coverage
tool. However, it is said that Rcov is not compatible with JRuby so far.
Sigh....I can not
2009 Oct 20
3
gem installation failed
i got this error message while installing mysql gem.....
kindly help me to solve this issue....
JRuby limited openssl loaded. gem install jruby-openssl for full
support.
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
C:/Program Files/NetBeans
2011 May 07
4
Activerecord::JDBCError: Invalid column number
Hi,
I''m rather new to Ruby and RoR, so I do not really know whether this ist
the right forum to place my question.
For my first ''project'' I planned to create a simple online-viewer, which
grabs data from an existing database and make them visible in a
structured form via browsers. So I thought that could be the right
beginner-project, because I have only read datasets
2007 Dec 22
12
error when installing on jruby (fastthread dependency)
I''m running jruby trunk which has integrated rubygems 1.0.0 and when
I try and install mongrel with gem it blows up when the fastthread
dependency tries to do a native compilation.
I couldn''t find a copy of the gemspec in the svn checkout but looking
at the one installed when gem installing mongrel didn''t show any
platform differentiation. There is platform
2010 Jan 07
1
Active Record Error
I''ve had to download an existing Rails project and I''m attempting to
setup locally. I''ve installed all the 2.1.1 rails gems needed by the
project as the existing site is at that version. My platform is
Netbeans 6.8 on Windows Vista for development and prod is on linux.
I''ve been able to setup test and other sites using the latetest
version of rails but cant seem
2006 Mar 27
6
Fwd: Tricky block args
We in the JRuby project are working to get Rails to work successfully.
However, the array-indexed block parameter is not something currently
supported in JRuby:
x = {}
[1,2].each {|x[:foo]|}
This is not used extensively in the Rails code, but it''s used enough to
cause things to break in JRuby. We have been modifying the above to use a
temporary local variable, but obviously
2010 Aug 13
5
"uninitialized constant" Error for CalendarHelpper
After installing calendar_helper-0.2.3 gem, application using
CalendarHelper works fine. Then I tried to test using rake command which
gave me the following error.
Why does these messages appear evenif the application owrks fine.
------------------------------ Error Messags
--------------------------------------
/usr/local/jruby-1.5.1/bin/jruby -I"lib:test"
2011 Aug 18
3
Rails 3 - Production Environment
Hello Everyone,
I need some help related to the below requirements:
-> I need to setup production environment without installing Ruby or
Rails or other related gems into it.
I did accomplish the same using JRuby, bundler and warbler plugin. And
deployed the WAR file into Apache Tomcat server. But now I have to do
this without JRuby & Apache Tomcat.
-> I have to setup Apache with
2013 Jul 19
2
[LLVMdev] Compiling "vmkit" on Ubuntu_x64 - Error: missing argument to --bindir
I am working on a project to port JRuby on Embedded systems. JRuby converts
Ruby code to bytecode which is executed by any JVM. For this project I am
testing performance of JRuby with various available JVMs. I have chosen ARM
architecture.
Does vmkit support ARM architecture?
On Fri, Jul 19, 2013 at 8:01 PM, Harris BAKIRAS <h.bakiras at gmail.com> wrote:
> I don't know how JRuby
2010 Feb 25
2
error on project run.....
Hi,
i am new at rails, working on a project,as i run my project in
netbeans, the following error comes in the output window,
suggest some fix for it.
C:/Program Files/NetBeans 6.7 Beta/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/
gems/rails-2.3.2/lib/initializer.rb:32: C:/Program Files/NetBeans 6.7
Beta/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/
initializer.rb:1070: , unexpected kEND
2008 Jul 22
2
can''t execute a build - on windows + jruby
Hi all,
Am trying to get cc.rb working on a windows machine, running under JRuby.
I patched line 19 of project_migration.rb to use jruby, instead of ruby.
execute "jruby #{File.join(migrate_scripts_directory, script)} #{@data_dir}"
The add project works fine, but when I run start, the webpage just
hangs on the ajax request to build - never actually executes the build
at all, or comes