CodeWarrior IDE 3.2
PowerBook G3 - Mac OS 9.1
I'm a Java programming novice, and I'm using this old pre-J2SE version
of Java together with this old version of CodeWarrior. My programs are
simple. So, it's all I need for now. The problem I have is the
inability to run compiled Java code. The problem also occurs with the
default place-holding class TrivialApplication.java.
When I try to run the compiled .java files, the Metrowerks Java
application launches. The application window appears with the correct
class name (in which the main method exists) already filled in the
"Class Name" textbox. I leave the "Arguments" textbox blank. I also
check for the correct working directory. If the directory is incorrect,
I use the "Select Dir" button. Also, when I press the "Add
Classpaths..." button, I see the classes.zip file and the working
directory containing the class I'm trying to run. When I press the
"Run..." button, nothing happens. I expected to see a Java console
window open for this particular program (System.out.prinln()), but
nothing happens.
Let me go back to the CodeWarrior IDE 3.2 side of the story. From the
Edit menu item, "Java Application Settings...", I have the following
setup.
For Target Settings,
Target Name: Java Application
Linker: Java Linker
Pre-Linker: None
Post-Linker: None
For Java Target,
Target Type: Application
Main Class: The name of the class that will be compiled
Parameters: I left this blank
Working Directory: The the path of the class that will be compiled
Virtual: Apple MRJ (2.2.4)
What am I doing incorrectly that prevents the compiled file from
running? Are there setting corrections/additions I need to make? Please
help. Thanks in advance.


|