-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails on Mac OS X #5
Comments
This looks like an issue with jruby.jar not being found on the classpath. The easy way to fix it is to use my fork which uses rake instead of ant, and thus already has jruby on the classpath. You can also muck around with line 7 of the ant file to manually set it to your jruby.jar |
PR #6 fixes this issue since it is impossible to not pull in jruby.jar when using the new Rake system. |
I was able to get it to work after adding this to my export JFX_DIR="/Library/Java/JavaVirtualMachines/jdk1.7.0_13.jdk/Contents/Home/jre/lib" |
hmm, what does |
@byteit101 "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries" |
Ah, you seem to be launching jruby with java6, not java 7. Make sure you java home is 7 |
The build is failing for me on Mac OS X 10.8.2 (Mountain Lion). I'm not sure why. I use RVM with jruby and Java with JavaFX bundled in.
Here's some of my env variables:
MY_RUBY_HOME=/Users/stemblej/.rvm/rubies/jruby-head
JRUBY_HOME=/Users/stemblej/.rvm/rubies/jruby-head
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_06.jdk/Contents/Home
rvm_ruby_string=jruby-head
RUBY_VERSION=jruby-head
jruby version:
jruby 1.7.0.preview2 (1.9.3p203) 2012-08-16 86231f6 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_06-b24 [darwin-x86_64]
Here's the error:
Buildfile: /Users/stemblej/Downloads/jrubyfx-master/build.xml
detect.javafx:
setup.bundled.path:
[echo] Running Java 7 with JavaFx bundled...adding jar
setup.integrated.path:
setup.external.path:
setup.path:
init:
build:
[javac] Compiling 1 source file to /Users/stemblej/Downloads/jrubyfx-master/target/classes
[javac] /Users/stemblej/Downloads/jrubyfx-master/src/org/jruby/ext/jrubyfx/JRubyFX.java:5: error: package org.jruby.javasupport does not exist
[javac] import org.jruby.javasupport.Java;
[javac] ^
[javac] /Users/stemblej/Downloads/jrubyfx-master/src/org/jruby/ext/jrubyfx/JRubyFX.java:6: error: package org.jruby.javasupport does not exist
[javac] import org.jruby.javasupport.JavaObject;
[javac] ^
[javac] /Users/stemblej/Downloads/jrubyfx-master/src/org/jruby/ext/jrubyfx/JRubyFX.java:7: error: package org.jruby.runtime does not exist
[javac] import org.jruby.runtime.ThreadContext;
[javac] ^
[javac] /Users/stemblej/Downloads/jrubyfx-master/src/org/jruby/ext/jrubyfx/JRubyFX.java:8: error: package org.jruby.runtime.builtin does not exist
[javac] import org.jruby.runtime.builtin.IRubyObject;
[javac] ^
[javac] /Users/stemblej/Downloads/jrubyfx-master/src/org/jruby/ext/jrubyfx/JRubyFX.java:11: error: cannot find symbol
[javac] public static IRubyObject handler;
[javac] ^
[javac] symbol: class IRubyObject
[javac] location: class JRubyFX
[javac] /Users/stemblej/Downloads/jrubyfx-master/src/org/jruby/ext/jrubyfx/JRubyFX.java:13: error: cannot find symbol
[javac] public static void start(IRubyObject obj) {
[javac] ^
[javac] symbol: class IRubyObject
[javac] location: class JRubyFX
[javac] /Users/stemblej/Downloads/jrubyfx-master/src/org/jruby/ext/jrubyfx/JRubyFX.java:39: error: cannot find symbol
[javac] private ThreadContext ctx() {
[javac] ^
[javac] symbol: class ThreadContext
[javac] location: class JRubyFX
[javac] /Users/stemblej/Downloads/jrubyfx-master/src/org/jruby/ext/jrubyfx/JRubyFX.java:13: error: start(IRubyObject) in JRubyFX cannot override start(Stage) in Application
[javac] public static void start(IRubyObject obj) {
[javac] ^
[javac] overriding method is static
[javac] /Users/stemblej/Downloads/jrubyfx-master/src/org/jruby/ext/jrubyfx/JRubyFX.java:28: error: cannot find symbol
[javac] IRubyObject[] args = new IRubyObject[] {
[javac] ^
[javac] symbol: class IRubyObject
[javac] location: class JRubyFX
[javac] /Users/stemblej/Downloads/jrubyfx-master/src/org/jruby/ext/jrubyfx/JRubyFX.java:28: error: cannot find symbol
[javac] IRubyObject[] args = new IRubyObject[] {
[javac] ^
[javac] symbol: class IRubyObject
[javac] location: class JRubyFX
[javac] /Users/stemblej/Downloads/jrubyfx-master/src/org/jruby/ext/jrubyfx/JRubyFX.java:29: error: cannot find symbol
[javac] Java.wrap(ctx().runtime, JavaObject.wrap(ctx().runtime, primaryStage))
[javac] ^
[javac] symbol: variable JavaObject
[javac] location: class JRubyFX
[javac] /Users/stemblej/Downloads/jrubyfx-master/src/org/jruby/ext/jrubyfx/JRubyFX.java:29: error: cannot find symbol
[javac] Java.wrap(ctx().runtime, JavaObject.wrap(ctx().runtime, primaryStage))
[javac] ^
[javac] symbol: variable Java
[javac] location: class JRubyFX
[javac] 12 errors
BUILD FAILED
/Users/stemblej/Downloads/jrubyfx-master/build.xml:68: Compile failed; see the compiler error output for details.
Total time: 0 seconds
The text was updated successfully, but these errors were encountered: