Welcome to MacForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Metrowerks Java Application Will Not Run The Compiled .jav..

 
   Macintosh computer (Home) -> Programmer Code RSS
Next:  Debugger problem  
Author Message
aplmac

External


Since: Dec 15, 2006
Posts: 1



(Msg. 1) Posted: Fri Dec 15, 2006 11:20 am
Post subject: Metrowerks Java Application Will Not Run The Compiled .java Files (Mac OS 9)
Archived from groups: comp>sys>mac>programmer>codewarrior (more info?)

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.

 >> Stay informed about: Metrowerks Java Application Will Not Run The Compiled .jav.. 
Back to top
Login to vote
Display posts from previous:   
   Macintosh computer (Home) -> Programmer Code All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]