github-af / SmartPGP

SmartPGP is a JavaCard implementation of the OpenPGP card specifications
GNU General Public License v2.0
229 stars 48 forks source link

Capgen error: Static array initialization in class in library package not allowed #22

Closed thotheolh closed 4 years ago

thotheolh commented 4 years ago

Attempting to clone and build source returns the following errors during Capgen.

error: Static array initialization in class fr/anssi/smartpgp/Constants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/Constants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/Constants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/Constants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/Constants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/Constants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/Constants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/Constants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/Constants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/Constants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/Constants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/Constants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/ECConstants in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/SecureMessaging in library package not allowed. error: Static array initialization in class fr/anssi/smartpgp/SecureMessaging in library package not allowed. Cap file generation failed. conversion completed with 50 errors and 0 warnings.

thotheolh commented 4 years ago

Solved via creating a completely new project and then manually copying source codes into newly created java class files instead of attempting to import.