dansued
October 16th, 2007, 05:36 PM
For one of my classes, I wrote a simple java program that would display a group of smiley faces in a window. I wrote this program on one of the windows machines on campus. It compiles and runs perfectly.
However, when I copy the same source files onto my computer, a problem emerges. It will compile with no error but upon running, the window that comes up is just a grey background.
My professor is guessing that either the version of java that I have is different or that the graphics library has some incompatibility. The version of java I have is 1.6.0, installed from synaptic.
If anybody has a few minutes to compile and try to run my program, it would be much appreciated. I've attached a zip with all the source files.
javac *.java
java SmileyIf it isn't immediately apparent, I have about 1 week of java experience.
However, when I copy the same source files onto my computer, a problem emerges. It will compile with no error but upon running, the window that comes up is just a grey background.
My professor is guessing that either the version of java that I have is different or that the graphics library has some incompatibility. The version of java I have is 1.6.0, installed from synaptic.
If anybody has a few minutes to compile and try to run my program, it would be much appreciated. I've attached a zip with all the source files.
javac *.java
java SmileyIf it isn't immediately apparent, I have about 1 week of java experience.