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 5 of 5

Thread: Jar signing error.

  1. #1
    Member
    Join Date
    Feb 2013
    Posts
    40
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Jar signing error.

    For an unknown reason when I use the jarsigner command it returns the error of:
    Error: Could not find or load main class sun.security.tools.JarSigner


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    22,324
    Thanks
    56
    Thanked 2,374 Times in 2,345 Posts

    Default Re: Jar signing error.

    Could you copy the full contents of the console window from when you get the error and paste it here?

    What are the environment variables' values?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Member
    Join Date
    Feb 2013
    Posts
    40
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Re: Jar signing error.

    Here you go:
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Users\Ajay>jarsigner Test.jar MyCert
    Error: Could not find or load main class sun.security.tools.JarSigner

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    22,324
    Thanks
    56
    Thanked 2,374 Times in 2,345 Posts

    Default Re: Jar signing error.

    I have no idea what is happening. What can be different about your installation?
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Member
    Join Date
    Feb 2013
    Posts
    40
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Re: Jar signing error.

    For another reason my javac command wont work so I have to use automatic ways.
    I've uninstalled and re installed java many times.

Similar Threads

  1. Signing .exe
    By sharmadeepika221 in forum Java Theory & Questions
    Replies: 1
    Last Post: January 17th, 2013, 10:28 AM
  2. Execution of .jar file: Could not find main class....Error'
    By suyog53 in forum What's Wrong With My Code?
    Replies: 0
    Last Post: October 14th, 2012, 03:04 PM
  3. problem with signing and webstart
    By luisp88 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: June 1st, 2012, 10:46 AM
  4. [SOLVED] Compiled .jar won't work (Error-sound)
    By Fermen in forum Object Oriented Programming
    Replies: 2
    Last Post: March 31st, 2011, 06:24 PM
  5. [SOLVED] Picture won't go with the .jar (Wrong code or compile error?)
    By Fermen in forum Object Oriented Programming
    Replies: 3
    Last Post: March 15th, 2011, 06:22 PM

Tags for this Thread