Hello devs!
Hello devs!
Some time ago I created an Android application in RAD studio.
Everything was fine (build & running)
But today I opened the source code again, and Delphi could not build it due to a "wrong PATH". So I noticed that Java version of Windows was different from the one that the project had.
Unfortunately I could not find if there is a specific path for the enviaromental variables that the application uses except from the system's one. So I transfered all my control to a new app an problem solved.
But what if there is an automated update for Java? Do I have to transfer my project all over again?
Some time ago I created an Android application in RAD studio.
Everything was fine (build & running)
But today I opened the source code again, and Delphi could not build it due to a "wrong PATH". So I noticed that Java version of Windows was different from the one that the project had.
Unfortunately I could not find if there is a specific path for the enviaromental variables that the application uses except from the system's one. So I transfered all my control to a new app an problem solved.
But what if there is an automated update for Java? Do I have to transfer my project all over again?
If you provide the actual complete error code, it would be easier to take a shot at a diagnosis.
ReplyDeleteLars Fosdal
ReplyDelete[Exec Error] The command "PATH C:\Program Files\Java\jdk1.8.0_144\bin;C:\Users\Public\Documents\Embarcadero\InterBase\redist\InterBaseXE7\IDE_spoof;C:\Program Files\Java\jre1.8.0_144;C:\Users\Public\Documents\Embarcadero\Studio\18.0\CatalogRepository;C:\Users\Public\Documents\Embarcadero\Studio\18.0\Bpl\Android;C:\Users\Public\Documents\Embarcadero\Studio\18.0\CatalogRepository\AndroidSDK-2433_18.0.25048.9432;C:\Program Files (x86)\Embarcadero\Studio\18.0\bin;C:\Users\Public\Documents\Embarcadero\Studio\18.0\Bpl;C:\Program Files (x86)\Embarcadero\Studio\18.0\bin64;C:\Users\Public\Documents\Embarcadero\Studio\18.0\Bpl\Win64;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Users\user\Documents\RAD Studio\8.0\Bpl;C:\Program Files (x86)\Embarcadero\RAD Studio\8.0\bin;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\CollabNet\Subversion Client;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Common Files\Autodesk Shared\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Tcl\bin;C:\Users\Public\Documents\RAD Studio\8.0\Bpl;C:\Users\user\AppData\Local\Microsoft\WindowsApps; & "C:\Users\Public\Documents\Embarcadero\Studio\18.0\CatalogRepository\AndroidSDK-2433_18.0.25048.9432\build-tools\22.0.1\dx.bat" --dex --output="C:\Users\user\Desktop\BUILDINGmODELLER\SeismoSignal_with_FMX\seismoapps\SeismoSignal_ANDROID\Android\Debug\lib_fileexplorer-dexed.jar" "C:\Users\user\Desktop\BUILDINGmODELLER\SeismoSignal_with_FMX\seismoapps\FileExplorer2\lib_fileexplorer.jar"" exited with code 1.
Each time you update Java version you have to update SDK Java paths in Delphi.
ReplyDeleteGo to Tools->Options->SDK Manager and select your SDK version, then choose Java tab and update paths to Java folder.
Ask yourself why you have such an immense path variable? In an ideal world it's close to empty. You are just setting yourself up for a fall.
ReplyDeleteDavid Heffernan Sorry but I can not follow you. Path is updated by itself from the system's one. I did not edit anything. So what is your answer?
ReplyDeleteYou kept installing program after program (RAD Studio is a particular offender) that added more and more to your path. Personally I remove almost everything from my path variable.
ReplyDeleteif you install Delphi multiple times (even the same version), it keeps adding the same path over and over..
ReplyDeleteI have nothing at all related to Emba in my path. Every time I install anything from Emba I have to remove all the crap their installer adds. Does VS do anything similar? No. But its developers are much more competent.
ReplyDeleteI guess you could remove the paths put in there by the installer? I guess you only need them if you were doing command line builds. Even then you could put absolute paths in your scripts.
ReplyDeleteThat's the correct way to do it. Then you know what you are getting. Emba just don't get it.
ReplyDeleteThat is so annoying! I have already lost 2 days of my work due to this java update. Thank you all for your answers. I have though one last question. This change affects only the android platform?
ReplyDeleteJust remove all Embarcadero entries from the path and what do you know, the IDE works fine.
ReplyDeleteThis solution about clearing up my path at Embarcadero's settings didnt work for me. The only thing that worked was to uninstall everything related with android SDK and NDK (in the registry too) and java, and install the new versions again.
ReplyDeleteI don't think anybody said that your specific problem was caused by the length of the path
ReplyDelete