This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "WSAD Debug issue" Watch "WSAD Debug issue" New topic
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: 18712
    
    8

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
Marshal

Joined: May 26, 2003
Posts: 30789
    
157

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WSAD Debug issue