• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Using Eclipse

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic