Édipo Féderle
Édipo Féderle

Reputation: 4257

Jruby - Create jar, no such file to load

i am trying create a jar of my jruby project(actually there is only ruby code at the time), but, usgin rawr i create a jar with success, but when i run it:

Exception in thread "main" org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- ../lib/person at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1033) at Kernel.require(file:/Users/edipofederle/Projeto/socialAPI/package/jar/lib/java/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36) at (Anonymous).(root)(./bin/main.rb:2) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1033) at (Anonymous).(root)(./bin/main.rb:1)

My folder structure is basically a bin folder with main.rb file and a lib folder with person.rb file.

I am available for further clarification.

Someone can me help. thanks

Upvotes: 0

Views: 901

Answers (1)

Édipo Féderle
Édipo Féderle

Reputation: 4257

my mistake, i was puting ruby src file into wrong folder. works now.

Thanks

Upvotes: 1

Related Questions