Page 2 of 2
Re: Android - Can't create the app: Usage: java
Posted: Mon Mar 27, 2017 5:53 pm
by mgperry
mgperry wrote:
OK I tried with a Users subdirectory and I agree it works, but I tried with D:\myapp.apk and I get the Java usage error.....?
(I used Explorer to copy a file to D:\ without any problems)
Maybe I keep switching between Linux, OSX and Windows too much ?
I just tried D:myapp.apk and it works a charm
Can someone confirm is D:\filename invalid?
Re: Android - Can't create the app: Usage: java
Posted: Mon Mar 27, 2017 6:07 pm
by mgperry
I just checked here
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
C:\ and D:\ refer to Volumes, so d:\myapp.apk should be valid.....
and NOTE ""C:tmp.txt" refers to a file named "tmp.txt" in the current directory on drive C."
So it has to be D:\myapp.apk
Re: Android - Can't create the app: Usage: java
Posted: Tue Mar 28, 2017 3:31 am
by mgperry
Can someone try to recreate my problem using Create App with Output filename set to D:\myapp.apk (example to a flashdrive) ?
Re: Android - Can't create the app: Usage: java
Posted: Wed Mar 29, 2017 7:38 am
by tj1010
Confirmed. Does it on active volume(C:) here Windows 10 x64 SB 2.0. Ran as Admin to make sure it wasn't some ACL issue.
C:\app.apk
and
..\..\..\app.apk
Re: Android - Can't create the app: Usage: java
Posted: Wed Mar 29, 2017 8:09 am
by mgperry
tj1010 wrote:Confirmed. Does it on active volume(C:) here Windows 10 x64 SB 2.0. Ran as Admin to make sure it wasn't some ACL issue.
C:\app.apk
and
..\..\..\app.apk
Sincere thanks for your support

(and others), but I had thought of Security and checked ACLs and Admin etc. It made no difference for me
But at least you confirm its not an SB issue, it must be something in my environment, and I can workaround by manually moving my Apps for now, so lets consider this a User Problem at this point.

It does raise another SB issue, and that is gaining SB specific diagnostic information is difficult, an SB diag option that lists the Java and other external calls may be very useful.
Re: Android - Can't create the app: Usage: java
Posted: Wed Mar 29, 2017 3:08 pm
by tj1010
No it's an SB issue I can reproduce the problem as described.
Re: Android - Can't create the app: Usage: java
Posted: Wed Mar 29, 2017 3:18 pm
by mgperry
tj1010 wrote:No it's an SB issue I can reproduce the problem as described.
Oh! I totally misunderstood, thanks for double-confirming
