how to add command line parameters when running java code in Eclipse?

How can I add command line parameters to the JVM in Eclipse? For example, let's say I want to explicitly add -cp argument when running the JVM, is it possible? (I am giving it as an example, I realize I can add an external Jar to the project settings to get an additional classpath.)

The argument I want to add is -agentlib:Shark (on Mac OSx for running a profiler).


You can specify vm arguments when creating a "Run Configuration" in Eclipse. Right-click on your project > Run Configuration > Java Application > Arguments tab.

Need Your Help

How to pass 2 values in function call in jQuery

java javascript jquery servlets

Hi I have jQuery function and in that I have called servlet in that and also passes 2 values with it but it shows NullPointerException.

How to resolve generic type at runtime


I'm trying to build a command processor that can take any command that implements a marker interface (or maybe descends from a base class). The processor will handle the command that it is asked to

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.