




I’ve been working on my Java online compiler earlier today and while the software is far from finished it does work as intended (it tries to compiles the java file and will show the appropiate message(s)) . One of the thing that does’t work however is that when the file is compiled succesfully the generated class file wil not run for some reason but it does work when i test my compiler class seperately in another project with Eclipse. Wierd? It sure is, but maybe there is a nasty bugger somewhere in the code that i’ve overlooked. Stay tuned!
Want to take a look at the code? Go to our svn server -> project -> OnlineCompiler
Here’s an example output when a user uploads a *.java file to the webserver or local directory where the folder watcher is running.
*****************
Online Java compiler
Do not distribute without the author(s) permission!
*****************
By: HappyFace - www.engineeringserver.com
Contact: info [@] engineeringserver.com
Version: 17/09/2008
*****************
Drag & drop your text files here: c:\demo\unprocessed\
->There are no files waiting to be processed<-
Processing: HelloWorld.java
File successfully compiled!Processing: TimerTest.java
1 javac: file not found: c:\demo\unprocessed\HelloWorld.java\TimerTest.java
2 Usage: javac <options> <source files>
3 use -help for a list of possible options
Could not process: HelloWorld.class
->There are no files waiting to be processed<-
Processing: TimerTest.java
1 c:\demo\unprocessed\TimerTest.java:59: ‘)’ expected
2 if (e.getSource() == close Frame){
3 ^
4 c:\demo\unprocessed\TimerTest.java:59: not a statement
5 if (e.getSource() == close Frame){
6 ^
7 c:\demo\unprocessed\TimerTest.java:59: ‘;’ expected
8 if (e.getSource() == close Frame){
9 ^
10 3 errors
->There are no files waiting to be processed<-
The compile errors can be viewed directly using a webbrowser or can be downloaded as a text file. The file looks like this:
c:\demo\unprocessed\TimerTest.java:59: ‘)’ expected
if (e.getSource() == close Frame){
^
c:\demo\unprocessed\TimerTest.java:59: not a statement
if (e.getSource() == close Frame){
^
c:\demo\unprocessed\TimerTest.java:59: ‘;’ expected
if (e.getSource() == close Frame){
^
3 errors


More Options ...
Categories
Tag Cloud
Blog RSS
Comments RSS

Void « Default
Life
Earth
Wind
Water
Fire
Light 
[...] background using my compiler class) I’ve also blogged a bit about it yesterday on my blog here: Engineeringserver.com | Online Java compiler W.I.P. and will update the blog post if there there is anything worth mentioning. if you have a request [...]