How do I know which version of Java to use?

Get help using Construct 2

Post » Sat Oct 25, 2014 4:08 pm

Hi

Let me explain it, I'm developing a game for Android (first) and I have a question:

Which version of Java to use?

I think during the process I use Java 2 times:

1. During the "Minify script" process
2. During the App "Signer & Zipalign" process

I changed from JDK v6.45 to JDK v7.72 and I have no problem with the number 1, but at the moment of installing from Google Play I get this error: "'Package file was not signed correctly", so I guess it's because of the Java version

But what about the "Minify script" process?
It's there a difference between "Minify script" with JDK v6.45 and JDK v7.72?
B
92
S
30
G
11
Posts: 654
Reputation: 11,707

Post » Sat Oct 25, 2014 6:49 pm

Download Java 6 to to Sign using "Jarsigner" and any other java's "Zipalign" will work. I am going to link you to a tutorial that is very informative, and if you need any more help, just PM me!
Java 7+ is having signing issues, so use 6.
Here is the link to the tutorial. Again, any more questions PM me or ask them here!
https://www.scirra.com/tutorials/861/ho ... apk?page=2
B
37
S
11
G
4
Posts: 96
Reputation: 4,237

Post » Sat Oct 25, 2014 6:50 pm

Also, here is the link to download the Java that I use. http://www.oracle.com/technetwork/java/ ... 45-oth-JPR
B
37
S
11
G
4
Posts: 96
Reputation: 4,237

Post » Sat Oct 25, 2014 11:28 pm

@Drewford
But what about the "Minify script" process?
It's there a difference between "Minify script" with JDK v6.45 and JDK v7.72?
B
92
S
30
G
11
Posts: 654
Reputation: 11,707

Post » Sun Oct 26, 2014 12:54 am

@Iolva No, sorry for the late response. Also, what wrapper are you using? If you are using CooconJS or Crosswalk, I recommend not using the "Minify script." These two wrappers do it automatically on their end while compiling, and could possibly cause some issues. But to answer your question, no, not much of a difference. The only issues that I have come across with the newer Java versions is the -jarsigner.
B
37
S
11
G
4
Posts: 96
Reputation: 4,237

Post » Sun Oct 26, 2014 1:53 am

Drewford wrote:If you are using CooconJS or Crosswalk, I recommend not using the "Minify script." These two wrappers do it automatically on their end while compiling, and could possibly cause some issues.


This is interesting. Can you expand on this? What issues?
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Sun Oct 26, 2014 2:48 am

I have not personally had issues with it, but I have never "minified," I remember there being a lot on the forums here about it and on the ludai forums on their website. Once I get home I will try to find you some more information and actual links to the explanations. Though I remember from the official plugin .md file it saying "Set the destination folder where the project will be exported, We recommend to uncheck the “minify script” option."
B
37
S
11
G
4
Posts: 96
Reputation: 4,237

Post » Sun Oct 26, 2014 5:53 pm

I'm using Crosswalk and I ALWAYS use the "Minify Script” option.
If I don't use it the "c2runtime.js" file is about 5.88MB!!, but I use the "Minify Script" option it's just 1.98MB!
B
92
S
30
G
11
Posts: 654
Reputation: 11,707


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 57 guests