| Author |
WSAD Debug issue
|
Gary Jones
Greenhorn
Joined: Dec 11, 2004
Posts: 22
|
|
I need to start debugging my "Java Application" (This is a swing based application) in WSAD. The start class needs some input paramerts/arguments and classpath settings so it is not as simple as "java classname". When i want to debug the application it staright away starts from the class having the main method but later on the program fails as the necessary conditions have not be specified. Can you tell me how to set up a class before begining to debug it. I need to specify parameters and arguments to the java class pARAMERTS COME AFTER "java" command but before specifying the name of the start class. arguments come after the classname. Pl. help.
|
<blockquote><font size="1" face="Verdana, Arial">quote:</font><hr>I have no special talent. <b>I am only passionately curious.</b> <br /> <br />Albert Einstein <hr></blockquote>
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16487
|
|
In WSAD you specify the classpath by configuring the project's "Build Path", not at any command line. That's in the properties dialog for the project. As for command line parameters, if you select "Run" then "Run..." you can create a new configuration for the "Java Application" type. This has an "Arguments" tab where the command-line parameters go. I'm telling you this based on RAD 6.0. It may have been different in WSAD 5.x, I don't remember, but not that different. Sometimes you have to poke around a bit before you find the things that work.
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26496
|
|
|
What Paul said. It's the same in WSAD 5 and RAD 6.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
 |
|
|
subject: WSAD Debug issue
|
|
|