• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Online Java Editor/Compiler?

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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??
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Compiler only. No interpreters. Has a JDK 1.5 option

http://www.innovation.ch/java/java_compile.html
 
Jinto Lonappan
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks...
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
no jre no jdk
java online compiler
http://youjavait.com/java-online-compiler.htmljava online compiler
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Marshal
Posts: 79179
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Marshal
Posts: 79179
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Fails to run on my machine on youjavait.
 
Ranch Hand
Posts: 448
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Pablo,

You can use the code tags around your code to make it easier to understand.
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Campbell Ritchie
Marshal
Posts: 79179
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Marshal
Posts: 79179
377
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Marshal
Posts: 79179
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
may be in some companies but not all for sure
 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try JDoodle.com - you can run java program here, even you can save and share code.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try codiva.io online java compiler

It compiles as you type, and highlights the error lines in the editor itself, unlike jdoodle or others.
It also has autocompletion.
 
You got style baby! More than this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic