Menu

Error when updating or installing plug-ins

deb
2020-04-10
2020-04-10
  • deb

    deb - 2020-04-10

    Dear Berny,

    I am having problems multiple PCs to update Eclipse Portable (4.14 to
    4.15) or install / update plug-ins (using 4.14 and 4.15).
    It fails in almost all  cases with 'An error occurred while collecting
    items to be installed'.

    Digging deeper I saw that it all came down to a file exception in the
    error log:

    java.io.IOException: The system cannot find the path specified
    at java.io.WinNTFileSystem.createFileExclusively(Native Method)
    at java.io.File.createTempFile(File.java:2024)

    Eventually I found that  the directory specified in 'java.io.tmpdir'
    (c:\Users\USER\AppData\Local\Temp\EclipsePortableTemp) does not exist.
    Once I manually created the path everything worked as expected.

    However, I sometimes see directory being created at start-up and all the
    updates work as expected.

    I was wondering if anyone else is seeing the same issues? If so, a quick
    work-around would be to add 'mkdir %temp%\EclipsePortableTemp' to the
    start-up script.

    Cheers,
     Deb

     
    • Berny23

      Berny23 - 2020-04-10

      Hi deb,
      I think I just fixed it by changing the temp folder to "/Data/tmp". As long as the folder exists this should be working.
      I also checked all paths Eclipse is accessing during a plugin installation by using the Sysinternals Process Monitor. I'll test and upload the changes soon.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.