Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Code warrior for Mac > Metrowerks Java...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 2181 of 2225
Post > Topic >>

Metrowerks Java Application Will Not Run The Compiled .java Files (Mac OS 9)

by "aplmac" <aplmac@[EMAIL PROTECTED] > Dec 15, 2006 at 11:20 AM

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.
 




 1 Posts in Topic:
Metrowerks Java Application Will Not Run The Compiled .java File
"aplmac" <ap  2006-12-15 11:20:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 9 0:50:27 CDT 2008.