Giter Club home page Giter Club logo

Comments (8)

edubkendo avatar edubkendo commented on July 24, 2024

Ok, if I unzip the jar, add in the fxml file by hand, re-zip it and rename it to .jar, it works just right so that does indeed appear to be the problem.

from jrubyfx.

byteit101 avatar byteit101 commented on July 24, 2024

I'm going to rewrite jarification soon but this is a user error (though I don't blame you. Jaring needs better documentation)

You need to set src also, which is a pattern to match all files in your project. Main_script marks which file to load first in the jar and in the rare circumstance that it is NOT in the jar it copies it in also.

You can also manually rename your main file to jar-bootstrap.rb and only use src

from jrubyfx.

edubkendo avatar edubkendo commented on July 24, 2024

ok cool. Got it to work. Thanks for the explanation. One question. If I use:

jruby -S rake jar src="/home/eric/projects/jrubyfx_projects/Hello/src/Hello.fxml" main_script=~/projects/jrubyfx_projects/Hello/src/hello2.rb

Pointing directly to the file it works, if instead, I have src point at the containing directory, like:

jruby -S rake jar src="/home/eric/projects/jrubyfx_projects/Hello/src/" main_script=~/projects/jrubyfx_projects/Hello/src/hello2.rb

Then I get:

rake aborted!
No such file or directory - /home/eric/projects/jrubyfx_projects/Hello/src/

I'm assuming this is because you can't list directories and must list each file by hand? Or am I doing something else wrong? For the record, I also tried it without the quotes, but this received the same error.

from jrubyfx.

edubkendo avatar edubkendo commented on July 24, 2024

One last question, if you do need to list the file paths out by hand, how should you seperate those? with : 's like when constructing PATH variables?

from jrubyfx.

byteit101 avatar byteit101 commented on July 24, 2024

Src is a PATTERN

jruby -S rake jar src="/home/eric/projects/jrubyfx_projects/Hello/src/*" main_script=~/projects/jrubyfx_projects/Hello/src/hello2.rb

from jrubyfx.

edubkendo avatar edubkendo commented on July 24, 2024

ah! you totally said that. sorry. I'll put in a pull-request with an update to the README making this stuff clear.

from jrubyfx.

byteit101 avatar byteit101 commented on July 24, 2024

Don't. I'm updating jarification so it will change

from jrubyfx.

edubkendo avatar edubkendo commented on July 24, 2024

Ok, fair enough.

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.