diff scripts/java/javarmpath.m @ 28168:b3bd3385d07a stable

* javaaddpath.m, javarmpath.m: Skip BISTs if Java is unavailable on run-time.
author Markus Mützel <markus.muetzel@gmx.de>
date Sun, 22 Mar 2020 17:57:50 +0100
parents 367ab44d18c8
children dc80e087df4b
line wrap: on
line diff
--- a/scripts/java/javarmpath.m	Wed Mar 18 17:24:04 2020 -0400
+++ b/scripts/java/javarmpath.m	Sun Mar 22 17:57:50 2020 +0100
@@ -78,7 +78,7 @@
 ##        been added to the Java class path.
 
 ## Basic test with single string
-%!testif HAVE_JAVA
+%!testif HAVE_JAVA; usejava ("jvm")
 %! pth = tempdir ();
 %! unwind_protect
 %!   javaaddpath (pth);
@@ -92,7 +92,7 @@
 %! end_unwind_protect
 
 ## Remove two strings
-%!testif HAVE_JAVA
+%!testif HAVE_JAVA; usejava ("jvm")
 %! pth1 = tempdir ();
 %! pth2 = tilde_expand ("~");
 %! unwind_protect
@@ -107,7 +107,7 @@
 %! end_unwind_protect
 
 ## Remove cell array of two strings
-%!testif HAVE_JAVA
+%!testif HAVE_JAVA; usejava ("jvm")
 %! pth1 = tempdir ();
 %! pth2 = tilde_expand ("~");
 %! unwind_protect