I am trying to make use of this file with the jruby-jars 1.6.8
but I would get syntax error around line 45 of the above file
The following is the error that I would get. What is the correct syntax
for jruby 1.6.8? I know that this file works in jruby 1.7.0 (jruby-jars
1.7.0 http://rubygems.org/gems/jruby-jars)
application initialization failed:
/opt/apache-tomcat/webapps/tagsuggest/WEB-INF/gems/gems/open_nlp-0.0.5-java/lib/open_nlp/parser/parse.rb:45:
syntax error, unexpected ‘:’
data = {type: kid.getType, parent_type: self.j_instance.getType,
token: kid.toString}
^
from org/jruby/RubyKernel.java:1062:in require' from file:/opt/apache-tomcat/webapps/tagsuggest/WEB-INF/lib/jruby-stdlib-1.6.8.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
require’
from
/opt/apache-tomcat/webapps/tagsuggest/WEB-INF/gems/gems/open_nlp-0.0.5-java/lib/open_nlp/parser/parse.rb:28:in
(root)' from org/jruby/RubyKernel.java:1062:in
require’
from
file:/opt/apache-tomcat/webapps/tagsuggest/WEB-INF/lib/jruby-stdlib-1.6.8.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:60:in
require' from file:/opt/apache-tomcat/webapps/tagsuggest/WEB-INF/lib/jruby-stdlib-1.6.8.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in
require’
from
/opt/apache-tomcat/webapps/tagsuggest/WEB-INF/gems/gems/open_nlp-0.0.5-java/lib/open_nlp.rb:4:in
load_settings_from_init_rb' from org/jruby/RubyKernel.java:1112:in
eval’
from
file:/opt/apache-tomcat/webapps/tagsuggest/WEB-INF/lib/jruby-rack-1.1.10.jar!/jruby/rack/booter.rb:127:in
load_settings_from_init_rb' from org/jruby/RubyArray.java:1620:in
each’
from
file:/opt/apache-tomcat/webapps/tagsuggest/WEB-INF/lib/jruby-rack-1.1.10.jar!/jruby/rack/booter.rb:115:in
load_settings_from_init_rb' from file:/opt/apache-tomcat/webapps/tagsuggest/WEB-INF/lib/jruby-rack-1.1.10.jar!/jruby/rack/booter.rb:30:in
boot!’
from
file:/opt/apache-tomcat/webapps/tagsuggest/WEB-INF/lib/jruby-rack-1.1.10.jar!/jruby/rack/boot/rack.rb:10:in
(root)' from org/jruby/RubyKernel.java:1087:in
load’
from
file:/opt/apache-tomcat/webapps/tagsuggest/WEB-INF/lib/jruby-rack-1.1.10.jar!/jruby/rack/boot/ra