Can't create APK

Just starting out? Need help? Post your questions and find answers here.
User avatar
kwai chang caine
Posts: 19
Joined: Tue Feb 25, 2014 8:10 am

Can't create APK

Post by kwai chang caine »

Hello FRED

During all this time, (A full week of try), i not dare to disturb you, because i say to me, it's surely my fault :roll:
But now, i believe i have used all the possibility

Today, because KCC never abandon, i have try the BETA 5 with a new notebook W10 X64 without proxy
The download, working good, and all are done

And after, i have try with a barebone W7 X64 without proxy
Installing with setup JDK and installing with setup B5 and B6
The BETA 5 and BETA 6 have the same behavior

I have this error
Can't create the app: Syntaxe : java [-options] class [args...].
Can you adding a LOG or other tool for follow the compilation step by step and see why i have a problem on this W7 machine ?
Or a tool for simply testing JDK ???
Or perhaps you know already why i have this problem

Have a good day
User avatar
ts-soft
Posts: 9
Joined: Wed Feb 26, 2014 2:00 pm
Location: Berlin - Germany

Re: Can't create APK

Post by ts-soft »

You have to install the 32-Bit JDK for windows: http://www.oracle.com/technetwork/java/ ... 33151.html
jdk-8u112-windows-i586.exe

Than in the Preferences/Compiler/JDK 1.8+ path: C:\Program Files (x86)\Java\jdk1.8.0_112\
PureBasic 5.73 LTS | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
kwai chang caine
Posts: 19
Joined: Tue Feb 25, 2014 8:10 am

Re: Can't create APK

Post by kwai chang caine »

Hello TsSoft
Happy to read you on this forum 8-)

Unfortunately i have already do that :|

My PC is a W7 PRO SP1 X64

I have download JDK "jdk-8u112-windows-x64.exe" and install it with default option
I have download SB Beta 6 and install it with default option
I have writing the path "C:\Program Files\Java\jdk1.8.0_112\" in compiler option

In create APP panel
App name = First Application
Package ID = com.falsam.firstapplication
Output Filename = simplewindow.apk

And i have the error :|
Can't create the app: Syntaxe : java [-options] class [args...].
User avatar
ts-soft
Posts: 9
Joined: Wed Feb 26, 2014 2:00 pm
Location: Berlin - Germany

Re: Can't create APK

Post by ts-soft »

ts-soft wrote:You have to install the 32-Bit JDK for windows
PureBasic 5.73 LTS | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Fred
Site Admin
Posts: 1820
Joined: Mon Feb 24, 2014 10:51 am

Re: Can't create APK

Post by Fred »

You can either turn off 'Optimize javascript' in compiler option, or put the JDK\bin in your path
User avatar
kwai chang caine
Posts: 19
Joined: Tue Feb 25, 2014 8:10 am

Re: Can't create APK

Post by kwai chang caine »

TsSoft wrote:You have to install the 32-Bit JDK for windows
The first time it's this one i have installed and not working
So after like i search all solution possible i wondering perhaps it's the X64 needed and not better
Fred wrote:You can either turn off 'Optimize javascript' in compiler option, or put the JDK\bin in your path
In fact by default the 'Optimize javascript' in compiler option is already disabled and i have writing the path "C:\Program Files (x86)\Java\jdk1.8.0_122\bin\" like you say to me, and i have the message "invalid specified JDK, directory must be full JDK not JRE"

So after all this try, i have again installed the X86 JDK and not remove the X64 JDK
And never you believe what it's happened.....that's works ...
I not understand, i have try to install several time the JDK and SB and never that's works

For try to recreate the problem, i have remove the JDK X64, reboot machine, and that's always works
All remove SB et JDK x86 and reinstall and that's works...
In fact that's works everytime now, then i'm sure something have changed on this machine but i don't know what ....

Perhaps a day i have the explication...
Now SB works on my XP (missed the network), W10 (Works the first time), and W7 (I don't know why)...i hope that continue ;-)

Thanks at you too for your precious help

Have a good day
Fred
Site Admin
Posts: 1820
Joined: Mon Feb 24, 2014 10:51 am

Re: Can't create APK

Post by Fred »

So 32bit JDK made the difference ? I though it wouldn't but if it works, great !
User avatar
kwai chang caine
Posts: 19
Joined: Tue Feb 25, 2014 8:10 am

Re: Can't create APK

Post by kwai chang caine »

In fact i don't know what is the real reason.
It's like, if the X64 help the X86 to works :shock:

Because at the begining, when that never works i always use X86.
It's only after have install the X64, that i always works, even if i remove the X64...it's incomprehensible..

Or perhaps a network configuration ??? because in the same time i have create a DMZ and NAT/PAT rule for use a Wake on line function.
It's sure, the better thing, it's you all do for need network for make the compilation.
For update, it's normal, but it's annoying if SB need always the network, because everybody not have always a good network for several reasons (Proxy, countryside, not close network, etc...)

If you can give more information during the compilation, even in number error like microsoft (Ex = Error X14525) , if you don't whant give all the secret of the SB compilation ;) , we know better what is exactely the problem 8-)

Surely i have the answer a day, because you know me, for use software like the creator have never thinking to use it...i'm the king :mrgreen:
So thanks for take the time to answer me and have a good day 8-)
Post Reply