Replies: 10 comments 1 reply
-
This sounds like a Tycho question. Note that I build the Eclipse Installer on Windows without path length limitation, though some of the paths look really long:
I don't recall enabling long paths but this does look longer than 256... And I can make even longer paths:
|
Beta Was this translation helpful? Give feedback.
-
On WIndows 10 the default path lenght is restricted: https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry The limit can be adjusted but requires admin rights. (The registry key Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled (Type: REG_DWORD) ). Are you using Windows11? |
Beta Was this translation helpful? Give feedback.
-
I'm on Windows 10; haven't updated yet I don't appear to have LongPathsEnabled enabled: |
Beta Was this translation helpful? Give feedback.
-
Not sure what is different for you, but if we try to start such a product with a reference to such a long JRE, we get "Failed to load the JNI shared library". If we shorten the path and update the ini the application starts fine. |
Beta Was this translation helpful? Give feedback.
-
It's hard to comment on "such a product". Maybe you can compare it to this product: https://download.eclipse.org/oomph/products/latest/eclipse-inst-jre-win64.zip I'm also not sure exactly which path is being shortened. Does the installer have an analogous such long path? |
Beta Was this translation helpful? Give feedback.
-
Thanks @merks for the example. This runs also for us even if we make the path much longer. We currently not sure what the difference is and are investigating now, if we find something we update the ticket. |
Beta Was this translation helpful? Give feedback.
-
Best of luck!! Note too that all the EPP packages are also using a JustJ JRE, presumably with a similarly long path... |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for looking into this @merks! I've downloaded the example ZIP file and re-tested it with a really long path name: In this case, I'm getting the below exception, when trying to start the
Interesting enough, if I set the registry key Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled to 1 and reboot, the problem still persists... However, If I shorten the path-name to something like my Execution Environment: |
Beta Was this translation helpful? Give feedback.
-
Right. In other words, we have to ask our Windows users to not use a deep installation path (because even altering the "LongPathsEnabled" registry key seems to have no effect). This is acceptable. The initial question was raised, because (for an end-user, not a developer) the error message seems to be "cryptic". At least not clear enough, i.e. it doesn't tell the user that the path is too long and it seems there is also no further logfile created that would contain more details. In such case, the end-user would just call the tool developer and complain that the executable doesn't start up. But this, eventually, may be a thing to fix in the launcher code and not necessarily in the JustJ plug-in. |
Beta Was this translation helpful? Give feedback.
-
If there are failures very early, a log might be created in the configuration folder of the installation. if the installation is read-only, there will be some type of surrogate in the ~.eclipse folder where the log will be in the configuration of that. You could also try to run with -consoleLog. I'm not sure what such an error looks like and how it's present to the user. Likely that could be improved, but if this is very early in native start up code, that's probably not easy to improve... |
Beta Was this translation helpful? Give feedback.
-
Is it possible to shorten the path of JustJ during the Tycho build?
On Windows I have a client who runs into the folder length restriction with the long JustJ folder name. Is there a standard way to instruct Tycho to shorten the folder name and use the correct reference in the eclipse.ini file?
Beta Was this translation helpful? Give feedback.
All reactions