Friday, April 25, 2008

Online Java Output !

Again one idea, implementation of which I am not able to find on internet. Most of the time for testing purpose we need to run small piece of codes basically the non-UI code. And we do it a lot when we prepare for certification exams like SCJP or SCJA. Some small tricky questions ! Not only this most of the time JDK version matters because one can't run generics code with JDK 1.4 backwards.

Why not to make a small web based tool, which takes the java file as an input from user and give option to user to select which JDK version is required probably by radio button(radio button is a nice name, its like radio in which you can select only one station at a time, I wonder why not television button :-) ) and we show the output of that java file on a JSP page or we can also write it somewhere on a file, as user demand, after all user is God :-). For UI code, it will simple return a message like its a UI code and cant be displayed.

So, implementation is little like JFileChooser for selecting input file and for writing output file. Radio buttons for selection of JDK and thats it ! Rest my web server will take load of all JDK version and it will be the duty of code to run the java file on the appropriate JDK version.

Please give your useful comment on idea and also if there is anything exist like this. I would love to use it rather than writing :-).


ubuntu said...

hey vkc .. .it may sound strange but yesterday i had a similar idea ..i was preparing an ear file and was transferring to my frinds computer as I did not have WAS6, then it striked me that an online Enterprise server will be useful where you could deploy the ears and call them from remote clients ... do tell me if something like this exist

Vaibhav said...

O yes, your problem is little different from mine, but both goes on the same line. we are taking adv. of Java platform independence. As you mentioned, some application exists on this line. But this field is still not so open. You can def'ly go ahead and go some work.

So, you are talking about file transfer usages ?

Anonymous said...

You have got to see this. Obama playing on XBox. Funniest video ever.