hi friends,
i am doin a project named online compiler.
the basic idea is to compile a program online.
i am well acquinted with core java but not with web technologies.
i know the basics of jsp n planning to do the project in jsp.
i know how to compile source inside another java code
example

import javax.tools.JavaCompiler;
import javax.tools.ToolProvider;
public class CompileHello {
    public static void main(String[] args) {
        JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
        int result = compiler.run(null, null, null,"src/hello.java");
        System.out.println("Compile result code = " + result);
    }
}

the estimated time to complete the project is abt 1 month .
i need all ur guidance to properly guide me through or give me a through idea of how this thing could be done

Recommended Answers

All 3 Replies

all you have to do is upload the code to your server via the jsp and then compile it on the server. Be aware of the security risk involved in what you are trying to do (if you indent to run the compiled code on the server)

i am willing to do same project please give me some way to start it

hey sam i already sucessfully completed the project .just mail me ur info at [removed] ,would be very happy to help u out

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.