Comments (13)
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.
@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.
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.
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.
Thanks!
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.
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.
ok, though lets wait until I fix #23 (intialize stuff), I have a nice snow day to work on it :-)
from jrubyfx.
Oh you are on east coast :) Hopefully it is not the whole 2 feet. Just let me know when you are ready.
from jrubyfx.
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.
no, it sounds like he manually adjusted the dsl.rb file in his gem directory
from jrubyfx.
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.
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.
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)
- jrubyfx sensitive to number of spaces in fxml HOT 2
- Enhancement: Provide Ruby binding impls HOT 1
- Setting TableView items doesn't seem to work HOT 4
- Jar classpath issue on windows HOT 1
- jarify with fxml: no .jrubyfx_cache in the jarfile HOT 1
- jarify with fxml: cannot access the fxml files
- jarify with fxml: require_relative doesn't work from inside a jarfile
- jrubfx-jarify compiled jar does not laucnch HOT 5
- cannot run the hello world app HOT 2
- gem install jrubyfx gem not found HOT 1
- Permission denied for 'jrubyfx_cache' HOT 2
- Need more documentation for controller functions HOT 1
- jrubyfx não encaminhando HOT 2
- Is this project active ? HOT 3
- Path to jfxrt.jar loading issue with 1.8.0_202-ea-b03 HOT 1
- Would it be possible to add a screenshot-example to the main README here? HOT 1
- Use javafx 17 modules HOT 3
- Warning: SCENE3D? HOT 1
- More examples perhaps? TextArea specifically
- Classic OOP style? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jrubyfx.