Hi,

Not sure if this is the correct place, but I’m having an error trying to 
compile the VisualVM source code inside of
NetBeans 12.4.

The project itself is a Netbeans platform application and it builds just fine 
from the command line outside of NetBeans.

But, I would like to compile it inside of Netbeans and run it so I can learn 
how it works by using the debugger, build plugins, etc.

There seems to be an issue with Ant or some difference between compiling on the 
raw command line vs using NetBeans “Clean and Build” option.
I can’t figure it out, the build is failing saying there is a missing class, 
however, inside of Netbeans the source file has the correct import and it sees 
it just fine.

I’m building the project with JDK8 and followed the instructions at: 
https://github.com/oracle/visualvm <https://github.com/oracle/visualvm>

I posted here because the error only happens when compiling inside of NB 
12.4..and I couldn’t find any ANT settings that might be causing the issue.
As far as I can tell the build is running the JDK8 I specified and just doing a 
“clean build” which I can successfully do from the raw command line with no
errors.

Error that I’m getting
-------------------------------
/Users/tmulle/junk/visualvm/visualvm/uisupport/src/org/graalvm/visualvm/uisupport/ProfilerTabbedPane.java:52:
 error: package sun.swing does not exist
import sun.swing.SwingUtilities2;
1 error
/Users/tmulle/junk/visualvm/visualvm/netbeans/harness/suite.xml:163: The 
following error occurred while executing this line:
/Users/tmulle/junk/visualvm/visualvm/netbeans/harness/common.xml:207: Compile 
failed; see the compiler error output for details.

Any Ideas?

Thanks,
- Tim

Reply via email to