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.
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
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.
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)
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.
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.
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)