Discussion Forums  >  Maps, Device Location, Tracking

Replies: 32    Views: 988

ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
06/09/12 03:14 PM (13 years ago)

keytool.exe is not a valid Win 32 application?

i typed this in the command keytool -genkey -v -keystore you-decide.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 so i can get my google maps going, but it says keytool.exe is not a valid Win 32 application. Im not sure what i have to do next here.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/09/12 03:17 PM (13 years ago)
Hi Cono, It basically means that the system can't find the keytool.exe program in your path. If you go into the folder that has your JDK installed in it, and then into, I think, the bin folder, you'll find the keytool.exe program. Then you can run the command from there, and it should create the keystore. Mark
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/09/12 03:19 PM (13 years ago)
i tried that, it keeps saying the same thing.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/09/12 03:22 PM (13 years ago)
Are you doing it from the command line, or double-clicking on the program? It needs to be done from the command line.
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/09/12 03:23 PM (13 years ago)
i tried it by double clicking
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/09/12 03:25 PM (13 years ago)
It has to be done from the command line. In Windows, go to Start...Run and type in cmd. That will bring up a command Window. Then try it. Mark
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/09/12 03:25 PM (13 years ago)
http://stackoverflow.com/questions/8279546/keytool-exe-is-not-a-valid-win32-application i read this and this guy had the same problem, he said he reinstalled the keytool and it worked, my keytool also says 0 bytes on it
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/09/12 03:26 PM (13 years ago)
Worth a shot then!
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/09/12 03:28 PM (13 years ago)
im gonna try your way first, if that doesnt work, where do i get the keytool again? i checked my browser history but couldnt find where i downloaded it
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/09/12 03:28 PM (13 years ago)
My Google Maps & Buzztouch article will walk you through the KeyTool setup. Fred
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/09/12 03:30 PM (13 years ago)
The keytool.exe file comes with your JDK install. If keytool.exe is being reported as 0k, then you'll need to reinstall. Just try a reinstall of your Java JDK, and you should be good. Fred - your guide only works if the keytool executable is working. That's the problem we're trying to address right now.
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/09/12 03:35 PM (13 years ago)
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/09/12 03:37 PM (13 years ago)
What version of eclipse is installed 32 bit 64 bit?
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/09/12 03:38 PM (13 years ago)
my computer is 64 bit so i use that
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/09/12 03:40 PM (13 years ago)
Yep. And it's no issue to use the 32-bit version...that's what I use on my 64-bit laptop. Works just fine (and you don't really need the 64-bitness for what you're doing).
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/09/12 03:41 PM (13 years ago)
Ohh i didnt know that, I assumed I had to use 64
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/09/12 03:43 PM (13 years ago)
should i download the 64 bit JDK or the 32 bit its asking
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/09/12 03:48 PM (13 years ago)
If you are going to install over your old one, then use the 64-bit version (since that's what you already have). If you are doing it from scratch, I would recommend the 32-bit version.
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/09/12 03:53 PM (13 years ago)
Thanks Mark, ill keep you posted
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/09/12 04:47 PM (13 years ago)
hmm didnt seem to work.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/09/12 04:49 PM (13 years ago)
Did you verify the keytool.exe file? I'll send you a copy of it. Mark
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/09/12 04:50 PM (13 years ago)
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/09/12 04:51 PM (13 years ago)
Hey Mark, Do i have to create a new keystore for each app? Because this app im working on is seperate from the last game calculator app.
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/09/12 04:52 PM (13 years ago)
it says program cant start because jli.dll is missing from your computer try reinstalling the program to fix this problem.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/09/12 04:53 PM (13 years ago)
You can...and probably should...sign all your apps with the same release keystore. You don't need a new one each time. Mark
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/09/12 04:59 PM (13 years ago)
i have my md5 fingerprint, so i got the release key, now its time for this pain in the butt debug key which i can never find lol
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/09/12 05:15 PM (13 years ago)
You can just use the release key. I've seen too many problems trying to do the maps with the debug key. But you'll need to sign the app with your release key instead. A pain, but a consistent workaround. Offline for a couple hours now. Mark
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/09/12 08:55 PM (13 years ago)
Ok, So the Map works. What did i do to make it work? nothing i dont think? I was using an emulator, and i used blue stacks app player, it didnt show up on those. Sandeep tested my apk on his android phone and it worked, showed up.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/09/12 09:08 PM (13 years ago)
Did you use the debug or release key to sign your app for testing? If release, that helps confirm my theory. Mark
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/09/12 09:08 PM (13 years ago)
release key
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
06/09/12 09:56 PM (13 years ago)
That seems to be the only way to get it to consistently work. When I want to test maps, I build the apk using my release key, and then install it to the Emulator using the "adb install app.apk" command. It has never failed to work doing it that way. Mark
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/09/12 10:58 PM (13 years ago)
yea its a great way, that debug way is way too complicated and i spent countless hours trying the debug way to test and it never worked
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/10/12 06:40 AM (13 years ago)
@ceerup, I'm glad you finally got it working, even happier I was out dancing so I didn't get dragged into your ordeal. I could say I told you so, since my Buzztouch & Google Maps says: Warning: Using the Debug key only creates problems and will PREVENT the map from working. So, DON'T USE IT! (OK, Use Debug Key as appropriate, but NOT WITH THESE INSTRUCTIONS. Glad we cleared that up.) But, I don't expect people to pay attention. So on to the next issue. Fred
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.