Displaying 20 results from an estimated 70000 matches similar to: "help - how to call java classes from controller"
2007 Feb 19
2
How to call java apis
Hi,
In my application, I have to make 3rd party java apis. Actually, I have
to use a sms gateway provider''s apis. They have a java sdk which I have
to use to send and receive sms. How can I call java apis from within a
controller?
In my controller, I have to receive request and use the java api to get
the data out of request. Process the data in controller action and then
send the
2006 Sep 24
1
Utilize Java Libraries
Is it possible to utilize java libraries from a RoR application?
I saw some stuff about Web Services (i.e. SOAP), so obviously that is
one way.
I also was looking at the JRuby project...
I was just curious how serious the efforts are to integration java and
ruby and how that relates to the rails framework.
Thanks for your thoughts!
--~--~---------~--~----~------------~-------~--~----~
You
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 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
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
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,
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
2013 Jul 22
0
[LLVMdev] Compiling "vmkit" on Ubuntu_x64 - Error: missing argument to --bindir
Hello Kumar,
Unfortunately we never experienced on ARM architecture and we are not
planning to port VMKit on ARM for the moment.
Regards,
Harris Bakiras
On 07/19/2013 05:50 PM, Kumar Sukhani wrote:
> 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
2013 Jul 22
2
[LLVMdev] Compiling "vmkit" on Ubuntu_x64 - Error: missing argument to --bindir
here <http://vmkit.llvm.org/> its mentioned that its portable on ARM. So
simply cross-compiling will work?
On Mon, Jul 22, 2013 at 7:37 PM, Harris BAKIRAS <h.bakiras at gmail.com> wrote:
> Hello Kumar,
>
> Unfortunately we never experienced on ARM architecture and we are not
> planning to port VMKit on ARM for the moment.
>
> Regards,
>
> Harris Bakiras
>
2013 Jul 22
0
[LLVMdev] Compiling "vmkit" on Ubuntu_x64 - Error: missing argument to --bindir
Hi Kumar,
It's a mistake, we will correct that, we haven't tested vmkit on arm. As
LLVM supports arm, by cross-compiling vmkit in arm/linux, it could work,
but you will probably have to adapt some few parts of the code. If you plan
to make the port, feel free to send us a lot of patches :)
Gaël
Le 22 juil. 2013 17:09, "Kumar Sukhani" <kumarsukhani at gmail.com> a écrit :
2008 Sep 16
1
[JRuby] Exposing rails method as java class
hello,
I am using Jruby on Rails. Does anyone know if you can expose a RoR object
as a java class so that you can call it directly from java without having to
go through a service layer like REST ?
Thx
Adam
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,
2013 Jul 19
0
[LLVMdev] Compiling "vmkit" on Ubuntu_x64 - Error: missing argument to --bindir
I don't know how JRuby works, maybe it uses some new feature that GNU
Classpath does not provide.
VMKit's openJDK version is unstable on 64 bits since package version 6b27.
You can still use it for very small programs which does not need GC but
that's all.
It works fine on 32 bits.
So you can try it on 32 bits or revert your java version to a previous
one (< than 6b27) to test
2007 Jan 16
1
calling java API from ruby
ok, i want to be able to send some data from my rails app to a CRM. The
library that defines the API for talking to the CRM is written in java.
I got JRuby working, which is pretty cool, but to my understanding i
would have to convert my ruby on rails app to a jruby on rails app
which, as far as i''ve understood, is different deal altogether and
would be set up more like a java server
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
2013 Jul 19
2
[LLVMdev] Compiling "vmkit" on Ubuntu_x64 - Error: missing argument to --bindir
Hi Harris Bakiras,
Thanks for reply. It working now.
Actually I wanted to try vmkit VM to run jruby codes.
vmkit is able to run Java program, but when I try to run JRuby code then I
get following error -
root at komal:/home/komal/Desktop/GSOC/programs# jruby hello.rb
>
> Platform.java:39:in `getPackageName': java.lang.NullPointerException
>
> from ConstantSet.java:84:in
2007 Dec 28
1
JtestR 0.1 released
JtestR allows you to test your Java code with Ruby frameworks.
Homepage: http://jtestr.codehaus.org
Download: http://dist.codehaus.org/jtestr
JtestR 0.1 is the first public release of the JtestR testing tool.
JtestR integrates JRuby with several Ruby frameworks to allow painless
testing of Java code, using RSpec, Test/Unit, dust and Mocha.
Features:
- Integrates with Ant and Maven
- Includes
2008 Jan 23
6
JRuby and callbacks?
Hi all,
Any Java/JRuby folks on the list? I''d like to see if we can implement
api.c for JRuby using JNA and see how it handles the callbacks.
I''m not a Java guy, nor do I know JNA, but I''ll take a stab at it if no
one else on the list does.
Here are a couple of useful links:
http://www.infoq.com/news/2007/09/jna-jruby
https://jna.dev.java.net/
Regards,
Dan
This
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 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)
2011 Jun 09
1
Rails 3.1 RC4 has broken migrations
Rails 3.1 RC4 has broken migrations
$ jruby -v
jruby 1.6.2 (ruby-1.8.7-p330) (2011-05-23 e2ea975) (Java HotSpot(TM)
64-Bit Server VM 1.6.0_24) [darwin-x86_64-java]
$ jruby -S rails -v
Rails 3.1.0.rc4
$ jruby -S rails new myapp -d jdbcpostgresql
[...]
$jruby -S rake db:create
[...]
$ jruby -S rails g model user name:string
invoke active_record
create