Skip to content

Commit 220fe62

Browse files
committed
[GR-2798] Use $JAVA_HOME/bin/javac when compiling java sources from R tests.
PullRequest: fastr/1803
2 parents bbb3706 + 90b52da commit 220fe62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/library/fastr/R/interop-array-conversion-test.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ createJavaClass <- function(className, javaSource) {
143143
dir.create(tmpDir)
144144
}
145145
writeLines(javaSource, javaFileName)
146-
system(paste0("javac ", javaFileName))
146+
system(paste0("$JAVA_HOME/bin/javac ", javaFileName))
147147
java.addToClasspath(tmpDir)
148148
}
149149

0 commit comments

Comments
 (0)