This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WSAD Debug issue

 
Gary Jones
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Paul Clapham
Sheriff
Posts: 21126
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34671
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What Paul said. It's the same in WSAD 5 and RAD 6.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic