error while creating personal repo: ClassNotFoundException: getsig

Forums Development error while creating personal repo: ClassNotFoundException: getsig

This topic contains 24 replies, has 7 voices, and was last updated by  pfalcon 3 years, 6 months ago.

Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Posts
  • #8098

    mvdan
    Moderator

    Well, turns out the getsig stuff is not fixed. I had set it manually and was saved in tmp/apkcache. So still don’t know why it isn’t working.

    #8099

    daithib8
    Member

    How about posting your config for a start?

    #8100

    mvdan
    Moderator
    sdk_path = "/opt/android-sdk"
    ndk_path = "/opt/android-ndk"
    
    aapt_path = "/opt/android-sdk/build-tools/18.0.0/aapt"
    
    javacc_path = "/usr/share/java"
    
    mvn3 = "mvn"
    
    repo_url = "http://fdroid.mvdan.cc"
    repo_name = "F-Droid Workshop"
    repo_icon = "fdroid-icon.png"
    repo_description = """
    The official workshop repository of the F-Droid client. Applications in this
    repository have been included and built during one of the F-Droid workshops,
    later to be merged into the main repo at https://gitorious.org/f-droid.
    """
    
    archive_older = 0
    
    repo_keyalias = "repokey"
    keystore = "/home/mvdan/my.keystore"
    
    keystorepass = "___"
    keypass = "___"
    
    keydname = "CN=Birdman, OU=Cell, O=Alcatraz, L=Alcatraz, S=California, C=US"
    keyaliases = {}
    
    serverwebroot = 'mvdan@mvdan.cc:/data/mvdan/http/fdroid'
    update_stats = False
    
    build_server_always = False
    #8101

    daithib8
    Member

    You could try to use keytool -list -keystore my.keystore and use one of the key aliases you find in there, although if the key doesn’t exist it should say , ERROR: failed to get repo pub key.

    I’m on a pretty recent version of java (1.7.0_17 or 1.6.0_27) and it’s working fine for me.

    #8102

    mvdan
    Moderator

    keytool -list -keystore my.keystore

    Enter keystore password:
    
    Keystore type: JKS
    Keystore provider: SUN
    
    Your keystore contains 2 entries
    
    repokey, Aug 3, 2013, PrivateKeyEntry,
    Certificate fingerprint (SHA1): 4F:E1:D3:1D:55:C9:5C:29:74:66:18:09:D7:12:DF:A6:CF:89:CE:13
    961c7627, Aug 3, 2013, PrivateKeyEntry,
    Certificate fingerprint (SHA1): B0:C9:61:63:99:36:02:64:B3:14:66:15:EA:8E:88:58:9B:23:4B:35

    java -version

    java version "1.7.0_40"
    OpenJDK Runtime Environment (IcedTea 2.4.1) (ArchLinux build 7.u40_2.4.1-2-x86_64)
    OpenJDK 64-Bit Server VM (build 24.0-b50, mixed mode)

    Everything seems OK to me.

    #8103

    daithib8
    Member

    You’re not using gcj (gnu compiler for java) keytool I hope.
    Both of you have 64-bit java — I’m on 32-bit

    BTw android docs say we should use sigalg SHA1withRSA but we are using MD5withRSA

    #8104

    daithib8
    Member

    All your keys have SHA1 whereas mine is MD5

    #9685

    Len
    Member

    I have the same proberm when build my own fdroid server,did you solved this problem?
    could you give me your suggestion .

    mtkvm@mtkvm:myrepo$ fdroid update -c
    WARNING: unsafe permissions on config.py (should be 0600)!
    Reading config.py...
    Processing Unsigned_Hello.apk
    Exception in thread "main" java.lang.NoClassDefFoundError: getsig
    Caused by: java.lang.ClassNotFoundException: getsig
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    Could not find the main class: getsig. Program will exit.
    ERROR: Failed to get apk signature
    • This reply was modified 3 years, 6 months ago by  Len.
    • This reply was modified 3 years, 6 months ago by  Len.
    #9692

    mvdan
    Moderator

    You need to compile the getsig class; See getsig/make.sh

    #9712

    pfalcon
    Member

    Ok, update.py is now smart enough to check for getsig.class availability to produce user-friendly error with hints how to fix.

Viewing 10 posts - 16 through 25 (of 25 total)

The forum ‘Development’ is closed to new topics and replies.

Posted in