<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Using Java 7 in Matlab R2013a and earlier	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/using-java-7-in-matlab-r2013a-and-earlier/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/using-java-7-in-matlab-r2013a-and-earlier?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-java-7-in-matlab-r2013a-and-earlier</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Thu, 06 Aug 2015 18:29:56 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.3</generator>
	<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/using-java-7-in-matlab-r2013a-and-earlier#comment-354633</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 06 Aug 2015 18:29:56 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3887#comment-354633</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/using-java-7-in-matlab-r2013a-and-earlier#comment-354625&quot;&gt;flo&lt;/a&gt;.

@Flo - R2011b uses JVM 1.6 by default - you&#039;re trying to run it with a version that is 2 full generations newer, so I&#039;m not surprised that some things simply don&#039;t work. Try using 1.7, maybe you&#039;ll have better luck...]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/using-java-7-in-matlab-r2013a-and-earlier#comment-354625">flo</a>.</p>
<p>@Flo &#8211; R2011b uses JVM 1.6 by default &#8211; you&#8217;re trying to run it with a version that is 2 full generations newer, so I&#8217;m not surprised that some things simply don&#8217;t work. Try using 1.7, maybe you&#8217;ll have better luck&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: flo		</title>
		<link>https://undocumentedmatlab.com/articles/using-java-7-in-matlab-r2013a-and-earlier#comment-354625</link>

		<dc:creator><![CDATA[flo]]></dc:creator>
		<pubDate>Thu, 06 Aug 2015 17:05:16 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3887#comment-354625</guid>

					<description><![CDATA[I tried out Matlab 2011b and JVM 1.8
The GUI ist starting and plots are shown well.

If I set the figure visible off, an then set the figure visible on, there are just the axes elements, but no buttons or anything else.

Anybody with an idea to fix that?
Thanks!!]]></description>
			<content:encoded><![CDATA[<p>I tried out Matlab 2011b and JVM 1.8<br />
The GUI ist starting and plots are shown well.</p>
<p>If I set the figure visible off, an then set the figure visible on, there are just the axes elements, but no buttons or anything else.</p>
<p>Anybody with an idea to fix that?<br />
Thanks!!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Fred		</title>
		<link>https://undocumentedmatlab.com/articles/using-java-7-in-matlab-r2013a-and-earlier#comment-330487</link>

		<dc:creator><![CDATA[Fred]]></dc:creator>
		<pubDate>Sun, 31 Aug 2014 22:56:18 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3887#comment-330487</guid>

					<description><![CDATA[I came here since I wanted to run an old version MATLAB on Win8. I wasn&#039;t intending to test with the newer jre. But it could not find the default jre, and it turns out this is a msvcr71.dll problem. I just googled a copy of that dll and placed it in C:\Program Files (x86)\MATLAB\R2010a\bin\win32, and the problem is solved. 
Source: https://www.mathworks.com/matlabcentral/newsreader/view_thread/271589]]></description>
			<content:encoded><![CDATA[<p>I came here since I wanted to run an old version MATLAB on Win8. I wasn&#8217;t intending to test with the newer jre. But it could not find the default jre, and it turns out this is a msvcr71.dll problem. I just googled a copy of that dll and placed it in C:\Program Files (x86)\MATLAB\R2010a\bin\win32, and the problem is solved.<br />
Source: <a href="https://www.mathworks.com/matlabcentral/newsreader/view_thread/271589" rel="nofollow ugc">https://www.mathworks.com/matlabcentral/newsreader/view_thread/271589</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/using-java-7-in-matlab-r2013a-and-earlier#comment-327344</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 03 Jul 2014 19:58:34 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3887#comment-327344</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/using-java-7-in-matlab-r2013a-and-earlier#comment-327334&quot;&gt;Wayan Permana&lt;/a&gt;.

See http://undocumentedmatlab.com/blog/speeding-up-compiled-apps-startup]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/using-java-7-in-matlab-r2013a-and-earlier#comment-327334">Wayan Permana</a>.</p>
<p>See <a href="http://undocumentedmatlab.com/blog/speeding-up-compiled-apps-startup" rel="ugc">http://undocumentedmatlab.com/blog/speeding-up-compiled-apps-startup</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Wayan Permana		</title>
		<link>https://undocumentedmatlab.com/articles/using-java-7-in-matlab-r2013a-and-earlier#comment-327334</link>

		<dc:creator><![CDATA[Wayan Permana]]></dc:creator>
		<pubDate>Thu, 03 Jul 2014 14:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3887#comment-327334</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/using-java-7-in-matlab-r2013a-and-earlier#comment-327321&quot;&gt;Yair Altman&lt;/a&gt;.

Thank you yair this actually solve my problem. 
My bad, i was unaware deploytool use my default 1.7 jdk instead of jdk 1.6 that come from with MATLAB so i didnt recompile it that time. 
This step works for me, set new JAVA_HOME variable to jdk 1.6 and recompile everything with deploytool.
Sorry yair, i have one more question about matlab ja builder, my m script run about 2-4 second in matlab but in java it run up to 2 minutes, is it normal? may i ask your suggestion to make it run faster in java?
I have a presentation about it, i dont want they think my program is slow because of inefficient algorithm.
Oh the script is simple, just about function optimization and draw plot of function.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/using-java-7-in-matlab-r2013a-and-earlier#comment-327321">Yair Altman</a>.</p>
<p>Thank you yair this actually solve my problem.<br />
My bad, i was unaware deploytool use my default 1.7 jdk instead of jdk 1.6 that come from with MATLAB so i didnt recompile it that time.<br />
This step works for me, set new JAVA_HOME variable to jdk 1.6 and recompile everything with deploytool.<br />
Sorry yair, i have one more question about matlab ja builder, my m script run about 2-4 second in matlab but in java it run up to 2 minutes, is it normal? may i ask your suggestion to make it run faster in java?<br />
I have a presentation about it, i dont want they think my program is slow because of inefficient algorithm.<br />
Oh the script is simple, just about function optimization and draw plot of function.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/using-java-7-in-matlab-r2013a-and-earlier#comment-327321</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 03 Jul 2014 07:24:04 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3887#comment-327321</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/using-java-7-in-matlab-r2013a-and-earlier#comment-327307&quot;&gt;Wayan Permana&lt;/a&gt;.

@Wayan - it appears that some of your external Java classes (&lt;code&gt;SimultanBoxGraph&lt;/code&gt; and possibly others) were compiled with JDK 1.7 (=51.0), and this does not work with 1.6. If you can, try recompiling everything using 1.6. 

Alternatively, try retrofitting your Matlab with JDK 1.7, as explained &lt;a target=&quot;_blank&quot; href=&quot;http://undocumentedmatlab.com/blog/using-java-7-in-matlab-r2013a-and-earlier&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.

Alternatively, upgrade to Matlab R2013b (8.2) or newer, which uses 1.7 out-of-the-box.

Alternatively, try figuring out the problem with the disappearing figure in 1.8, using MathWorks support (then return here to let us know if you discover anything useful).]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/using-java-7-in-matlab-r2013a-and-earlier#comment-327307">Wayan Permana</a>.</p>
<p>@Wayan &#8211; it appears that some of your external Java classes (<code>SimultanBoxGraph</code> and possibly others) were compiled with JDK 1.7 (=51.0), and this does not work with 1.6. If you can, try recompiling everything using 1.6. </p>
<p>Alternatively, try retrofitting your Matlab with JDK 1.7, as explained <a target="_blank" href="http://undocumentedmatlab.com/blog/using-java-7-in-matlab-r2013a-and-earlier" rel="nofollow">here</a>.</p>
<p>Alternatively, upgrade to Matlab R2013b (8.2) or newer, which uses 1.7 out-of-the-box.</p>
<p>Alternatively, try figuring out the problem with the disappearing figure in 1.8, using MathWorks support (then return here to let us know if you discover anything useful).</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Wayan Permana		</title>
		<link>https://undocumentedmatlab.com/articles/using-java-7-in-matlab-r2013a-and-earlier#comment-327307</link>

		<dc:creator><![CDATA[Wayan Permana]]></dc:creator>
		<pubDate>Thu, 03 Jul 2014 01:15:31 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3887#comment-327307</guid>

					<description><![CDATA[Hi yair,
Thanks for your hard work, it&#039;s really help me a lot. 
I have a problem with matlab r2013a ja builder, jar created by deploytool is working as expected in jdk 1.8 but figure is shown and dissapear again (figure contain no plot). 
Then i change jdk to 1.6u17 (64 bit) to match matlab version but when i run the jar again but it give following error in netbeans :
&lt;pre lang=&#039;text&#039;&gt;
Exception in thread &quot;main&quot; java.lang.UnsupportedClassVersionError: XBoxCox/SimultanBoxGraph : Unsupported major.minor version 51.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
	at tes.Tes11.main(Tes11.java:154)
Java Result: 1
&lt;/pre&gt;

Any suggestion, how to fix it? i really need the plot for presentation.]]></description>
			<content:encoded><![CDATA[<p>Hi yair,<br />
Thanks for your hard work, it&#8217;s really help me a lot.<br />
I have a problem with matlab r2013a ja builder, jar created by deploytool is working as expected in jdk 1.8 but figure is shown and dissapear again (figure contain no plot).<br />
Then i change jdk to 1.6u17 (64 bit) to match matlab version but when i run the jar again but it give following error in netbeans :</p>
<pre lang='text'>
Exception in thread "main" java.lang.UnsupportedClassVersionError: XBoxCox/SimultanBoxGraph : Unsupported major.minor version 51.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
	at tes.Tes11.main(Tes11.java:154)
Java Result: 1
</pre>
<p>Any suggestion, how to fix it? i really need the plot for presentation.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Java class access pitfalls &#124; Undocumented Matlab		</title>
		<link>https://undocumentedmatlab.com/articles/using-java-7-in-matlab-r2013a-and-earlier#comment-327288</link>

		<dc:creator><![CDATA[Java class access pitfalls &#124; Undocumented Matlab]]></dc:creator>
		<pubDate>Wed, 02 Jul 2014 15:34:55 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3887#comment-327288</guid>

					<description><![CDATA[[...] if you do not have access to the source code, or if it uses some new JDK features), then consider installing a newer compatible JVM in Matlab.Note that when we try running the Java classes using the java executable (outside Matlab), we do [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] if you do not have access to the source code, or if it uses some new JDK features), then consider installing a newer compatible JVM in Matlab.Note that when we try running the Java classes using the java executable (outside Matlab), we do [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Martin Lechner		</title>
		<link>https://undocumentedmatlab.com/articles/using-java-7-in-matlab-r2013a-and-earlier#comment-321277</link>

		<dc:creator><![CDATA[Martin Lechner]]></dc:creator>
		<pubDate>Wed, 02 Apr 2014 09:41:24 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3887#comment-321277</guid>

					<description><![CDATA[I tried Matlab R2014a with Java JDK8. Normal plots and the GUI&#039;s from standard matlab work correct.]]></description>
			<content:encoded><![CDATA[<p>I tried Matlab R2014a with Java JDK8. Normal plots and the GUI&#8217;s from standard matlab work correct.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: julien		</title>
		<link>https://undocumentedmatlab.com/articles/using-java-7-in-matlab-r2013a-and-earlier#comment-309372</link>

		<dc:creator><![CDATA[julien]]></dc:creator>
		<pubDate>Tue, 14 Jan 2014 20:32:51 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=3887#comment-309372</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/using-java-7-in-matlab-r2013a-and-earlier#comment-309356&quot;&gt;Yair Altman&lt;/a&gt;.

Thanks for your fast answer, Yair. I already had a look on java forums and I did not find anything similar... For example, if you simply create a &lt;code&gt;JFrame&lt;/code&gt;, add a component to the content pane and set its cursor from matlab command line, it works fine. 
I look forward to see your investigations!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/using-java-7-in-matlab-r2013a-and-earlier#comment-309356">Yair Altman</a>.</p>
<p>Thanks for your fast answer, Yair. I already had a look on java forums and I did not find anything similar&#8230; For example, if you simply create a <code>JFrame</code>, add a component to the content pane and set its cursor from matlab command line, it works fine.<br />
I look forward to see your investigations!</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
