james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <server-...@james.apache.org>
Subject [jira] [Commented] (JAMES-1803) Classpath to long on windows running james with run.bat
Date Tue, 19 Jul 2016 09:49:20 GMT

    [ https://issues.apache.org/jira/browse/JAMES-1803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15383872#comment-15383872
] 

ASF GitHub Bot commented on JAMES-1803:
---------------------------------------

GitHub user berndwaibel opened a pull request:

    https://github.com/apache/james-project/pull/44

    JAMES-1803 Classpath to long on windows running james with run.bat

    Fixed running James3 on Windows, with classpath to long.
    https://issues.apache.org/jira/browse/JAMES-1803
    
    Use a new version (v1.10) of appassembler-maven-plugin.
    Set maven options in pom.xml to use classpath=* instead listing all jar files.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/intarsys/james-project JAMES-1803

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/james-project/pull/44.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #44
    
----
commit 1f8e7715c8754cd4cef278de3f3ff3db26cd6e4e
Author: bwa <bwaibel@intarsys.de>
Date:   2016-07-19T09:39:19Z

    JAMES-1803 Classpath to long on windows running james with run.bat

----


> Classpath to long on windows running james with run.bat
> -------------------------------------------------------
>
>                 Key: JAMES-1803
>                 URL: https://issues.apache.org/jira/browse/JAMES-1803
>             Project: James Server
>          Issue Type: Bug
>          Components: Deployment Modules
>    Affects Versions: 3.0-beta4
>         Environment: Windows 10 Professional
>            Reporter: Bernd Waibel
>            Priority: Blocker
>              Labels: maven, windows
>             Fix For: 3.0.0-beta5
>
>
> Running James3 with run.bat on windows will fail, cause the classpath may be to long.

> The run.bat is created with a CLASSPATH=... which has more than 8192 characters (currently
about 10.000 when beta5-SNAPSHOT is used). These are too much characters for Windows cmd.exe
(currently running on windows 10), cause the limit is 8192 characters.
> When running "run.bat" you will get a message "command line too long".
> This may get better, as soon as the "SNAPSHOT" Tag is removed from the .jar files. But
this will occur again, if there are more other libs and projects.
> A solution would be:
> Use the feature of java.exe, which is acception a "*" as classpath, since Java6.
> So I would recommend to use:
> set CLASSPATH="%BASEDIR%"\conf;"%REPO%"\*;
> instead, and not to generate the CLASSPATH.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message