Giter Club home page Giter Club logo

Comments (13)

edubkendo avatar edubkendo commented on July 24, 2024

This is due to this bug which was fixed in master here , it hasn't made it into the gem yet as far as I can tell. So if you installed via gem install jrubyfx or just have an older fork of the repo installed, you'll want to install the latest master which should fix the issue.

from jrubyfx.

byteit101 avatar byteit101 commented on July 24, 2024

@edubdendo, I don't think that is related, thats something completely seperate

@jjgh, can you open up the jar in any zip manager and see if the folder /jrubyfx/ exists with several files and folders in it?

Also try with forward slashes instead of backslashes (app/script.rb)

from jrubyfx.

edubkendo avatar edubkendo commented on July 24, 2024

Same error, unless I am seriously misreading . Trying to call dir. foreach
inside a jar and not finding the coreext directory. (Excuse poor typing,
sent from mobile) .
On Feb 7, 2013 10:23 AM, "byteit101" [email protected] wrote:

@edubdendo, I don't think that is related, thats something completely
seperate

@jjgh https://github.com/jjgh, can you open up the jar in any zip
manager and see if the folder /jrubyfx/ exists with several files and
folders in it?

Also try with forward slashes instead of backslashes (app/script.rb)


Reply to this email directly or view it on GitHubhttps://github.com//issues/25#issuecomment-13243683.

from jrubyfx.

byteit101 avatar byteit101 commented on July 24, 2024

oh, i see, I only looked at the title of the bug, I didn't realize you were referring to a specific comment in a bug... ah yes, master will fix it

from jrubyfx.

illtellyoulater avatar illtellyoulater commented on July 24, 2024

Thanks! 👍 I corrected the bug in dsl.rb manually and it worked...
now the app runs fine when I do:
C:\example>java -jar myapp.jar

So I will be able to get an out-of-the-box jrufyfx working gem, if in some time I do "gem install jrubyfx" to install the new version, right?

p.s.
When i run the app there's a couple of warnings which I am sure are of no importance and that you are aware of, but just to report all things togheter.. here you have them:
file:/C:/example/myapp.jar!/jrubyfx/dsl.rb:98 warning: already initialized constant NAME_TO_CLASSES
file:/C:/example/myapp.jar!/jrubyfx/dsl.rb:120 warning: already initialized constant ENUM_OVERRIDES
Thanks again

from jrubyfx.

enebo avatar enebo commented on July 24, 2024

Perhaps we should just push another release? We have a bunch of things fixed since last release...This project is less at the roadmap stage and more at the let's just push it occasionally stage.

from jrubyfx.

byteit101 avatar byteit101 commented on July 24, 2024

ok, though lets wait until I fix #23 (intialize stuff), I have a nice snow day to work on it :-)

from jrubyfx.

enebo avatar enebo commented on July 24, 2024

Oh you are on east coast :) Hopefully it is not the whole 2 feet. Just let me know when you are ready.

from jrubyfx.

byteit101 avatar byteit101 commented on July 24, 2024

When i run the app there's a couple of warnings which I am sure are of no importance and that you are aware of, but just to report all things togheter.. here you have them:
file:/C:/example/myapp.jar!/jrubyfx/dsl.rb:98 warning: already initialized constant NAME_TO_CLASSES
file:/C:/example/myapp.jar!/jrubyfx/dsl.rb:120 warning: already initialized constant ENUM_OVERRIDES

are you on master? this should not happen.

from jrubyfx.

edubkendo avatar edubkendo commented on July 24, 2024

no, it sounds like he manually adjusted the dsl.rb file in his gem directory

from jrubyfx.

enebo avatar enebo commented on July 24, 2024

fwiw, the new specs show this same warning (just do 'jruby -S rspect').

[OOB message: JRubyFX 0.9.2 was pushed and tweeted about]

from jrubyfx.

enebo avatar enebo commented on July 24, 2024

This problem is that the relative_require and the require for jrubyfx/dsl are considering these different files. It is remotely possible this is a JRuby issue but it is just as likely this is screwy 1.9 require semantics. Not the the best way of solving this.

from jrubyfx.

byteit101 avatar byteit101 commented on July 24, 2024

Also requiring jrubyfx/dsl direcly will do that, it does not require other stuff. if you change the line to require jrubyfx, it does all the proper requires first, loads the dsl properly (look at jrubyfx.rb, you'll see what I mean), and continues on
Edit: I pushed this change

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.