


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.
More »


Before Java 1.6 was released to the public I used the Runtime class (found in java.lang) to call the java compiler (javac.exe) directly to compile a Java file from another Java application, the line of code that i used looks like this
But luckily for me Java 1.6 introduced a handy utility that makes it possible to compile a Java application within a Java application without making direct calls to an external application. To demonstrate that I wrote a HelloWorld Java file and a CompilerConsoleDemo class that compiles the HelloWorld java file.


Remember this post of mine ?
Well, I was bored and updated it a bit so that it now supports different colors, clear drawing screen etc The flickering is because i'm drawing everyline realtime in the background, this will be fixed in a later release.
The sourcecode will be uploaded on the forums shortly.


A Java component I made that you can use to add banners, logo's, animated gifs, links etc to any Java Swing application. I hope you like my Java component! It's free and the old version can be download here on the blog! (I'll upload the latest version later when I have the time)
Oh yeah, the quality of the video is below average (you can't see what i type) but I blame windows movie maker (and youtube for lowering the quality but atleast they are hosting my video)!
//edit
Higher quality video can be downloaded here: http://www.megaupload.com/nl/?d=FSAO2SF5
The code that I used in my demo video


This example shows you how to call a method from another class.
Class #1
Class #2
After you run class #1 the output will be:
You called the method: methodB


An example how to parse a String to an int
The output will be:
The result is 381
More Options ...

Categories
Tag Cloud
Blog RSS
Comments RSS


Void (Default)
Life
Earth
Wind
Water
Fire
Lightweight