Epic
Member
- Joined
- May 17, 2012
- Messages
- 8
- Programming Experience
- 1-3
Hey guys,
I'm currently trying to receive a feed from the java app minecraft_sever.jar.
This is what I am currently doing:
Sadly, it's not working, and I have no clue why. Could anybody please help me?
Thanks!
-Epic
I'm currently trying to receive a feed from the java app minecraft_sever.jar.
This is what I am currently doing:
VB.NET:
Dim mc_server As New Process Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
mc_server.StartInfo.UseShellExecute = False
mc_server.StartInfo.WindowStyle = ProcessWindowStyle.Maximized
mc_server.StartInfo.RedirectStandardOutput = True
mc_server.StartInfo.RedirectStandardInput = True
mc_server.StartInfo.CreateNoWindow = True
mc_server.StartInfo.FileName = "C:\Program Files (x86)\Java\jre6\bin\java.exe"
mc_server.StartInfo.Arguments = "java -Xmx1024M -Xms1024M -jar C:\Other\Minecraft\minecraft_server.jar nogui"
mc_server.Start()
While (mc_server.HasExited = False)
Dim sLine As String = mc_server.StandardOutput.ReadLine
If (Not String.IsNullOrEmpty(sLine)) Then
ListBox1.Items.Add(sLine)
End If
Application.DoEvents()
End While
End Sub
Sadly, it's not working, and I have no clue why. Could anybody please help me?
Thanks!
-Epic