CreateProcess failed:The system cannot find the path specified
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
CreateProcess failed:The system cannot find the path specified
Hi,
A bit frustrated. Got a new laptop and installed Livecode, but been struggling to get it to work to build a standalone Android App
Current setup:
Windows 10 x64
LiveCode Community 9.0.3
Java 8 build 1.8.0_201-b09
Android Studio 3.3.2
Livecode Mobile Support for Android SDK and Java SDK is configured
Almost have all the APIs in Android Studio installed.
Error:
When creation standalone application I get the following error:
"There was an error while saving the standalone application- could not encode class bundle"
Could not resolve the issue
So did the following to get more information about the error:
1. Type in the msg box "edit the script of stack revsaveasandroidstandalone"
2. In the script editor window that just opened, search for "Could not encode class bundle"
3. Add "answer the result" just before the "Could not encode class bundle" line.
4. Click apply to (temporarily) save this change
5. Build an android standalone
Then got the error:
"CreateProcess failed:The system cannot find the path specified"
Not sure what to do next, and not sure what path is missing, as I created and "empty" test app, with only one button, to test with.
Help appreciated.
Regards
Marra
A bit frustrated. Got a new laptop and installed Livecode, but been struggling to get it to work to build a standalone Android App
Current setup:
Windows 10 x64
LiveCode Community 9.0.3
Java 8 build 1.8.0_201-b09
Android Studio 3.3.2
Livecode Mobile Support for Android SDK and Java SDK is configured
Almost have all the APIs in Android Studio installed.
Error:
When creation standalone application I get the following error:
"There was an error while saving the standalone application- could not encode class bundle"
Could not resolve the issue
So did the following to get more information about the error:
1. Type in the msg box "edit the script of stack revsaveasandroidstandalone"
2. In the script editor window that just opened, search for "Could not encode class bundle"
3. Add "answer the result" just before the "Could not encode class bundle" line.
4. Click apply to (temporarily) save this change
5. Build an android standalone
Then got the error:
"CreateProcess failed:The system cannot find the path specified"
Not sure what to do next, and not sure what path is missing, as I created and "empty" test app, with only one button, to test with.
Help appreciated.
Regards
Marra
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: CreateProcess failed:The system cannot find the path specified
Hi Marra,
Not sure that help but if you have a closestack message you maybe need using this:
Best regards
Jean-Marc
Not sure that help but if you have a closestack message you maybe need using this:
Code: Select all
on closeStack
if there is a stack "revStandaloneProgress" then
if the mode of stack "revStandaloneProgress" > 0 then
exit closeStack
end if
else
pass closeStack
end if
end closeStack
Jean-Marc
https://alternatic.ch
Re: CreateProcess failed:The system cannot find the path specified
Hi Jean-Marc,
Thank you for responding, but unfortunately this did not help. Exact same error
Regards
Marra
Thank you for responding, but unfortunately this did not help. Exact same error
Regards
Marra
-
- VIP Livecode Opensource Backer
- Posts: 7228
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: CreateProcess failed:The system cannot find the path specified
Did you also install the latest Build Tools? Those are required.
If you search the forums here for "could not encode class bundle" you'll find more info as well.
If you search the forums here for "could not encode class bundle" you'll find more info as well.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: CreateProcess failed:The system cannot find the path specified
Hi Jacque,
Thank you but have those covered
I will go through the forum topics again, just incase I missed something.
Regards
Marius
Thank you but have those covered
I will go through the forum topics again, just incase I missed something.
Regards
Marius
-
- VIP Livecode Opensource Backer
- Posts: 7228
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: CreateProcess failed:The system cannot find the path specified
What is the JDK path in standalone settings? Is it the same as the one you installed?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: CreateProcess failed:The system cannot find the path specified
Hi Jacque,
I can confirm that it is the same I also reinstalled java just to make sure that all is good. And did a "Reset All Preferences to Defaults" and restarted LiveCode. Setting the location again for Android SDK root, updated the JDK again, which I confirmed is correct.
Regards
Marra
I can confirm that it is the same I also reinstalled java just to make sure that all is good. And did a "Reset All Preferences to Defaults" and restarted LiveCode. Setting the location again for Android SDK root, updated the JDK again, which I confirmed is correct.
Regards
Marra
-
- VIP Livecode Opensource Backer
- Posts: 7228
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: CreateProcess failed:The system cannot find the path specified
If you have more than one copy of Java installed, LC or the OS may be using the wrong one regardless of the standalone settings. Someone else had the same problem and resolved it by deleting all other copies of Java.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: CreateProcess failed:The system cannot find the path specified
Hi Jacque,
I uninstalled all previous updates and complete removed Java and install only one version of JDK. Unfortunately the same error.
Maybe a complete clean-up of everything is needed.
Regards
Marra
I uninstalled all previous updates and complete removed Java and install only one version of JDK. Unfortunately the same error.
Maybe a complete clean-up of everything is needed.
Regards
Marra
-
- VIP Livecode Opensource Backer
- Posts: 7228
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: CreateProcess failed:The system cannot find the path specified
I'm running out of ideas. Could you post a screenshot of the standalone settings Android pane? Maybe I'll see something there.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: CreateProcess failed:The system cannot find the path specified
Hi jacque,
Thank you for your support up to now. I will refresh everything, form scratch and then post the configuration back here once done.
Regards
Marra
Thank you for your support up to now. I will refresh everything, form scratch and then post the configuration back here once done.
Regards
Marra
Re: CreateProcess failed:The system cannot find the path specified
Hi,
So uninstalled all, re-installed and updated settings. Same problem.
Here is the standalone Android settings pane. Regards
Marra
So uninstalled all, re-installed and updated settings. Same problem.
Here is the standalone Android settings pane. Regards
Marra
-
- VIP Livecode Opensource Backer
- Posts: 7228
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: CreateProcess failed:The system cannot find the path specified
The standalone settings look fine. I wonder if the Java version is the cause, this link seems to indicate that Java is the problem:
https://livecode.com/how-to-deploy-apps ... d-devices/
It may be that other Java versions you may have installed aren't completely deleted?
https://livecode.com/how-to-deploy-apps ... d-devices/
It may be that other Java versions you may have installed aren't completely deleted?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: CreateProcess failed:The system cannot find the path specified
Hi,
LC9 doesn't need the SDK platforms for Android 2.1/ API 7 anymore? Or was it the 2.2/ API 8?
I don't remember exactly why, only that checking both these (besides the required 4.0.3/ API 15 & the real target one) saved my mental sanity some years ago ;-)
Maybe it's worth a try - good luck!
Have fun!
LC9 doesn't need the SDK platforms for Android 2.1/ API 7 anymore? Or was it the 2.2/ API 8?
I don't remember exactly why, only that checking both these (besides the required 4.0.3/ API 15 & the real target one) saved my mental sanity some years ago ;-)
Maybe it's worth a try - good luck!
Have fun!
All code published by me here was created with Community Editions of LC (thus is GPLv3).
If you use it in closed source projects, or for the Apple AppStore, or with XCode
you'll violate some license terms - read your relevant EULAs & Licenses!
If you use it in closed source projects, or for the Apple AppStore, or with XCode
you'll violate some license terms - read your relevant EULAs & Licenses!
-
- VIP Livecode Opensource Backer
- Posts: 7228
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: CreateProcess failed:The system cannot find the path specified
LC says that 2.2 isn't needed any more but like you, I still have it installed from years ago. They've updated the lessons to say you only need 4.0.3, but I guess it wouldn't hurt to install it.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com