I think I am getting the following error in
org.jruby.javasupport.JavaSupport Class.Please let mw know which
jar/location I need to set(in -cp) for the class "JavaLang".
    [java] org.jruby.exceptions.RaiseException: cannot load Java class
JavaLang
    [java] unable to load language: ruby:
org.jruby.exceptions.RaiseException: cannot load Java class JavaLang

public Class loadJavaClass(String className)
    {
        Class result;
        try
        {
            result = primitiveClass(className);
            if(result == null)
                return Class.forName(className, true, javaClassLoader);
        }
        catch(ClassNotFoundException cnfExcptn)
        {
            throw runtime.newNameError("cannot load Java class " +
className);
        }
        return result;
    }

-----Original Message-----
From: Hendy Irawan (JIRA) [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2008 6:05 PM
To: [email protected]
Subject: [jruby-dev] [jira] Created: (JRUBY-2900) Add -vm command line
argument to pass classpath, etc.

Add -vm command line argument to pass classpath, etc.
-----------------------------------------------------

                 Key: JRUBY-2900
                 URL: http://jira.codehaus.org/browse/JRUBY-2900
             Project: JRuby
          Issue Type: Improvement
          Components: Interpreter
    Affects Versions: JRuby 1.1.3
         Environment: generic
            Reporter: Hendy Irawan


I recently stumbled on a need for this.

Which has been discussed here two years ago, I don't see it implemented
yet (or has it?)

http://archive.hausfoundation.org/lists/[EMAIL PROTECTED]/msg/fe35
[EMAIL PROTECTED]

JRuby seems to only obey CLASSPATH, a dedicated command line argument to
pass arbitrary JVM arguments (including -classpath) would be great. 

In addition, since classpath is very often used, it's probably useful to
also add that (-cp) as a dedicated command line argument to JRuby
itself.

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



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

    http://xircles.codehaus.org/manage_email


Reply via email to