Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: problem with jarsigner

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default problem with jarsigner

    hello
    I want to create a program that signs and verifing file with jarsigner
    I succed to create .jar but the keystore not
    here is my code :
    public static void main(String[] args) 
         {
     
             try
            {
                String[] dd = { "cmd.exe", "/C", "dir C:\\ >keytool-genkey-alias-keystore signLegal examplestanstore.jks" };
     
                Process p = Runtime.getRuntime().exec(dd);
                BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
                String inputLine;
                while ((inputLine = in.readLine()) != null) System.out.println(inputLine);
     
     
            }catch(Exception e)
            {
                e.printStackTrace();
            }
     
     
     
         }
    in netbeens it write me BUILD SUCCESSFUL (total time: 1 second) but don't create the fiel of keystores
    my goal is to create that with program

    do you have any idea


    thank you in advance


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,254
    My Mood
    Hungover
    Thanks
    142
    Thanked 617 Times in 528 Posts

    Default Re: problem with jarsigner

    I moved this thread as it has nothing to do with recursion.

    Which part of this fails? Break the problem down into smaller steps so you know exactly where the program fails.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Replies: 3
    Last Post: January 5th, 2012, 12:44 AM