On 3/8/2020 12:12 PM, Korney Czukowski wrote:
Hi,
Is there anybody else out there who still uses Windows while working
on NetBeans? I'm asking because I've hit a notorious
'java.io.IOException: CreateProcess error=206, The filename or
extension is too long.' error while trying to build PHP Editor module,
the tests build to be more specific. It doesn't occur with a full
build and I've edited a few other modules just as well, guess they
were not large enough for this error to appear.
I use Win7, haven't run into this, but...
I just did
* cd /f/repos/netbeans/php/php.editor
* ant
Finished OK. I recall seeing something about how deep the directory...
-ernie
The command I used to build: ant -v -f php/php.editor build (or ant -v
-f php/php.editor clean build, the result is the same). Note, without
-v it just says: "common.xml:627: Error running C:\Program
Files\Java\jdk1.8.0_212\bin\javac.exe compiler" without any details
[1]. In verbose mode it shows large lists of files for '-classpath'
and '-processorpath' arguments in compilation arguments as well as the
actual exception.
I've tried to modify the build script to have it generate a jar file
with a manifest and use that in a classpath using Ant
Manifestclasspath task, but it didn't work as it's failed to generate
relative paths to all the jars in the original classpath.
It would also seem like Ant Javac task can use @argfile with the
compiler to pass long command line arguments, but apparently it
doesn't happen with Nb-javac. Is there anything I can do to enable it,
is there any other workaround, or am I out of luck?
Thanks.
[1]
https://github.com/apache/netbeans/blob/master/nbbuild/templates/common.xml#L625-L631
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists