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

Roy Damman edited comment on NETBEANS-4988 at 11/4/20, 3:55 PM:
----------------------------------------------------------------

The problem is solved by adding the missing plugin from the -closed- source 
Third Party Libraries in Netbeans:
 * The nb-javac Java Editing support library version 2.0
 * -The nb-javac Java Editing support library-
 * -nb-javac API-
 * -nb-javac Impl-

More on the old version of the old nb-javac plugin: [What's "nb-javac" in 
Apache NetBeans?|https://blogs.apache.org/netbeans/entry/what-s-nb-javac-in]

-Problem is than that you use a integrated patched JDK9 java compiler when 
using these plugins. And not the java compiler of the JDK you have installed on 
your computer. The problem is probably caused by the way Apache Netbeans uses 
the javac of the installed JDK.-


was (Author: ookaanwezig):
The problem is "solved" by adding missing plugins from the closed source 
Netbeans:
 * The nb-javac Java Editing support library
 * nb-javac API
 * nb-javac Impl

More on this: [What's "nb-javac" in Apache 
NetBeans?|https://blogs.apache.org/netbeans/entry/what-s-nb-javac-in]

Problem is than that you use a integrated patched JDK9 java compiler when using 
these plugins. And not the java compiler of the JDK you have installed on your 
computer. The problem is probably caused by the way Apache Netbeans uses the 
javac of the installed JDK.

> Ant java web application in Netbeans 10 and later won't debug
> -------------------------------------------------------------
>
>                 Key: NETBEANS-4988
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4988
>             Project: NetBeans
>          Issue Type: Bug
>          Components: debugger - Ant, serverplugins - Tomcat
>    Affects Versions: 10.0, 11.3
>         Environment: Windows 10 pro, OpenJDK11, Tomcat 9, Netbeans 10, 
> Netbeans 11.3
>            Reporter: Roy Damman
>            Priority: Major
>              Labels: ANT, Tomcat, classfile, debugger, java
>
> I have a Wicket java webapplication Ant project created in Netbeans 7.x. In 
> the past the project has moved to Netbeans 8.2 and 9.0. I use currently the 
> OpenJDK11. I can still build, run and debug the project in Netbeans 9. But in 
> Netbeans 10 and later (11.3), the project won't run in Tomcat 9. I have 
> searched for the cause and found out that the class files are changed or 
> deleted on the first attempt to run or debug after a *clean and build*. All 
> the innerclasses and anonymous classes (*$*.class) files in the projects 
> *build directory* are deleted. Also the normal other class files were 
> shrunked in size. After a *clean and build* command there is also a *war* 
> file created in the *dist* directory. When I restore the class files in the 
> *war* file to the *build* directory suddenly the project will run. In 
> Netbeans 9 everything works normally with the same project and Ant file. Also 
> the Tomcat installation and JDK is the same. Later I found out that the 
> problem depends on the project settings. When settings 
> _Project->Build->Compiling->Compile-on-Save_ and 
> _Project->Run->Deploy-on-Save_ are switched off, you can debug the project 
> with Tomcat and the problem doesn't occur. But then you don't have that 
> options. I haven't checked if this a sole Ant problem or that Maven projects 
> also are affected.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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

Reply via email to