File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Online Java Editor/Compiler? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Online Java Editor/Compiler?" Watch "Online Java Editor/Compiler?" New topic
Author

Online Java Editor/Compiler?

Jinto Lonappan
Greenhorn

Joined: Mar 13, 2006
Posts: 20
Is there any on-line Java Editor/Compiler available that enable us to test a piece of code even when we are browsing from an internet cafe which does not have a JDK??
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6657
    
    5

Compiler only. No interpreters. Has a JDK 1.5 option

http://www.innovation.ch/java/java_compile.html


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Jinto Lonappan
Greenhorn

Joined: Mar 13, 2006
Posts: 20
Thanks...
ho fa
Greenhorn

Joined: Mar 06, 2010
Posts: 1
no jre no jdk
java online compiler
http://youjavait.com/java-online-compiler.htmljava online compiler
Pablo Petec
Greenhorn

Joined: Jan 21, 2011
Posts: 2
I found this free online java compiler and runner. It also work with threads and display the results immediately while the program is running. http://www.browxy.com
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36515
    
  16
Welcome to the Ranch

I tried those online compilers; browxy.com took longer to compile a simple recursive Fibonacci program than it would have for me to download the Oracle/Sun JVM and run it from the command line. The other link, youjavait was no better.
Pablo Petec
Greenhorn

Joined: Jan 21, 2011
Posts: 2
Thanks Ritchie
I tried a fibonacci function there and it seems to work. I think thay they deployed a new version recently because now command line parameters can be entered also.
I'm using it in my ipod and also works


Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36515
    
  16
Fails to run on my machine on youjavait.
Sunny Bhandari
Ranch Hand

Joined: Dec 06, 2010
Posts: 448

Hi Pablo,

You can use the code tags around your code to make it easier to understand.


Java Experience
srikanth daggumalli
Greenhorn

Joined: Aug 13, 2007
Posts: 9
Hi All

I have implemented a New Java online compiler and runner which will show you the results of a java program like compilation errors, Runtime exceptions etc.
Not like other sites you can write programs with 'public class' or without it.
The site is under development.

Please find the URL's Below
http://www.javalaunch.com
www.srikanthdaggumalli.com

Please share your suggestions or feedback to me.

Thanks & Regards,
Srikanth Daggumalli

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13881
    
  10

Hi Srikanth, I took a quick look, pressed the Run button but didn't see any output from the System.out.println statement in the example code.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36515
    
  16
Welcome to the Ranch

It took 25 seconds to work out Fibonacci(10) = 55. No output when I tried throwing an Exception. So I think you will have to think again.
srikanth daggumalli
Greenhorn

Joined: Aug 13, 2007
Posts: 9
Hi Campbell/Jesper

It's been a long time that I haven't seen this thread.
I agree with your comment that after running the java code it is not showing any output for the first time and very rare for the second time as I was facing some terrible issue with my tomcat server (which means if the server is ideal for 15 - 20mins then the first request after this time will fail).
The server fails to give output on first time without any exceptions. But please try for the second or third time where you can see the output of your program.

Because of this terrible problem with tomcat server I have mentioned "Site is under development" in my previous post.
Anyway in soon looking forward to resolve this issue.

Please note that
->I have blocked some IO operations with will throw security "Access denied" exception.
->Giving inputs through command line like "Scanner" won't work (Looking to implement in next phase)
->Applets/swings wont work
->I have restricted running time of a program to 10sec because of infinite loops,recursions or sleep method of Threads.(If your internet speed is good enough then you will get the output of program within 10 sec o.w it will show blank page which i going to change as a message page)

Campbell,

Can you please share me the programs that you have tried for Fibonacci and also for throwing an exceptions. So, that i will have a look into them and I will let you know my comments on the same.

Please share your thoughts/comments/suggestions on the same.

Thanks & Regards,
Srikanth Daggumalli
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36515
    
  16
No, I can’t remember what code I used two weeks ago. The Fibonacci program would have been the usual fib(n - 1) + fib(n - 2) version which goes into exponential complexity. Even so, fib(10) ought to run in a few milliseconds. Failing to get an output when an Exception is thrown means you are failing to fulfil the Java™ Language Specifications.

It took 5 seconds for the Fibonacci program today, and is showing an output for an exception.
But I can’t see why anybody would want such a website when they can download the whole JDK and NetBeans or Eclipse free of charge.
srikanth daggumalli
Greenhorn

Joined: Aug 13, 2007
Posts: 9
Yes, I agree with your comments and Thanks for your feedback.

Basically this site www.javalaunch.com is a web application. Which will take some time(seconds) to show the output when compare to excuting the programs in local machine, as you know it has to take the request from browser, process the request through server and give the response back.

But there are many people who wants to learn Java or Compile/Execute java program through online website.

This site will help for those

> Want to learn Java Language through online (eg: students/programmers wants to go through w3schools.com to learn HTML where they dont need to install any software)

> Want to learn Java in working places where they have restriction to download JDK. Please find the below link
eg: http://uk.answers.yahoo.com/question/index?qid=20120223203812AA96Pwu

> Want to practise java programs and want to see immediate output of a program with any internet connected system across the Globe.

> Class room teaching purpose

> Companies training purpose (Companies don't need to install JDK to every system)

> SCJP(now OCJP) preparers

Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36515
    
  16
Still not convinced by any of those reasons. If you need to learn Java™ at work, they will doubtless install it for you if you ask nicely.
srikanth daggumalli
Greenhorn

Joined: Aug 13, 2007
Posts: 9
may be in some companies but not all for sure
Gokul Nanthakumar
Ranch Hand

Joined: May 11, 2010
Posts: 56
Try JDoodle.com - you can run java program here, even you can save and share code.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Online Java Editor/Compiler?
 
Similar Threads
Disable quick fixes in mouse over box in Eclipse 3.4.1? And increase delay before box is shown?
jdom xml schema validation
JSP Editor
How to create a Java Runtime Editor
compilers and Editor for java