File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Using Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Using Eclipse" Watch "Using Eclipse" New topic
Author

Using Eclipse

Sasha McGrath
Greenhorn

Joined: Jun 01, 2007
Posts: 10
I have a java program that converts a .jks file into a .p12 file. The name of the file that has the "main" method is called "convert.java". My program has one argument for the path of the .jks file and another argument for the password of the .jks file. By the way, I do have my CLASSPATH variable set correctly.

When I run my program, a window comes up with some tabs. There is a tab called "Main". What do I put in the "Main class" field? There is another tab called, "Arguments". Do the arguments of my program go in the "Program Arguments" field or the "VM Arguments" field?
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10376
    
    8

Originally posted by Sasha McGrath:
What do I put in the "Main class" field? There is another tab called, "Arguments". Do the arguments of my program go in the "Program Arguments" field or the "VM Arguments" field?


"Main class" field should be pointing to your, well, main class ! (The one having the "main" method. Just hit the "search" button and choose.
"Program Arguments" is for the arguments which you need to pass to your application, the ones captured by String args[].
"VM Arguments" is for the options you might pass for the "java" command. e.g. -verbose or -classpath


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Using Eclipse