<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>My platform is Windows 7 (64 bit) and I have the current version of Java (1.8.0_31).<br>I have set the JAVA_HOME environment variable but Scilab doesn't seem to detect it. It is still showing 1.6.0_41.<br><br><div>> From: clement.david@scilab-enterprises.com<br>> To: users@lists.scilab.org<br>> Date: Wed, 28 Jan 2015 13:47:09 +0100<br>> Subject: Re: [Scilab-users] Changing Java JDK/JRE version used by Scilab<br>> <br>> Hello,<br>> <br>> Le mercredi 28 janvier 2015 角 15:12 +0800, Joo Cat a 谷crit :<br>> > I have a Java class which was compiled using JDK 1.8. When I try to<br>> > import this class into Scilab, it gave me an error which says:<br>> > Unsupported major.minor version 52.0.<br>> > I suspected that this could be due to Scilab using an older JRE. So I<br>> > checked using system_getproperty('java.version') and it shows<br>> > 1.6.0_41. Is there a way to change the JRE version used by Scilab?<br>> <br>> Depending on your platform, there is a standard way to change it however<br>> Scilab is distributed using an old JVM to avoid regressions, avoid doing<br>> that. Basically, setting the JAVA_HOME environment variable change the<br>> selected JVM.<br>> <br>> > Similarly, is there a way to change the JDK used as well? If I try to<br>> > compile a source file that have features from newer JDK using<br>> > jcompile, it will give an error. Thanks!<br>> <br>> Again depending on your platform and JVM, jcompile can use a more recent<br>> compiler ; ecj is provided as a fallback compiler.<br>> <br>> --<br>> Cl谷ment<br>> <br>> _______________________________________________<br>> users mailing list<br>> users@lists.scilab.org<br>> http://lists.scilab.org/mailman/listinfo/users<br></div> </div></body>
</html>