spring-attic / spring-ide

Spring Development Environment for Eclipse
299 stars 126 forks source link

Error 0x80010135: Path too long #330

Closed vk46 closed 5 years ago

vk46 commented 5 years ago

sts_error

vk46 commented 5 years ago

Failed to load the JNI shared library and some local path of jvm.dll file

kdvolder commented 5 years ago

Please provide some context. When does this error happen? In other words, what do we need to do to make it happen? I have used STS on Windows on occasion and never seen this problem so I don't know how to reproduce it (which also means I cannot figure out exactly why it happens, or if/how we could try to fix it).

kdvolder commented 5 years ago

Not sure what happened to this comment. I got it only in email but it seems to be in reference to this issue:

Yeah, After downloading STS from website, I tried to unzip bundle that time I have seen above error alert. And after unzip completed after couple of skips of error, I'm unable run (Open) STS application. I have see this error while running application "Failed to load the JNI shared library and some path of jvm.dll file" and it's not opening because of some issues

Okay I understand now.

I think its a limitation of Windows zip/unzip utility. THe built-in zip that comes with Windows is basically a poorly implemented unzip tool that can't deal with some of the longer pathnames in package. And so the zip file is not expanded correctly.

This problem can be avoided by using a better zip utility than the one that comes built-in with Windows. For example 7zip I beleave works fine. Or even simply using the 'jar' commandline tool that comes with Java can properly unpack the STS distribution zip without problems. I usually use jar on Windows myself because, since I already have Java installed I don't need to download anything extra. You can expand the zip using a command like this:

jar xf <path-to-zipfile>