Languages

Menu
Sites
Language
Can't sign application when building TPK package

Hi,

I have ready to publish app and I'm trying to create TPK package. I have generated p12 file and configured Secure Profiles. But due to error signing process not successfull and author-signature.xml not generated. 

There is the log:

Signing...
d: && cd d:\tizen\tools\smart-build-interface\..\ide\bin && cmd.exe /C native-signing.bat "C:\Users\Nikolay\workspace\LoadStringTest\Release\.tpk" "d:\tizen\tools\certificate-generator\certificates\developer\tizen-developer-ca.cer" "C:\Users\Nikolay\workspace\AlchemyClassic\tizencert.p12" "****" "d:\tizen\tools\certificate-generator\certificates\distributor\tizen-distributor-signer.p12" "****" "d:\tizen\tools\certificate-generator\certificates\distributor\tizen-distributor-ca.cer" "" "****" "" ""
'java' is not recognized as an internal or external command,
operable program or batch file.
Zipping...
...............
 
I have latest Java vrsion and it works.
 
Any advice woud be very appreciable.
 
Thanks,
Nick

 

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

13 Replies
Raghu Kona
Can you please check if your device time is set to current date and time. Regards, Raghu Kona
Nikolay Cholakov
I suppose that is not relation with my device because it disconnected. There is no need to have devices for packaging task. You can create packages without devices but if you wish you could run this package onto devices. But this is another story. For some reason 'java' command is unrecognized. But I'm 100% sure that java runtime installed properly and works.
Stephen colbert
Hey Raghu, Can you tell me how to generated the p12 file and configure the Secure Profile?
Nikolay Cholakov
Hi, Please see this link https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.native.appprogramming%2Fhtml%2Fapp_dev_process%2Fpackaging_app.htm Regards, Nick
Nikolay Cholakov
PS. Please let me know if file author-signature.xml appears in tpk folder. For me error happen
Paweł Huber
had the same problem.... was in my case due to java x64 You have to add path to java in system variable under the name PATH or JAVA_HOME, forgot which one ;)
Raghu Kona
Should be added to the PATH variable.
Stephen colbert
@pav31 I already added java to my path (the sdk wouldnt even install without it!) @nisafrost I followed the directions in help and tried to run the "certificate-generator.bat" in the command line but it wouldn't work. I then went and copied my java from my x86 folder to my Programs folder and created anew PATH and CLASS variable but when I try to run it i'm getting, "java is not recognized as internal or external command." Strange because if i type java into the cmd it is recognized!
Raghu Kona
What error are you getting, while running the certificate-generator.bat?
Stephen colbert
raghu, I'm getting, "java is not recognized as internal or external command." right now I;m using a p12 file I found in C:\tizen-sdk\tools\certificate-generator\certificates\distributor - tizen-distributor-signer.p12 Not sure what the difference is between this one and the one I'm supposed to generate. In any case its letting me build my project now. I just dot know how to run it. I followed directions to to build and run the Tizen helloworld project and it worked. But when trying the native app helloworld I get this error: "There is no device to launch" -eric
Raghu Kona
Hi Eric, The difference is you are the owner of the certificate and it will have your signature in it. Are you able to run a web application on the device? If yes, there is no difference at least with the signing part between a web and native application. Tizen 2.1 added a signature and modified the application Id in config.xml, making it unique bu adding the application name to the Id. Other than that there is no much difference. Regarding the certificate, it is actually quite easy to create a secure profile using the Certificate Generator link from Window->Preferences->Tizen SDK -> Secure Profiles. It is strange to see the Java error, while creating a profile, can you just reboot or verify the versions of Java installed. It is recommended to have only one version of Java running on your machine. Regards, Raghu Kona
Raghu Kona
Please make sure that you have selected the device in the connection explorer.
Stephen colbert
Actually I lied. That other certificate isn't working. I only have 1 java installed. @Raghu thank you. I launched the emulator in the connections explorer but my project is failing to launch due to the certificate/signing error.