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 > Mac Code Warrior > Metrowerks Java...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 533 of 537
Post > Topic >>

Metrowerks Java Applications Will Not Run Compiled Files

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

CodeWarrior IDE 3.2
PowerBook G3 - Mac OS 9.1
Apple MRJ 2.2.4

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 cl*****.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 Applications Will Not Run Compiled Files
"aplmac" <ap  2006-12-15 11:33:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Thu Jul 24 1:31:38 CDT 2008.