aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.Scripting.EmbeddedJVM/OpenSimJVM.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim.Scripting.EmbeddedJVM/OpenSimJVM.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim.Scripting.EmbeddedJVM/OpenSimJVM.cs b/OpenSim.Scripting.EmbeddedJVM/OpenSimJVM.cs
index 77a92e5..b47bb50 100644
--- a/OpenSim.Scripting.EmbeddedJVM/OpenSimJVM.cs
+++ b/OpenSim.Scripting.EmbeddedJVM/OpenSimJVM.cs
@@ -66,10 +66,11 @@ namespace OpenSim.Scripting.EmbeddedJVM
66 tw.Close(); 66 tw.Close();
67 67
68 //now compile 68 //now compile
69 System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(@"C:\Program Files\Java\jdk1.6.0_01\bin\javac.exe", "*.java"); 69 System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo("javac.exe", "*.java");
70 psi.RedirectStandardOutput = true; 70 // psi.RedirectStandardOutput = true;
71 psi.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; 71 psi.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
72 psi.UseShellExecute = false; 72 psi.UseShellExecute = false;
73
73 System.Diagnostics.Process javacomp; 74 System.Diagnostics.Process javacomp;
74 javacomp = System.Diagnostics.Process.Start(psi); 75 javacomp = System.Diagnostics.Process.Start(psi);
75 javacomp.WaitForExit(); 76 javacomp.WaitForExit();
@@ -91,7 +92,7 @@ namespace OpenSim.Scripting.EmbeddedJVM
91 //now delete the created files 92 //now delete the created files
92 System.IO.File.Delete(scriptName + ".java"); 93 System.IO.File.Delete(scriptName + ".java");
93 System.IO.File.Delete(scriptName + ".class"); 94 System.IO.File.Delete(scriptName + ".class");
94 this.OnFrame(); 95 //this.OnFrame();
95 } 96 }
96 catch (Exception e) 97 catch (Exception e)
97 { 98 {