Well you could use an online
java compiler to compile the files and then run the class files in your system. Is that ok ?
I have a
test project in my computer that has an empty main method so that I can copy and paste into it in a flash and compile. You could use an IDE like eclipse or netbeans to do this.