How to run an application with specific arguments

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Barb Kline

How to run an application with specific arguments

Post by Barb Kline »

Hi. I am using JDK 1.3.1 and am trying to figure out how to run a Java application with certain arguments. I would like to run my applications with certain data but can't seem to get it to work. I know if I were tryping the commands in DOS I would just include the data in quotes. How do I do it in TextPad? Thanks in advance. I am sure it is something simple that I just can't see.

Barb
Guest

Post by Guest »

In order to pass parameters to your run time, go to configure on the menu bar, then select Preferences from the dropdown, then expand the tools entry click on the run java application and check the checkbox for prompt for parameters. Then apply. Then go back to menu bar tools and select run java application, you should be rompted for parameter leave the $BaseName then a space and your parameters.


Good Luck 8)
Post Reply