From 5ad6d5a939fb7bf0fdfdc6925d4afed306e08641 Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 11 Apr 2007 12:13:21 +0000 Subject: First basic test script now works in the jvm scripting engine. For it to work you need to have a java sdk installed and the javac.exe somewhere in the environment Path variable. Then To test, copy the text from bin/script1.text into a note card and then add that note to a prim. --- OpenSim.Scripting.EmbeddedJVM/OpenSimJVM.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'OpenSim.Scripting.EmbeddedJVM/OpenSimJVM.cs') 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 tw.Close(); //now compile - System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(@"C:\Program Files\Java\jdk1.6.0_01\bin\javac.exe", "*.java"); - psi.RedirectStandardOutput = true; + System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo("javac.exe", "*.java"); + // psi.RedirectStandardOutput = true; psi.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; psi.UseShellExecute = false; + System.Diagnostics.Process javacomp; javacomp = System.Diagnostics.Process.Start(psi); javacomp.WaitForExit(); @@ -91,7 +92,7 @@ namespace OpenSim.Scripting.EmbeddedJVM //now delete the created files System.IO.File.Delete(scriptName + ".java"); System.IO.File.Delete(scriptName + ".class"); - this.OnFrame(); + //this.OnFrame(); } catch (Exception e) { -- cgit v1.1