aspose file tools*
The moose likes Beginning Java and the fly likes Is there an online sandbox environment for compiling and running java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Is there an online sandbox environment for compiling and running java?" Watch "Is there an online sandbox environment for compiling and running java?" New topic
Author

Is there an online sandbox environment for compiling and running java?

Igor Mechnikov
Ranch Hand

Joined: Feb 13, 2011
Posts: 100

In case available computer does not have java installed it might help to have some sort of a web app that allows to try out code in a browser.
I think this might be useful for learning Java.
Perhaps something along these lines: http://codepad.org/


String knock = "\u042F \u0418\u0433\u043e\u0440\u044c";
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38765
    
  23
Yes, there is; please search. Somebody posted a link to such an environment which they had developed, about two months ago, but I can't remember where. I tried it and found errors in its behaviour with Exceptions.
Joshua Barrett
Greenhorn

Joined: Sep 08, 2010
Posts: 27
Campbell Ritchie wrote:Yes, there is; please search. Somebody posted a link to such an environment which they had developed, about two months ago, but I can't remember where. I tried it and found errors in its behaviour with Exceptions.


http://browxy.com:9000/codeRunner

Is this the one you were refering to?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38765
    
  23
Yes, I think it was. I tried something which I expected would throw an Exception, possibly an ArrayIndexOutOfBoundsException because there were no command-line arguments, and did not suffer the expected Exception. I can't seem to find the old thread, however.
Igor Mechnikov
Ranch Hand

Joined: Feb 13, 2011
Posts: 100

Thank you very much.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41809
    
  62
See here for some related discussion on browxy.com: http://www.coderanch.com/t/524600/java/java/New-Free-Online-Java-Compiler


Ping & DNS - my free Android networking tools app
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38765
    
  23
Thank you, Ulf. That old thread does indeed show where I got the wrong Exception.
David Bremmen
Greenhorn

Joined: Jan 23, 2011
Posts: 6
Hi! browxy URL changed to http://www.browxy.com. There is a new beta version where you can run interactive programs (like the ones that use Scanner). Also run applets, save, edit and also publish your code to a public url
Gokul Nanthakumar
Ranch Hand

Joined: May 11, 2010
Posts: 56
Try JDoodle.com, you run save share java program online in this. it gives nice list of your recently executed list as well.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is there an online sandbox environment for compiling and running java?