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?

Comments

  1. If you provide the actual complete error code, it would be easier to take a shot at a diagnosis.

    ReplyDelete
  2. Lars Fosdal
    [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.

    ReplyDelete
  3. Each time you update Java version you have to update SDK Java paths in Delphi.
    Go to Tools->Options->SDK Manager and select your SDK version, then choose Java tab and update paths to Java folder.

    ReplyDelete
  4. 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.

    ReplyDelete
  5. David 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?

    ReplyDelete
  6. You 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.

    ReplyDelete
  7. if you install Delphi multiple times (even the same version), it keeps adding the same path over and over..

    ReplyDelete
  8. I 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.

    ReplyDelete
  9. I 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.

    ReplyDelete
  10. That's the correct way to do it. Then you know what you are getting. Emba just don't get it.

    ReplyDelete
  11. That 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?

    ReplyDelete
  12. Just remove all Embarcadero entries from the path and what do you know, the IDE works fine.

    ReplyDelete
  13. This 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.

    ReplyDelete
  14. I don't think anybody said that your specific problem was caused by the length of the path

    ReplyDelete

Post a Comment