Java version used by Jpl (Prolog to Java)

Sergio Castro <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
I have just realized that the Java version used by JPL (Prolog side) is not the one configured by default.

My installed Java version is 7, as verified with:

$ java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

Also, the JAVA_HOME environment var is properly set.

However, if I execute this query in swi:

?- jpl_call( class([java,lang],['System']), 'getProperty', ['java.version'], V).
V = '1.6.0_65'.


I see that it is using Java 6 instead of 7. How could I fix it so it will use the default java installation ?

Thanks !

Sergio
-------------- next part --------------
HTML attachment scrubbed and removed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.