Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
ASP.NET Compiler
Rofael Emil
12y
1.7k
1
Reply
I'm trying to make an online compiler for java using
ASP.NET
C#
Process p=new Process();
p.StartInfo.FileName = "C:\\Program files\\Java\\bin\\javac.exe";
p.StartInfo.UseShellExecute = false;
p.StartInfo.Arguments = "C:\\Hello.java";
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.CreateNoWindow = true;
p.Start();
p.StandardOutput.ReadToEnd();
p.WaitForExit();
I run javac.exe to compile Hello.java, but the process isn't allowed by ASP.NET to write Hello.class to disk
But on doing it manually through cmd.exe without using ASP.NET or progmatically using C# only it runs perfectly
Can you help me make an online java compiler using ASP.NET or PHP for compiling Algorithmic assignments?
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
DataGrid Export to Excel in ASP.NET
Opening MS Word Document in asp.net