Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-1803

Classpath to long on windows running james with run.bat

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 3.0-beta4
    • 3.0.0-beta5
    • Deployment Modules
    • Windows 10 Professional

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bwaibel Bernd Waibel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: