Native launcher does not appear to include . in classpath by default
--------------------------------------------------------------------

                 Key: JRUBY-4709
                 URL: http://jira.codehaus.org/browse/JRUBY-4709
             Project: JRuby
          Issue Type: Bug
          Components: Launcher
    Affects Versions: JRuby 1.4
            Reporter: Charles Oliver Nutter
            Assignee: Charles Oliver Nutter
             Fix For: JRuby 1.5


Not sure how major this is, but it's bitten me a few times:

{noformat}
~/projects/jruby ➔ ls IntegerThing.class 
IntegerThing.class

~/projects/jruby ➔ java IntegerThing
Exception in thread "main" java.lang.NoSuchMethodError: main

~/projects/jruby ➔ ../jruby-1.4.0/bin/jruby -rjava -e "p 
Java::IntegerThing.new.class"
Java::Default::IntegerThing

~/projects/jruby ➔ jruby -rjava -e "p Java::IntegerThing.new.class"
Module
{noformat}

Notice Java and JRuby 1.4 find the class in the current dir, but JRuby 1.5 does 
not. You have to explicitly pass -J-cp with "." to get it to see classes rooted 
in the current dir.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to