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 a1af39d commit d02fc06Copy full SHA for d02fc06
spec/truffle/interop/add_to_classpath_spec.rb
@@ -12,9 +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
- 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"
+ java_home = Truffle::System.get_java_property('java.home')
+ raise "#{java_home} does not exist" unless Dir.exist?(java_home)
+ bin_dir = "#{java_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