We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e32c79a commit a1af39dCopy full SHA for a1af39d
spec/truffle/interop/add_to_classpath_spec.rb
@@ -12,7 +12,9 @@
12
describe "Java.add_to_classpath" do
13
before :all do
14
jar_dir = File.expand_path(File.dirname(__FILE__)) + '/fixtures/examplejar'
15
- bin_dir = TruffleRuby.graalvm_home + '/bin'
+ jvm_home = TruffleRuby.graalvm_home || "#{Truffle::Boot.ruby_home}/jvm"
16
+ raise "#{jvm_home} does not exist" unless Dir.exist?(jvm_home)
17
+ bin_dir = "#{jvm_home}/bin"
18
Dir.chdir(jar_dir) do
19
system("#{bin_dir}/javac org/truffleruby/examplejar/Example.java")
20
system("#{bin_dir}/jar cf example.jar org/truffleruby/examplejar/Example.class")
0 commit comments