external_objects_java: fix getting started examples failing on Winodws 01/14401/2
Simon Marchetto [Fri, 11 Apr 2014 09:46:20 +0000 (11:46 +0200)]
Change-Id: I3a03bb3a5518464c94a3700353d5dfd92848ef64

scilab/modules/external_objects_java/help/en_US/01-getting-started.xml

index 6b65585..7d21989 100644 (file)
@@ -63,7 +63,7 @@ public class HelloWorld {
       ]]></programlisting>
         <programlisting role="example"><![CDATA[
 // How to compile the Java code from Scilab
-javacode=mgetl('/tmp/HelloWorld.java')
+javacode=mgetl(fullfile(TMPDIR, 'HelloWorld.java'));
 jcompile("com.foo.HelloWorld",javacode);
       ]]></programlisting>
         <para>Once the compiled version of this Java class exists, we can start Scilab and try to get Scilab to show us the various messages.
@@ -149,7 +149,7 @@ public class Inspector {
         </para>
         <programlisting role="example"><![CDATA[
 // How to compile the Java code from Scilab
-javacode= mgetl('/tmp/Inspector.java')
+javacode= mgetl(fullfile(TMPDIR, 'Inspector.java'));
 jcompile("com.foo.Inspector",javacode);
       ]]></programlisting>
         To start, import the Inspector class and create an Inspector object: