This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes WSAD Debug issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "WSAD Debug issue" Watch "WSAD Debug issue" New topic

WSAD Debug issue

Gary Jones

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

Joined: Oct 14, 2005
Posts: 19973

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
author & internet detective

Joined: May 26, 2003
Posts: 33132

What Paul said. It's the same in WSAD 5 and RAD 6.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: WSAD Debug issue
It's not a secret anymore!