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.
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.