# Unable to use irb with 1.7.15

**URL:** <https://www.ruby-forum.com/t/unable-to-use-irb-with-1-7-15/231961>\
**Category:** JRuby\
**Created:** [September 10, 2014, 12:30am UTC](https://www.ruby-forum.com/t/unable-to-use-irb-with-1-7-15/231961 "2014-09-10T00:30:27Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [September 10, 2014, 12:30am UTC](https://www.ruby-forum.com/t/unable-to-use-irb-with-1-7-15/231961/1 "2014-09-10T00:30:27Z")

</div>

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 ☹

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\>

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [September 10, 2014, 12:34am UTC](https://www.ruby-forum.com/t/unable-to-use-irb-with-1-7-15/231961/2 "2014-09-10T00:34:42Z")

</div>

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-

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [September 10, 2014, 12:46am UTC](https://www.ruby-forum.com/t/unable-to-use-irb-with-1-7-15/231961/3 "2014-09-10T00:46:44Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [September 10, 2014, 3:13am UTC](https://www.ruby-forum.com/t/unable-to-use-irb-with-1-7-15/231961/4 "2014-09-10T03:13:11Z")

</div>

isOn Sep 9, 2014, at 5:45 PM, Christian MICHON  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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](http://www195.pair.com/mik3hall/index.html#trz)

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

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

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [September 10, 2014, 3:19am UTC](https://www.ruby-forum.com/t/unable-to-use-irb-with-1-7-15/231961/5 "2014-09-10T03:19:57Z")

</div>

On Sep 9, 2014, at 8:11 PM, Michael H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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](http://www195.pair.com/mik3hall/index.html#trz)

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

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

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [September 10, 2014, 6:44am UTC](https://www.ruby-forum.com/t/unable-to-use-irb-with-1-7-15/231961/6 "2014-09-10T06:44:51Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [September 10, 2014, 10:29am UTC](https://www.ruby-forum.com/t/unable-to-use-irb-with-1-7-15/231961/7 "2014-09-10T10:29:17Z")

</div>

On Sep 9, 2014, at 11:43 PM, Christian MICHON  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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](http://www195.pair.com/mik3hall/index.html#trz)

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

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

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [September 10, 2014, 3:40am UTC](https://www.ruby-forum.com/t/unable-to-use-irb-with-1-7-15/231961/8 "2014-09-10T03:40:54Z")

</div>

On Sep 9, 2014, at 8:18 PM, Michael H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> On Sep 9, 2014, at 8:11 PM, Michael H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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](http://www195.pair.com/mik3hall/index.html#trz)

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

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

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [October 8, 2014, 2:29am UTC](https://www.ruby-forum.com/t/unable-to-use-irb-with-1-7-15/231961/9 "2014-10-08T02:29:41Z")

</div>

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

> <https://github.com/jruby/jruby/issues/2021>
>
> assuming the file 'h ello.rb' exists
> 
> \`\`\`
> f1 = File.new 'h ello.rb'
> f2 = File.ne…w 'file:h ello.rb'
> f3 = File.new 'file:h%20ello.rb'
> \`\`\`
> 
> they all represent the same file with the "same" path. since equals on \`File\` instance is always false the only way to compare would be over \`f1.path\` etc which does not work, i.e. \`f1.path == f2.path\` and \`f2.path == f3.path\` should be true.
> 
> looking at the similar example with \`h ello.jar\` gives me even more equivalent representations of the same file. this time looking at the \`Dir\`
> 
> \`\`\`
> d1 = Dir\['h ello.jar!/\*'\]
> d2 = Dir\['h%20ello.jar!/\*'\]
> d3 = Dir\['file:h ello.jar!/\*'\]
> d4 = Dir\['file:h%20ello.jar!/\*'\]
> d5 = Dir\['jar:file:h ello.jar!/\*'\]
> d6 = Dir\['jar:file:h%20ello.jar!/\*'\]
> \`\`\`
> 
> also here the directory listings should be all the same: \`d1 == d2\`, \`d2 == d3\`, etc
> 
> probably d2 should raise the same error as \`File.new( 'h%20llo.rb' )\` does with File or directory does not exists.
> 
> this will help to improve the situation described here: https://github.com/jruby/jruby/issues/2017#issuecomment-57945764
> and get the probably the patch https://github.com/jruby/jruby/commit/dd527921efe7a0ddd7e3c60b70a5f0f36d1c20df reverted.
> 
> @ratnikov I would appreciate any fix against the github/test-load-from-jruby-classloader branch

thanx, christian

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [October 7, 2014, 10:21pm UTC](https://www.ruby-forum.com/t/unable-to-use-irb-with-1-7-15/231961/10 "2014-10-07T22:21:16Z")

</div>

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-

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [October 8, 2014, 4:15pm UTC](https://www.ruby-forum.com/t/unable-to-use-irb-with-1-7-15/231961/11 "2014-10-08T16:15:29Z")

</div>

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