Best to provide complete step by step instructions for someone to reproduce the problem so they can help you.
Gj On Sun, 12 Sep 2021 at 01:17, Tim Mullé <tmu...@gmail.com> wrote: > Hi, > > I’ve sent an email previously about this and just wondering if there are > any suggestions when running 12.4 > > I have an existing project (VisualVM) I downloaded from GitHub and am > trying to build the project in 12.4. > > It is an Ant project, and I am running my 12.4 IDE with JDK11. > > VisualVM doesn’t build with JDK11 with the following error: > > "visualvm/visualvm/uisupport/src/org/graalvm/visualvm/uisupport/ProfilerTabbedPane.java:52: > error: package sun.swing does not exist > import sun.swing.SwingUtilities2;” > > I know the instructions say to build via the command line, however, I want > to build and run VisualVM within NetBeans 12.4 so I can debug > the application and use the tools to learn how the application is built. > > I tried setting the Project JDK to JDK1.8 but when I use the “Build” > option on the project it still uses the JDK (11) that NetBeans is running > on. > > I found this ticket from years ago saying at first it was invalid but then > it looked like there was a workaround..but nothing since. > > It is confusing that we can pick the JDK for the project properties and it > isn’t honored during the build or run phases. > > https://bz.apache.org/netbeans/show_bug.cgi?id=151078 > > Any ideas how I can specify the JDK for Ant projects without having to > change the JDK that I run NetBeans itself on? > > Thanks, > - Tim > >