[jruby-dev] [jira] Created: (JRUBY-1366) Names when compiling scripts are mangld in some cases

2007-09-17 Thread Ola Bini (JIRA)
Names when compiling scripts are mangld in some cases - Key: JRUBY-1366 URL: http://jira.codehaus.org/browse/JRUBY-1366 Project: JRuby Issue Type: Bug Components: Compiler

[jruby-dev] Problems with pure Ruby MySQL driver

2007-09-17 Thread Ola Bini
So, It seem that in some cases you can get this really funny error on JRuby when the pure Ruby MySQL driver says "Connection refused". Now, this can sometimes be resolved if you replace "host: localhost" with "host: 127.0.0.1" in your database configuration. Why is this? Well, if you look in

[jruby-dev] Localhost and pure Ruby driver again

2007-09-17 Thread Ola Bini
Disregard my last message. I was far out there. Now I've actually fixed it for real. =) And you don't need to replace localhost with 127.0.0.1 anymore. Cheers -- Ola Bini (http://ola-bini.blogspot.com) JRuby Core Developer Developer, ThoughtWorks Studios (http://studios.thoughtworks.com) "Y

[jruby-dev] [jira] Created: (JRUBY-1367) rev 4315 changes to _jrubyvars.bat breaks jruby

2007-09-17 Thread Alex Durgin (JIRA)
rev 4315 changes to _jrubyvars.bat breaks jruby --- Key: JRUBY-1367 URL: http://jira.codehaus.org/browse/JRUBY-1367 Project: JRuby Issue Type: Bug Environment: windows xp sp2, java 1.6.0_0

[jruby-dev] Sample code for Java 3D

2007-09-17 Thread Suresh Shukla
I tried using JRuby with Java 3D I thought it will be nice to keep it in JRuby installer under samples folder. It works fine and displays a 3D cube. === code = require 'java' include_class "com.sun.j3d.utils.universe.SimpleUniverse" include_class "com.sun.j3d.utils.geomet

Re: [jruby-dev] Sample code for Java 3D

2007-09-17 Thread Thomas E Enebo
I just updated your script a little to show the 1.0 preferred syntax for doing some things. What you have works fine, but I just want to show the newer syntax: # include Java preferred over require 'java' include Java class Hello3d # You can import that class into the namespace import javax.

[jruby-dev] [jira] Created: (JRUBY-1368) Attempting File.open('foo', 'w') when './foo' is a directory raises Errno:ERNOENT, but should raise Errno:EISDIR

2007-09-17 Thread Alexey Verkhovsky (JIRA)
Attempting File.open('foo', 'w') when './foo' is a directory raises Errno:ERNOENT, but should raise Errno:EISDIR Key: JRUBY-1368 URL: http://jira.code

Re: [jruby-dev] Sample code for Java 3D

2007-09-17 Thread Suresh Shukla
Thanks Thomas! This newer script without comments could be be used as sample. On 9/17/07, Thomas E Enebo <[EMAIL PROTECTED]> wrote: > > I just updated your script a little to show the 1.0 preferred syntax > for doing some things. What you have works fine, but I just want to > show the newer synt

[jruby-dev] Using Java Classes in JRuby

2007-09-17 Thread Eric Armstrong
I recently had occasion to write a JRuby script that used Java APIs in the XDocs CMS. I found most of the information I needed scattered around the web. I decided to collect the relevant stuff in one place, leaving out the stuff that seemed extraneous, and adding the additional little bits that tu

Re: [jruby-dev] Using Java Classes in JRuby

2007-09-17 Thread Charles Oliver Nutter
Eric Armstrong wrote: I recently had occasion to write a JRuby script that used Java APIs in the XDocs CMS. I found most of the information I needed scattered around the web. I decided to collect the relevant stuff in one place, leaving out the stuff that seemed extraneous, and adding the additio

[jruby-dev] Re: [jruby-scm] [jruby] [4343] trunk/jruby/src/org/jruby/ext/socket/RubyTCPSocket.java: This last change hangs build on at least macos

2007-09-17 Thread Ola Bini
[EMAIL PROTECTED] wrote: Revision 4343 Author enebo Date 2007-09-17 18:28:11 -0500 (Mon, 17 Sep 2007) Log Message -socket = new Socket(InetAddress.getByName(remoteHost), remotePort); +so