Giter Club home page Giter Club logo

Comments (8)

enebo avatar enebo commented on August 28, 2024

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.

byteit101 avatar byteit101 commented on August 28, 2024

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.

edubkendo avatar edubkendo commented on August 28, 2024

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.

byteit101 avatar byteit101 commented on August 28, 2024

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.

edubkendo avatar edubkendo commented on August 28, 2024

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.

byteit101 avatar byteit101 commented on August 28, 2024

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.

byteit101 avatar byteit101 commented on August 28, 2024

fix in #14.

from jrubyfx.

edubkendo avatar edubkendo commented on August 28, 2024

Looks like your fix works perfectly on my end, so I'm gonna close this .

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.