Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Eclipse

 
Sasha McGrath
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic