Vamshi
Vamshi

Reputation: 9341

Open source Web based Java compiler

I want to create a web based java tutorials kind of project which involves jquery, css, jsp, springs etc ., so I actually want to practice these technologies resulting a good product. The content of this tutorial can be edited by any user and rated by clients according to the chapter etc., I have few such ideas.

One primary idea being have a web based compiler and executor . Similar to w3schools. I know its difficult for a compiler of server side technology on a browser.

My questions are:

  1. Are there any such open source java compiler/executor services available which can be used?

  2. Is anyone interested to work on such project (in case there isnt any)?

EDIT: I am planning to use Compiler in java and Beanshell. Any better solutions ?

Upvotes: 7

Views: 9897

Answers (6)

van
van

Reputation: 71

You may want to check out Fixoncloud compiler. It's a web-based collaborative online compiler. Anyone can make changes to the code and you can also track history of your code. The compiler supports C, C++ and Java.

Depending on the permissions set to the code, the owner can also make his code completely private and permit only specific users to view/modify the code.

Here's the link to the compiler: http://www.fixoncloud.com/Home/compiler/index.php?id=254

Upvotes: 0

David
David

Reputation: 31

With http://www.browxy.com you can compile and run java console application and applets

Upvotes: 3

Nick Fortescue
Nick Fortescue

Reputation: 44193

I've used ideone.com before when discussing Java code with someone in a remote location. It is a web based IDE that handles Java as well as a lot of other languages, and is very useful.

If you are trying to do it yourself, you should be aware java6 and above have compilation built into the language in the javax.tools package.

Upvotes: 0

gmhk
gmhk

Reputation: 15960

Google App Engine is the one, which one can you help to set up Free online Java Compiler, But for that you need to have an account to proceed.

Few other places you can defnitely Check http://compilr.com/

If you have Applets, http://www.innovation.ch/java/java_compile.html

EDIT : As Stephen Suggests, Download JRE and JDE and use it from oracle website http://www.oracle.com/technetwork/java/javase/downloads/index.html

Upvotes: 4

Raptor
Raptor

Reputation: 54258

This question is interesting. In fact, Tomcat JSP server is an online compiler for Java Servlet. May help you a little in your case. (Not for traditional Java, though).

Imagine that you gave user an input form for Java codes ( preferably a WYSIWYG editor ), the codes will be written in a temp JSP file, and then your code compile and run the JSP.

But be careful , JSP is too powerful ( as it can touch file system, etc. ). Make sure your security measure is set.

Upvotes: 0

tstenner
tstenner

Reputation: 10311

You would need a script on your server that accepts the sourcecode, compiles it and runs it, however I'm pretty sure, you don't want to run arbitrary code.

If you still want to do it, take a look at Google's AppEngine, they do allow users to upload their (compiled) java programs and don't seem to have had any problems with it.

Upvotes: 0

Related Questions