Signing package file (private key) Error jarsigner error: java.lang.RuntimeExce

DouglasNYoung

Active Member
Licensed User
Longtime User
Hi,
A week into B4A and my first application is ready - It compiles OK using the debug key, but when I try and use a Private Key I get the following error:

Signing package file (private key) Error
jarsigner error: java.lang.RuntimeException: keystore load: null

As a 'new boy' I've tried everything I can think of, and I'm quite sure its something obvious, but I can't see it! Creating an alternative keystore, gives the same error!

Any ideas, please?

Douglas :sign0085::sign0085:
 

margret

Well-Known Member
Licensed User
Longtime User
Keystore

Make sure you have created a sucessful private key and it is stored in a directory or drive that does not requires any special permissions to use, like C:\MyKey. Use the explorer to see that the file is there. You can try copying the file with the OS explorer just to make sure the OS can read the full file. Hope this helps.

Margret
 
Upvote 0

DouglasNYoung

Active Member
Licensed User
Longtime User
Problem Solved

Thanks Margaret - The file was readable OK and I could open it read it etc., but your post got me thinking!
I recreated the Keystore with a 'simple name' and it worked OK - My first two keystores were 'keystore#1.keystore' and #2 -> Which leads me to think that the # in the filename had something to do with the problem!
Anyway its working now - Thanks. . .

One(?) more problem to solve - Which I'll post on a separate thread later!

:):)
 
Upvote 0

SlavaVB

Member
Licensed User
Longtime User
I'm having the same problem but nothing I do will fix it. It started when I changed the color of the labels to black. I tried changing it back to white, but it still wont compile.
:BangHead:



B4X:
'Activity module
Sub Process_Globals
   'These global variables will be declared once when the application starts.
   'These variables can be accessed from all modules.

End Sub

Sub Globals
   'These global variables will be redeclared each time the activity is created.
   'These variables can only be accessed from this module.

   Dim Button1 As Button
   Dim EditText1 As EditText
   Dim Label1 As Label
   Dim Spinner1 As Spinner
   Dim Label2 As Label
End Sub

Sub Activity_Create(FirstTime As Boolean)
   activity.LoadLayout("TIPS")
   spinner1.Add("Normal Tip")
   spinner1.Add("Good Tip")
   spinner1.Add("Lousy Tip")
End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub
Sub Button1_Click
   Dim amount As Double
   amount = edittext1.Text
   If spinner1.SelectedIndex = 0 Then
      label1.Text = "$" & NumberFormat(amount * .15, 0, 2) & " tip"
   End If
   If spinner1.SelectedIndex = 1 Then
      label1.Text = "$" & NumberFormat(amount * .20, 0, 2) & " tip"
   End If
   If spinner1.SelectedIndex = 2 Then
      label1.Text = "$" & NumberFormat(amount * .10, 0, 2) & " tip"
   End If
End Sub
 
Upvote 0

juvanum

Active Member
Licensed User
Longtime User
me too: keystore not found

Hi,
A week into B4A and my first application is ready - It compiles OK using the debug key, but when I try and use a Private Key I get the following error:

Signing package file (private key) Error
jarsigner error: java.lang.RuntimeException: keystore load: null

As a 'new boy' I've tried everything I can think of, and I'm quite sure its something obvious, but I can't see it! Creating an alternative keystore, gives the same error!

Any ideas, please?

Douglas :sign0085::sign0085:

hi,
this is my first post
my problem is the same.

this is the risult of compilation:


Compiling code. 0.39

ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. 0.05
Generating R file. 0.80
Compiling generated Java code. 2.34
Convert byte code - optimized dex. 1.30
Packaging files. 0.86
Copying libraries resources 0.19
Found 2 resource files.
Signing package file (private key) Error

jarsigner error: java.lang.RuntimeException: keystore load: C:\DOCUME~1\dom\Desktop\B4AMAR~1.2\Objects\keystore (Impossibile trovare il file specificato)

translate: IMPOSSIBILE TROVARE IL FILE SPECIFICATO = not found

but the file keystore is in the directory :BangHead:


:sign0085:

grazie
Ciao
Domenico
 
Upvote 0

juvanum

Active Member
Licensed User
Longtime User
I found a solution.. is correct?

the file name is saved whithout extention: "keystore".
I have added the suffix keystore: "Mykeystore.keystore".
I have moved the file in the directory:

C:\Programmi\Anywhere Software\Basic4android

Now the compiler run... I Hope
ciao
Domenico
 
Upvote 0
Top