Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install 5.2.0 on Windows 10 professional #3276

Open
donzelch opened this issue Mar 5, 2020 · 8 comments
Open

Unable to install 5.2.0 on Windows 10 professional #3276

donzelch opened this issue Mar 5, 2020 · 8 comments
Assignees
Labels
awaiting-response requires additional information from submitter windows issues specific to windows
Milestone

Comments

@donzelch
Copy link

donzelch commented Mar 5, 2020

Launcher fails launching because a path or the command itself is too long.

Tried alternative installations : unable anyway to initialize any database.

@triage-new-issues triage-new-issues bot added the triage issue needs to be investigated label Mar 5, 2020
@adamretter adamretter added this to the eXist-5.2.1 milestone Mar 9, 2020
@adamretter
Copy link
Contributor

Can you give us some more detail? e.g. the paths involved and any relevant error messages/logs?

@adamretter adamretter added the windows issues specific to windows label Mar 9, 2020
@triage-new-issues triage-new-issues bot removed the triage issue needs to be investigated label Mar 9, 2020
@donzelch
Copy link
Author

donzelch commented Mar 9, 2020

The following line, on Windows 10 doesn't work if the BASEDIR path is longer than 15 characters.

%JAVACMD% %JAVA_OPTS% -Xms128m -Dfile.encoding=UTF-8 -Dlog4j.configurationFile="%BASEDIR%"/etc/log4j2.xml -Dexist.home="%BASEDIR%" -Dexist.configurationFile="%BASEDIR%"/etc/conf.xml -Djetty.home="%BASEDIR%" -Dexist.jetty.config="%BASEDIR%"/etc/jetty/standard.enabled-jetty-configs -classpath %CLASSPATH% -Dapp.name="launcher" -Dapp.repo="%REPO%" -Dapp.home="%BASEDIR%" -Dbasedir="%BASEDIR%" org.codehaus.mojo.appassembler.booter.AppassemblerBooter %CMD_LINE_ARGS%

This is probably due to the length of the path in some jar file. I solved it by copying the installation folder into the root folder.

@adamretter
Copy link
Contributor

@donzelch Did your BASEDIR path previously have spaces in it?

@donzelch
Copy link
Author

donzelch commented Mar 9, 2020

No. It was G:\Extrasoft\existdb_5.2.0. After initializing the platform, I moved it to the original place and everything is working fine. I had previously activated the "long file names" option of Windows 10 because I know that long path into jar files often create problems when copying Eclipse based RCP applications. On Windows 7, using 7zip for moving a RCP application from one disk to another was quite mandatory.

So may be, the problem is just with the length of the command itself. I haven't tried, for example, to rename the "launcher.bat" into "cmd.bat". Sometime Microsoft is keeping old interfaces for compatibility reasons.

@adamretter
Copy link
Contributor

@donzelch not quite sure what we can do here. Windows does have a limitation on the command line length when executing from cmd.exe. For that exact reason we previously had to adopt AppassemblerBooter, so that it would load the classpath dynamically for us rather than it becoming very long.

@adamretter
Copy link
Contributor

adamretter commented Mar 10, 2020

@donzelch Do you think that providing PowerShell alternatives to the .bat files would solve this problem?

@adamretter adamretter added the awaiting-response requires additional information from submitter label Mar 11, 2020
@adamretter
Copy link
Contributor

See mojohaus/appassembler#70

@peta
Copy link

peta commented Jul 20, 2021

Negative, I wrote a PowerShell script using Start-Process to invoke the javaw command line (quite long due to class paths), but did not work either. Then just moved the existdb folder up to C:\existdb, no elegant solution but works.

@adamretter adamretter modified the milestones: eXist-6.0.0, eXist-7.0.0 Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-response requires additional information from submitter windows issues specific to windows
Projects
None yet
Development

No branches or pull requests

4 participants