› 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.
-
AuthorPosts
-
August 3, 2013 at 9:43 am #8098
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.
August 3, 2013 at 9:53 am #8099How about posting your config for a start?
August 3, 2013 at 9:56 am #8100sdk_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
August 3, 2013 at 10:10 am #8101You 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.
August 3, 2013 at 10:15 am #8102keytool -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.
August 3, 2013 at 10:35 am #8103You’re not using gcj (gnu compiler for java) keytool I hope.
Both of you have 64-bit java — I’m on 32-bitBTw android docs say we should use sigalg SHA1withRSA but we are using MD5withRSA
August 3, 2013 at 11:00 am #8104All your keys have SHA1 whereas mine is MD5
November 15, 2013 at 7:04 am #9685I 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
November 15, 2013 at 8:13 am #9692You need to compile the getsig class; See getsig/make.sh
November 16, 2013 at 5:08 pm #9712Ok, update.py is now smart enough to check for getsig.class availability to produce user-friendly error with hints how to fix.
-
AuthorPosts
The forum ‘Development’ is closed to new topics and replies.