Comments (8)
I am not on Windows at the moment, but I am wondering what happens when you type:
jruby -e "require 'java'; puts ENV_JAVA['sun.boot.library.path']"
I think that code in jfx_imports may not be doing something it needs to for the path specified by that Java ENV.
from jrubyfx.
If you could post what enebo suggested, that would be awesome. the code in jfx_imports massages that variable and it might be located in a slightly different location and hence would require a slightly different regexp. On linux it has to strip out the architecture, and if you could post what it is on windows that would be awesome.
from jrubyfx.
Ok, First time I ran it, got this:
C:\Users\edub>jruby -e "require 'java'; puts ENV_JAVA['sun.boot.library.path']"
Cannot locate Java installation, specified by JAVA_HOME:
I mentioned, I'd installed and uninstalled jruby and various jdk's a number of times trying to get this working and jruby kept auto-setting the JAVA_HOME variable for me to "C:\Program Files\Java\jre7" So correcting JAVA_HOME to "C:\Program Files\Java\jdk1.7.0_11" I get:
C:\Users\edub>jruby -e "require 'java'; puts ENV_JAVA['sun.boot.library.path']"
C:\Program Files\Java\jdk1.7.0_11\jre\bin
Weirdly (or not) unless I set that JFX_DIR var, it doesn't matter what JAVA_HOME is, I get that same error when running jrubyfx apps.
from jrubyfx.
hmm, what do you set JFX_DIR to? and does \jre\bin contain jfxrt.jar? or does \jre ? (basically where is jfxrt.jar)
from jrubyfx.
jfxrt.jar is in C:\Program Files\Java\jdk1.7.0_11\jre\lib, which is what I set JFX_DIR to, \jre\bin is a bunch of dll files.
from jrubyfx.
hmm, interesting. I'm going to push a fix in a few minutes to give proper warnings and search for the new windows path
from jrubyfx.
fix in #14.
from jrubyfx.
Looks like your fix works perfectly on my end, so I'm gonna close this .
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.