Giter Club home page Giter Club logo

Comments (8)

edubkendo avatar edubkendo commented on July 24, 2024

Do you have ant installed and on your Path?

On Sun, Feb 10, 2013 at 2:48 AM, jjgh [email protected] wrote:

jruby 1.7.2 (1.9.3p327) 2013-01-04 302c706
on Java HotSpot(TM) Client VM 1.7.0_13-b20 [Windows XP-x86]

(I think..) I've updated to the latest jrubyfx gem version using jruby -S
gem install jrubyfx
Now the jrubyfx-jarify command doesn't seem to work anymore:

C:\example>jrubyfx-jarify app\ --main app\main.rb myapp.jar

IOError: Cannot run program "ant.bat" (in directory "C:\example"):
CreateProcess error=2, Can't find specified file
popen at org/jruby/RubyIO.java:3964
load_from_ant at c:/jruby-1.7.2/lib/ruby/shared/ant.rb:5
load at c:/jruby-1.7.2/lib/ruby/shared/ant.rb:38
Ant at c:/jruby-1.7.2/lib/ruby/shared/ant.rb:61
(root) at c:/jruby-1.7.2/lib/ruby/shared/ant.rb:3
require at org/jruby/RubyKernel.java:1027
require at c:/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:36
(root) at
c:/jruby-1.7.2/lib/ruby/gems/shared/gems/jrubyfx-0.9.2-java/lib/jrubyfx_tasks.rb:1
require at org/jruby/RubyKernel.java:1027
(root) at
c:/jruby-1.7.2/lib/ruby/gems/shared/gems/jrubyfx-0.9.2-java/lib/jrubyfx_tasks.rb:22
(root) at c:/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:1
load at org/jruby/RubyKernel.java:1046
(root) at c:\jruby-1.7.2\bin\jrubyfx-jarify:23


Reply to this email directly or view it on GitHubhttps://github.com//issues/29..

from jrubyfx.

illtellyoulater avatar illtellyoulater commented on July 24, 2024

no.. but just before I updated jrubyfx it was not required ?

from jrubyfx.

byteit101 avatar byteit101 commented on July 24, 2024

Ah, its becuse require ant is on line 22 of jrubyfx_tasks.rb . If I move it to 111 then it does not require it unless you use native bunndle

from jrubyfx.

illtellyoulater avatar illtellyoulater commented on July 24, 2024

so do I need to install ANT ?

from jrubyfx.

BanzaiMan avatar BanzaiMan commented on July 24, 2024

Yes. Please try it. The documentation should be updated.

from jrubyfx.

byteit101 avatar byteit101 commented on July 24, 2024

I just pushed a commit to only require ant if you are using Java 8 native packaging tools (which you are not)

from jrubyfx.

illtellyoulater avatar illtellyoulater commented on July 24, 2024

Ok I just edited "jrubyfx_tasks.rb" in jrubyfx 0.9.2 gem copying from your commit and now it's all working.
I still get a couple of warnings though..:

C:\example>java -jar myapp.jar
file:/C:/example/myapp.jar!/jrubyfx/dsl.rb:129 warning: already initialized constant NAME_TO_CLASSES
file:/C:/example/myapp.jar!/jrubyfx/dsl.rb:151 warning: already initialized constant ENUM_OVERRIDES

Anyway do you think that you'll be pushing all the changes into a new version of the gem anytime soon? Just asking :)

from jrubyfx.

byteit101 avatar byteit101 commented on July 24, 2024

I will, once we finish the WIP changes from #28 . I have been busy studying for finals this week, but a new version should be out by next week.

Interesting... i'll look at that again. dsl.rb is very picky about the way its included...

from jrubyfx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.