Skip to content

Commit 103ee41

Browse files
committed
do not cache as java can turn on at any time
1 parent b2baf7b commit 103ee41

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

+stdlib/has_java.m

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
%% HAS_JAVA detect if JVM is available
22
% requires: java
33

4-
function ok = has_java()
4+
function y = has_java()
55

6-
persistent h;
7-
8-
if isempty(h)
9-
h = usejava('jvm');
10-
end
11-
12-
ok = h;
6+
y = usejava('jvm');
137

148
end
159

0 commit comments

Comments
 (0)