There was no fix for my problem - still can’t build.
@beernathan: For clarity, Java doesn’t work on your system and it isn’t possible to build Android apps without Java (for any SDK, not just Corona).
Did you ever try re-installing Java?
Yes - that’s right @PerryClarke - have tried completely uninstalling and reinstalling - still not about to build. I’m using another Mac to build just fine, so clearly something local to me.
Hey Perry,
I’m using Corona latest public release and the latest JDK (1.8+). The project is a simple hello world project.
When I run:
JAVA_TOOL_OPTIONS=’-Duser.language=en’ jarsigner -tsa http://timestamp.digicert.com -keystore /Applications/CoronaSDK/Resource\ Library/Android/debug.keystore -storepass ‘android’ -keypass ‘android’ /Applications/CoronaSDK-2806/Corona\ Simulator.app/Contents/Resources/_coronatest.jar androiddebugkey
I get:
Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
jarsigner: unable to open jar file: /Applications/CoronaSDK-2806/Corona Simulator.app/Contents/Resources/_coronatest.jar
Any ideas?
Thanks!
Do you have a CoronaSDK installation in the directory /Applications/CoronaSDK-2806/ ?
What problem are you trying to solve?
No sorry Perry, I copied the wrong one…
I have corona installed on the CoronaSDK folder, the public release one…
Here it is:
When I run:
JAVA_TOOL_OPTIONS=’-Duser.language=en’ jarsigner -tsa http://timestamp.digicert.com -keystore /Applications/CoronaSDK/Resource\ Library/Android/debug.keystore -storepass ‘android’ -keypass ‘android’ /Applications/CoronaSDK/Corona\ Simulator.app/Contents/Resources/_coronatest.jar androiddebugkey
I then get:
Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
Exception in thread “main” java.lang.NoSuchMethodError: com.sun.jarsigner.ContentSignerParameters.getTSAPolicyID()Ljava/lang/String;
at sun.security.tools.jarsigner.TimestampedSigner.generateSignedData(TimestampedSigner.java:141)
at sun.security.tools.jarsigner.SignatureFile$Block.<init>(Main.java:2387)
at sun.security.tools.jarsigner.SignatureFile.generateBlock(Main.java:2284)
at sun.security.tools.jarsigner.Main.signJar(Main.java:1279)
at sun.security.tools.jarsigner.Main.run(Main.java:241)
at sun.security.tools.jarsigner.Main.main(Main.java:104)
Any news on this? Cheers!
What are you trying to do?
Build for android
That wasn’t what I was asking. What are you trying to accomplish with this command:
JAVA_TOOL_OPTIONS=’-Duser.language=en’ jarsigner -tsa http://timestamp.digicert.com -keystore /Applications/CoronaSDK/Resource\ Library/Android/debug.keystore -storepass ‘android’ -keypass ‘android’ /Applications/CoronaSDK/Corona\ Simulator.app/Contents/Resources/_coronatest.jar androiddebugkey
This command was suggested by Perry a few posts above, because I have Jdk 8 and can’t build for Android. He said to try the command and post the response. That’s what I did. Honestly Rob, I admire your knowledge of code, but there’s a huge lack of social skills. Firstly, I thought you could just read maybe five Little posts above my last one. Second, “that’s not what I asked” is a very rude, borderlining childish answer. I will say again, admire your knowledge, dislike your social skills and common sense. Here we are exchanging useless posts that could’ve been avoided if you read a few posts above mine, like if you were trying to help with the issue.
@marcos martini as I said in a previous post in this thread:
Obviously, we’d still like to try to help but it’s somewhat out of our hands. First thing to do is to install the latest version of Java from here
If that doesn’t fix things, do the following and post the results …
What happens if you run:
jarsigner -verbose -verify /System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Versions/A/Resources/LauncherSupport.jar
If that works (aside from saying “jar is unsigned” which is expected), what about:
JAVA\_TOOL\_OPTIONS='-Duser.language=en' jarsigner -tsa http://timestamp.digicert.com -verbose -verify /System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Versions/A/Resources/LauncherSupport.jar
These are just to test how broken Java is. We can’t reproduce this issue so these commands might work while the actual command needed to sign APKs you posted above continues to fail.
Don’t worry Perry. Re-installed, tried the commands, nothing works. If I use Java 6 is fine, but other than that it still gives me the 256 error. I guess there’s nothing I can do, thanks anyway.