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: Error codes trying to run a batch file

  1. #1
    Junior Member
    Join Date
    Jan 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Error codes trying to run a batch file

    I get the following when I try to run a batch file with a registration code of 48 character length, see below whats the problem anyone help?

    keygen.bat 39411544C9BC3560EEB0F09B1BA5F4DBB7DF

    Exception in thread "main" javax.crypto.IllegalBlockSizeException: Input length
    must be multiple of 16 when decrypting with padded cipher
    at com.sun.crypto.provider.CipherCore.doFinal(CipherC ore.java:750)
    at com.sun.crypto.provider.CipherCore.doFinal(CipherC ore.java:676)
    at com.sun.crypto.provider.AESCipher.engineDoFinal(AE SCipher.java:313)
    at javax.crypto.Cipher.doFinal(Cipher.java:2087)
    at KeyGen.decryptAES(KeyGen.java:102)
    at KeyGen.main(KeyGen.java:44)


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Error codes trying to run a batch file

    Please post a small, complete program that compiles, executes and shows the error.

    Do you get the error when you execute the program outside of the batch file?
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. run time error
    By nayeemohamed in forum What's Wrong With My Code?
    Replies: 3
    Last Post: August 6th, 2012, 04:33 PM
  2. Run a jar file inside a batch file with Windows 7 Task schduler
    By kingnachi in forum What's Wrong With My Code?
    Replies: 2
    Last Post: June 15th, 2012, 09:20 AM
  3. Generating a Batch File - Static Method Error
    By Stroypet in forum What's Wrong With My Code?
    Replies: 3
    Last Post: May 17th, 2012, 11:42 AM
  4. Run Time Error
    By Tanmaysinha in forum What's Wrong With My Code?
    Replies: 22
    Last Post: March 8th, 2012, 11:29 AM
  5. calling a java a class connected to derby from a batch file
    By Reem in forum What's Wrong With My Code?
    Replies: 4
    Last Post: October 31st, 2010, 03:01 PM