MantisBT - CMake
View Issue Details
0014449CMakeModulespublic2013-10-01 03:582016-06-10 14:31
ycollet 
Kitware Robot 
normalmajoralways
closedmoved 
Windows764 bist
CMake 2.8.11.1 
 
0014449: If there are too many files to compile, add_jar hangs
If there are too many files to compile, add_jar (from UseJava.cmake) hangs because the java command line is too long.

Here is the error message:

....
d:/MyProject/GIT/Artelys/Source_Viz/Visualization2/src/com/artelys/visualization/xml/XmlWriter.java' trop longue
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : code retour '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe"' : code retour '0x2'
Stop.
No tags attached.
Issue History
2013-10-01 03:58ycolletNew Issue
2014-02-18 16:00Graham MarkallNote Added: 0035144
2016-06-10 14:29Kitware RobotNote Added: 0042380
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0035144)
Graham Markall   
2014-02-18 16:00   
I believe this is fixed in CMake 2.8.12, which uses a response file instead of creating an overly-long command line.

Do you still have the same issue with 2.8.12?
(0042380)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.