For the moment the solution was very simple: I copied the project in the
root of a Windows drive and this shortened the classpath.
Netbeans 11 works extremly fast compared to older versions, I should of
migrated a long time ago.
Thank you Geertjan for your support, I wouldn't made it without your
help, this is my third attempt to migrate this year and I'm glad I wrote
here.



------ Original Message ------
From: "Geertjan Wielenga" <geert...@apache.org>
To: "Sterpu Victor" <vic...@caido.ro>
Cc: "NetBeans Mailing List" <users@netbeans.apache.org>
Sent: 2019-09-30 7:27:21 PM
Subject: Re: Re[10]: Apache 11.1 - build failed

Different solutions, google around a bit, seems one advice is to do a
Clean first and then a Build, read other ideas here and elsewhere:

https://stackoverflow.com/questions/10519558/createprocess-error-206-the-filename-or-extension-is-too-long-when-running-main/23299746

Gj

On Mon, Sep 30, 2019 at 6:21 PM Sterpu Victor <vic...@caido.ro.invalid>
wrote:
Yes, that helped a lot, we have an error now, but I don't understand
what is to long(I attached the full log):
E:\Users\victor\NetBeansProjects\caido-dev-java12\nbproject\build-impl.xml:1133:
The following error occurred while executing this line:
E:\Users\victor\NetBeansProjects\caido-dev-java12\nbproject\build-impl.xml:431:
Error running E:\Users\victor\jdk-11\bin\javac compiler
        at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:591)
        at
org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:63)
        at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1404)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:1133)
        at
org.netbeans.modules.java.source.ant.JavacTask.execute(JavacTask.java:120)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at jdk.internal.reflect.GeneratedMethodAccessor107.invoke(Unknown
Source)
        at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
        at org.apache.tools.ant.Task.perform(Task.java:350)
        at java.base/java.util.Vector.forEach(Vector.java:1387)
        at
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at jdk.internal.reflect.GeneratedMethodAccessor107.invoke(Unknown
Source)
        at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
        at org.apache.tools.ant.Task.perform(Task.java:350)
        at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:391)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at jdk.internal.reflect.GeneratedMethodAccessor107.invoke(Unknown
Source)
        at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
        at org.apache.tools.ant.Task.perform(Task.java:350)
        at org.apache.tools.ant.Target.execute(Target.java:449)
        at org.apache.tools.ant.Target.performTasks(Target.java:470)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1361)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at
org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:261)
        at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:574)
        at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:128)
Caused by: java.io.IOException: Cannot run program
"E:\Users\victor\jdk-11\bin\javac" (in directory
"E:\Users\victor\NetBeansProjects\caido-dev-java12"): CreateProcess
error=206, The filename or extension is too long
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
        at java.base/java.lang.Runtime.exec(Runtime.java:589)
        at
org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
        at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:424)
        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:438)
        at
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:588)
        ... 34 more
Caused by: java.io.IOException: CreateProcess error=206, The filename
or extension is too long
        at java.base/java.lang.ProcessImpl.create(Native Method)
        at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:420)
        at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:151)
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
        ... 40 more
BUILD FAILED (total time: 0 seconds)

------ Original Message ------
From: "Geertjan Wielenga" <geert...@apache.org>
To: "Sterpu Victor" <vic...@caido.ro>
Cc: "NetBeans Mailing List" <users@netbeans.apache.org>
Sent: 2019-09-30 6:56:51 PM
Subject: Re: Re[8]: Apache 11.1 - build failed

In the Options window, go to Java and then Ant and check the
verbosity Level, maybe increase the level.

Gj

On Mon, Sep 30, 2019 at 5:33 PM Sterpu Victor <vic...@caido.ro>
wrote:
That is weird because when I try to build the project from here:
http://cc123.caido.ro/caido-test2.zip
Apache Netbeans 11.1 and 11.2-beta1 gives me no missing
dependencies, just this message appears:
"ant -f E:\\Users\\victor\\NetBeansProjects\\caido-test2
-Dnb.internal.action.name=rebuild clean jar
init:
deps-clean:
Updating property file:
E:\Users\victor\NetBeansProjects\caido-test2\build\built-clean.properties
Deleting directory
E:\Users\victor\NetBeansProjects\caido-test2\build
clean:
init:
deps-jar:
Created dir: E:\Users\victor\NetBeansProjects\caido-test2\build
Updating property file:
E:\Users\victor\NetBeansProjects\caido-test2\build\built-jar.properties
Created dir:
E:\Users\victor\NetBeansProjects\caido-test2\build\classes
Created dir:
E:\Users\victor\NetBeansProjects\caido-test2\build\empty
Created dir:
E:\Users\victor\NetBeansProjects\caido-test2\build\generated-sources\ap-source-output
Compiling 1 source file to
E:\Users\victor\NetBeansProjects\caido-test2\build\classes
BUILD FAILED (total time: 0 seconds)"

It seems the problem is hard to reproduce, if I can help with other
data please tell me.
Anyway, I'll follow your advice and try to mavenize the project and
hope this will solve the problem.

Thank you.


------ Original Message ------
From: "Geertjan Wielenga" <geert...@apache.org>
To: "Sterpu Victor" <vic...@caido.ro>
Cc: "NetBeans Mailing List" <users@netbeans.apache.org>
Sent: 2019-09-30 5:21:43 PM
Subject: Re: Re[6]: Apache 11.1 - build failed

Indeed, the dependencies are not there so when I try to build,
there are many missing dependencies and the error messages shows
them and then the Output window ends with this:

50 errors
BUILD FAILED (total time: 5 seconds)

Gj

On Mon, Sep 30, 2019 at 4:12 PM Sterpu Victor <vic...@caido.ro>
wrote:
I made a minmal project with this problem, the project is here:
http://cc123.caido.ro/caido-test2.zip
The project starts to compile immediatly if I delete the folder
lib/jetty-distribution-9.3.9.v20160517, actually if I delete
almost any folder or file from the lib folder the problem
disappears.
The project should dispaly a lot of errors since I already deleted
a lot of libraries and source files but in this form it only
displays "BUILD FAILED"

Thank you.


------ Original Message ------
From: "Geertjan Wielenga" <geert...@apache.org>
To: "Sterpu Victor" <vic...@caido.ro>
Cc: "NetBeans Mailing List" <users@netbeans.apache.org>
Sent: 2019-09-30 4:46:21 PM
Subject: Re: Re[4]: Apache 11.1 - build failed

Great, though being Mavenized is not a requirement. Happy to take
a look at the original project to see what the problem is/was.

Gj

On Mon, Sep 30, 2019 at 3:44 PM Sterpu Victor <vic...@caido.ro>
wrote:
Is not on GitHub.
My original project wasn't mavenized and I think this was the
problem.
I tried to create a new maven project and copy the source files
and it seems that this was the problem, I can compile with a lot
of errors right now because I didn't linked all the libraries
yet, but I think the problem is solved. :)
Thank you.


------ Original Message ------
From: "Geertjan Wielenga" <geert...@apache.org>
To: "Sterpu Victor" <vic...@caido.ro>
Cc: users@netbeans.apache.org
Sent: 2019-09-30 3:25:15 PM
Subject: Re: Re[2]: Apache 11.1 - build failed

Is the project available somewhere, e.g., on GitHub, so we can
take a look?

Gj

On Mon, 30 Sep 2019 at 14:24, Sterpu Victor
<vic...@caido.ro.invalid> wrote:
Thank you for the quick answer.
I tried Apache Netbeans version 11.2 beta 1 but the result was
tha same.
I tried many things, all rezulting in the same error(BUILD
FAILED without any specific message):
- JDK 13 + Netbeans versions 11.2 beta 1
- JDK 12 + Netbeans versions 11.2 beta 1
- JDK 11 + Netbeans versions 11.2 beta 1
- JDK 13 + Netbeans versions 11.1
- JDK 12 + Netbeans versions 11.1
- JDK 11 + Netbeans versions 11.1

As a interesting thing: if I run the project, without
compiling it, no error appears and the project runs fine.


------ Original Message ------
From: "Geertjan Wielenga" <geert...@apache.org>
To: "Sterpu Victor" <vic...@caido.ro>
Cc: users@netbeans.apache.org
Sent: 2019-09-30 2:55:37 PM
Subject: Re: Apache 11.1 - build failed

Well, 11.1 does not support JDK 13.

Try reproduce the problem on 11.2 beta1:

bit.ly/apache-netbeans-11-2-beta-1

Gj

On Mon, 30 Sep 2019 at 13:53, Sterpu Victor
<vic...@caido.ro.invalid> wrote:
Hello

I want to migrate from a old Netbeans 8 version to Apache
Netbeans 11.1. I use JDK 13.
The project works in Netbeans 8 but when I try to compile
the project in Netbeans 11.1 I receive a build failed
without any other error messages, like this:
"ant -f E:\\Users\\victor\\NetBeansProjects\\caido-dev4
-Dnb.internal.action.name=rebuild clean jar
init:
deps-clean:
Updating property file:
E:\Users\victor\NetBeansProjects\caido-dev4\build\built-clean.properties
Deleting directory
E:\Users\victor\NetBeansProjects\caido-dev4\build
clean:
init:
deps-jar:
Created dir:
E:\Users\victor\NetBeansProjects\caido-dev4\build
Updating property file:
E:\Users\victor\NetBeansProjects\caido-dev4\build\built-jar.properties
Created dir:
E:\Users\victor\NetBeansProjects\caido-dev4\build\classes
Created dir:
E:\Users\victor\NetBeansProjects\caido-dev4\build\empty
Created dir:
E:\Users\victor\NetBeansProjects\caido-dev4\build\generated-sources\ap-source-output
Compiling 723 source files to
E:\Users\victor\NetBeansProjects\caido-dev4\build\classes
BUILD FAILED (total time: 0 seconds)"

There is no new message in the Netbeans log
file(messages.log) when I compile the project.

Thank you.

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=icon>Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=link>
<#m_-6053548144483533711_m_2204744032141618414_m_-3313742116939074804_m_6684797760685656039_m_-9127859841774417905_m_-775861939352283645_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Reply via email to