Closed Thread
Results 1 to 4 of 4
  1. #1
    Zor_Primo's Avatar
    offline Maybe Modder
    Join Date
    Jul 2010
    Location
    Texas, is there anywhere else.
    Posts
    29
    Thanks
    8
    Thanked 9 Times in 9 Posts
    Downloads
    19
    Uploads
    0

    Help with testsign.jar

    For what ever reason, I am unable to sign .apk's and .zip's with testsign.jar. I used the following guides:

    Amon-Ra

    [SCRIPT/HOW-TO] Sign files with a right-click (Ubuntu) - xda-developers (my original setup worked fine OTB)

    and this guide:

    toxigenicpoem

    Auto Sign Linux : Use Nautilus/Konqurer to sign zips - Simply Android

    is it possible that the testsign.jar I downloaded are whacked or am I using the wrong version of Java?

    this what shows when I run the following:

    bobby@Riggs-9300:~$ sudo update-alternatives --config java
    [sudo] password for bobby:
    There are 2 choices for the alternative java (providing /usr/bin/java).

    Selection Path Priority Status
    ------------------------------------------------------------
    * 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode
    1 /usr/bin/gij-4.4 1044 manual mode
    2 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode

    Press enter to keep the current choice[*], or type selection number:


    It used to duplicate the file that I was signing except "signed-" at the front this is the script that I used based off of Amon-Ra's [How-To]:

    #!/bin/sh
    # Update the Loc var to where YOU stored the testsign.jar file !

    Loc=~/AndroidSDK/tools/sign

    for arg
    do

    java -classpath "$Loc"testsign.jar testsign "$arg" signed-"$arg"
    gdialog --title "signapk" --msgbox "signed-"$arg" created" 200 200

    done

    Now it just pops the alert saying signed-*.* created with the newfile nowhere to be found. and the original not signed.

    I created the file in the ~/.gnome/nautilus-scripts folder then chmod u+x to make them executable. Any help to resolve this matter will
    HW: Cliq Titanium
    Recovery: j_r0dd-mb200-v2/0 - j_r0dd
    Rom: [ROM] Team Rogue's CM4Morrison 7.1.0

    "Wars come and go but my Soldiers are eternal."
    -Tupac Shakur

  2. #2
    offline So I Hear You Can Mod
    Join Date
    Mar 2010
    Posts
    315
    Thanks
    71
    Thanked 226 Times in 78 Posts
    Downloads
    15
    Uploads
    0
    You need Oracle Java 6 to run testsign.zip, Open Java 6 will not work.

    To get Oracle Java 6, follow OpenCliq's tutorial: here

  3. The Following User Says Thank You to toxigenicpoem For This Useful Post:

    Zor_Primo (08-19-2010)

  4. #3
    Zor_Primo's Avatar
    offline Maybe Modder
    Join Date
    Jul 2010
    Location
    Texas, is there anywhere else.
    Posts
    29
    Thanks
    8
    Thanked 9 Times in 9 Posts
    Downloads
    19
    Uploads
    0
    THanks for you reply. Yes, it was the version of Java. I had like 3 versions on my other box before it crashed. Sun-Java5, Sun-Java6 and Open-Java6. Yes, it seems that Open-Java isn't the right one.

    Please close the thread.
    HW: Cliq Titanium
    Recovery: j_r0dd-mb200-v2/0 - j_r0dd
    Rom: [ROM] Team Rogue's CM4Morrison 7.1.0

    "Wars come and go but my Soldiers are eternal."
    -Tupac Shakur

  5. #4
    j_r0dd's Avatar
    offline Developer
    Join Date
    Nov 2009
    Location
    FLA
    Posts
    2,182
    Thanks
    570
    Thanked 2,763 Times in 739 Posts
    Downloads
    65
    Uploads
    11
    closed per request of OP
    Nexus S: CM7.1 Kang w/Voodoo
    Backflip: CM7.1
    Cliq: CM7.1
    Follow me on Twitter
    If you like something I have done & want to buy me a RedBull click HERE

  6. The Following User Says Thank You to j_r0dd For This Useful Post:

    sublime1184 (08-24-2010)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts