Unable to use irb with 1.7.15

As a note, this works with 1.7.4:

$ jruby -jar jruby-complete-1.7.4.jar -S irb

However this just “returns to the command prompt”

$ jruby -jar jruby-complete-1.7.4.jar -S irb

I saw it on linux, and also reproduced it in windows.

FWIW, this means I cannot use the latest jruby :frowning:

Cheers!
-roger-

c:\downloads>java -jar jruby-complete-1.7.4.jar -S irb
irb(main):001:0> exit

c:\downloads>java -jar jruby-complete-1.7.15.jar -S irb

c:\downloads>

FWIW, the last version that worked was 1.7.13

Also, kind of odd to see the jar file size has suddenly grown so large!

22M jruby-complete-1.7.13.jar
36M jruby-complete-1.7.14.jar

Cheers!
-roger-

well these are actually zip files… so inspecting them is easy :slight_smile:

look what I found in 1.7.14…
Users\enebo\work\release\maven\jruby-complete\target
2 big jars…

It’s the same for 1.7.15…

I also confirm the irb not working… Odd… even this fails now too:

java -jar jruby-complete-1.7.15.jar -S jirb_swing

isOn Sep 9, 2014, at 5:45 PM, Christian MICHON
[email protected] wrote:

I also confirm the irb not working… Odd… even this fails now too:

java -jar jruby-complete-1.7.15.jar -S jirb_swing

For me, OS X, this mostly seems to work for the executables in the bin
directory.
irb works
jirb works
jirb_swing does not work

warning: ambiguous Java methods found, using
java.awt.Color(int,int,int)
NameError: missing class or uppercase package name
(`org.jruby.demo.readline.TextAreaReadline’)
get_proxy_or_package_under_package at
org/jruby/javasupport/JavaUtilities.java:54
method_missing at
file:/Library/Frameworks/JRuby.framework/Versions/1.7.4/lib/jruby.jar!/jruby/java/java_package_module_template.rb:14
(root) at
/Users/mjh/Downloads/jruby-1.7.15/bin/jirb_swing:40
tap at org/jruby/RubyKernel.java:1860
(root) at
/Users/mjh/Downloads/jruby-1.7.15/bin/jirb_swing:33
tap at org/jruby/RubyKernel.java:1860
(root) at
/Users/mjh/Downloads/jruby-1.7.15/bin/jirb_swing:32
tap at org/jruby/RubyKernel.java:1860
(root) at
/Users/mjh/Downloads/jruby-1.7.15/bin/jirb_swing:29

Michael H.

trz nio.2 for OS X http://www195.pair.com/mik3hall/index.html#trz

HalfPipe Java 6/7 shell app
http://www195.pair.com/mik3hall/index.html#halfpipe

AppConverter convert Apple jvm to openjdk apps
http://www195.pair.com/mik3hall/index.html#appconverter

On Sep 9, 2014, at 8:11 PM, Michael H. [email protected] wrote:

/Library/Frameworks/JRuby.framework/Versions/1.7.4

Never mind on that, I was pulling the old frameworked version.

Michael H.

trz nio.2 for OS X http://www195.pair.com/mik3hall/index.html#trz

HalfPipe Java 6/7 shell app
http://www195.pair.com/mik3hall/index.html#halfpipe

AppConverter convert Apple jvm to openjdk apps
http://www195.pair.com/mik3hall/index.html#appconverter

Careful here. We’re talking about jruby complete.

So you’ve to test the command
Java -jar jruby-complete-1.7.15 -S irb

From your emails it looks like you’re using an installation, ie jar
files
expanded. I tried that too and this works.

So the issue remains on jruby complete. Irb does not work anymore…

On Sep 9, 2014, at 11:43 PM, Christian MICHON
[email protected] wrote:

So the issue remains on jruby complete. Irb does not work anymore…

Ah, sorry again. I had a little trouble figuring which was the
appropriate install. I think I noticed the separate complete and just
assumed it was bin+source or something.
I’ll check against that when I get a chance.
It is odd, you wouldn’t expect working and not working versions of the
same thing in one release.

Michael H.

trz nio.2 for OS X http://www195.pair.com/mik3hall/index.html#trz

HalfPipe Java 6/7 shell app
http://www195.pair.com/mik3hall/index.html#halfpipe

AppConverter convert Apple jvm to openjdk apps
http://www195.pair.com/mik3hall/index.html#appconverter

On Sep 9, 2014, at 8:18 PM, Michael H. [email protected] wrote:

On Sep 9, 2014, at 8:11 PM, Michael H. [email protected] wrote:

/Library/Frameworks/JRuby.framework/Versions/1.7.4

Never mind on that, I was pulling the old frameworked version.

Sorry to reply again and to myself but I just added a 1.7.15 directory
to the OS X JRuby framework and changed the Current symlink to point to
it.
These bin executables then all work as far as starting and setting and
displaying a variable - irb,jirb, and jirb_swing.
So maybe a platform specific issue? Windows is broke? I guess I have no
immediate need to get JRuby embedded into my app, although I should make
sure that it does in fact also work from there though. I still might
embed sometime. Not sure about the future of 3rd party frameworks with
OS X security creep - GateKeeper and the like.

Michael H.

trz nio.2 for OS X http://www195.pair.com/mik3hall/index.html#trz

HalfPipe Java 6/7 shell app
http://www195.pair.com/mik3hall/index.html#halfpipe

AppConverter convert Apple jvm to openjdk apps
http://www195.pair.com/mik3hall/index.html#appconverter

please be so kind and file an issue on github - it is a principal
problem
and helps to demonstrate my point in

thanx, christian

As a note for followers, this is fixed in 1.7.16

However, if you rename the jar to have a space in it, it still fails
[separate issue possibly].
FWIW

c:>java -jar “C:\downloads\jruby-complete-1.7.16 (1).jar” -S irb

c:>java -jar C:\downloads\jruby-complete-1.7.16.jar -S irb
irb(main):001:0> exit

(note the first one just returning). Or let me know if you’d like a git
issue on it.
Cheers!
-roger-

OK looks like issue 1983 was reopened, many thanks for looking at this.