Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Java Development User Guide
Previous Page Home Next Page

Setting execution arguments

If you want to specify execution arguments for your program, you must define a launch configuration that specifies the arguments.

  1. Select Opens the Run Launch Configurations dialog Run > Run Configurations... or Opens the Debug Launch Configurations dialog Run > Debug Configurations... from the workbench Run menu to open the list of launch configurations.   Launch configurations for Java programs are shown underneath Java Application in this list. 
  2. Select an existing configuration or create a new launch configuration by pushing the New button after selecting Java Application.
  3. On the Arguments tab for the configuration, you can specify the following fields as necessary:
    • Program Arguments: Application-specific values that your code is expecting (a user name or a URL for locating help files, for example).
    • VM Arguments: Values meant to change the behavior of the Java virtual machine (VM). For example, you may need to tell the VM whether to use a just-in-time (JIT) compiler, or you may need to specify the maximum heap size the VM should use. Refer to your VM's documentation for more information about the available VM arguments.
    • Working Directory: The working directory used for the launched process. To change from using the default working directory, select Other and specify the workspace or local directory to use for the working directory of the launched process.
  4. Click Apply or  Close when you are done. Every time you launch this configuration, these execution arguments will be used.

Related tasks
Creating a Java Application launch configuration
Launching a Java program


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire