Netbeans uses jruby.properties in the source tree instead of the one in the jar archive ---------------------------------------------------------------------------------------
Key: JRUBY-4419 URL: http://jira.codehaus.org/browse/JRUBY-4419 Project: JRuby Issue Type: Bug Components: Embedding Affects Versions: JRuby 1.5 Environment: NetBeans 6.7.1/6.8 Reporter: Yoko Harada NetBeans uses jruby.properties in the source tree when Java programs of Java projects, which use embedding API, get run. JRuby 1.5.0.dev's jruby.property is generated during ant build based on the template in source tree. The template has the same name. As a result, Java programs raise exception: {noformat} Exception in thread "main" java.lang.ExceptionInInitializerError at org.jruby.RubyGlobal.createGlobals(RubyGlobal.java:158) at org.jruby.Ruby.init(Ruby.java:1015) at org.jruby.Ruby.newInstance(Ruby.java:172) at org.jruby.embed.internal.LocalContext.getRuntime(LocalContext.java:97) at org.jruby.embed.internal.SingleThreadLocalContextProvider.getRuntime(SingleThreadLocalContextProvider.java:54) at org.jruby.embed.ScriptingContainer.getRuntime(ScriptingContainer.java:279) at org.jruby.embed.internal.EmbedRubyRuntimeAdapterImpl.runParser(EmbedRubyRuntimeAdapterImpl.java:160) at org.jruby.embed.internal.EmbedRubyRuntimeAdapterImpl.parse(EmbedRubyRuntimeAdapterImpl.java:91) at org.jruby.embed.ScriptingContainer.parse(ScriptingContainer.java:410) at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:470) at evergreen.HelloWorld.<init>(HelloWorld.java:17) at evergreen.HelloWorld.main(HelloWorld.java:21) Caused by: java.lang.NumberFormatException: For input string: "@version.ruby.patchlevel@" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:447) at java.lang.Integer.parseInt(Integer.java:497) at org.jruby.runtime.Constants.<clinit>(Constants.java:84) ... 12 more Java Result: 1 {noformat} This is a NetBeans specific problem, so the JRuby Embed programs work well using java command or on Eclipse. I'm seeking help at NetBeans community to solve this problem. -- 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