Can't find Nailgun classes on Windows
-------------------------------------

                 Key: JRUBY-4070
                 URL: http://jira.codehaus.org/browse/JRUBY-4070
             Project: JRuby
          Issue Type: Bug
          Components: Windows
    Affects Versions: JRuby 1.4
         Environment: JVM 1.5 on WinXP
            Reporter: Ian Dees
            Priority: Minor
             Fix For: JRuby 1.4


When I try to launch JRuby with the Nailgun server on Windows, I get the 
following error:

{noformat}
C:\> jruby --ng-server
Exception in thread "main" java.lang.NoClassDefFoundError: 
com/martiansoftware/nailgun/NGServer
Caused by: java.lang.ClassNotFoundException: 
com.martiansoftware.nailgun.NGServer
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: com.martiansoftware.nailgun.NGServer.  Program 
will exit.
{noformat}

When I add {{jruby.jar}} to my {{CLASSPATH}} and try again, both the Nailgun 
client and server seem to work normally.  It could be that the classpath isn't 
getting set up the way Nailgun needs it to in the batch files.  The problem 
seems to be limited to the {{--ng-server}} case, because regular JRuby can find 
the Nailgun classes just fine:

{noformat}
C:\> jirb
irb(main):001:0> java_import com.martiansoftware.nailgun.builtins.NGVersion
=> Java::ComMartiansoftwareNailgunBuiltins::NGVersion
irb(main):002:0> version = NGVersion.new
=> #<Java::ComMartiansoftwareNailgunBuiltins::NGVersion:0x160c4b0>
{noformat}

I'll do some poking around in the batch files and see if I can get it working 
again.


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