On my Windows box for the same exact project which works fine on my Mac
OS X box and on my Windows tablet I get the following error:
Process finished with exit code 1
I’m trying to make a call to FileUtils from within an inner class but
the Jruby compiler is getting confused and again just on my Windows box
? From the error it seems that the compiler wants to treat FileUtils as
if it was within the namespace of my inner class. That fact that it
works on my Mac and Win tablets suggests to me that I must have some
sort of setup wrong and possibly with Java SDK. Given that, I went
ahead and downloaded the latest JDK from Oracle i.e. jdk 7 update 9 ,
setup JAVA_HOME to point to it as I had done on my win tablet where
things work fine. Unfortunately that did not work. If I go ahead and
require “FileUtils” then I don’t’ get the error and the code works
except for a warning:
C:/Ruby193/lib/ruby/1.9.1/FileUtils.rb:93: warning: already initialized
constant OPT_TABLE
C:/Ruby193/lib/ruby/1.9.1/FileUtils.rb:1268: warning: already
initialized constant S_IF_DOOR
C:/Ruby193/lib/ruby/1.9.1/FileUtils.rb:1496: warning: already
initialized constant DIRECTORY_TERM
C:/Ruby193/lib/ruby/1.9.1/FileUtils.rb:1500: warning: already
initialized constant SYSCASE
C:/Ruby193/lib/ruby/1.9.1/FileUtils.rb:1619: warning: already
initialized constant LOW_METHODS
C:/Ruby193/lib/ruby/1.9.1/FileUtils.rb:1625: warning: already
initialized constant METHODS
which I find odd because I thought that Jruby is self contained i.e. ti
doesn’t go out of itself for Ruby functionality.
I’m a newbie, it seems that I may not understand the inter play between
Ruby and Jruby and Java for that matter.
BTW, all of this is running Intellij IDEA which seems to be what JRuby
central uses for development.
In conclusion, what possibly can be different in one environment from
another that would create the conditions that would correlate to what I
have described above ?
thanks again for the feedback.
Charles M.
[email protected]