apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.64k stars 849 forks source link

unable to build Netbeans from within Netbeans #7872

Open wumpz opened 1 week ago

wumpz commented 1 week ago

Apache NetBeans version

Apache NetBeans 23

What happened

I cloned the Netbeans repository and started from within Netbeans ant build.

Then the build stops at

https://github.com/apache/netbeans/blob/01a871f055428abdf37d5b5d09999909e5825a48/java/api.debugger.jpda/build.xml#L29

this line with the message, that com/sun/jdi/AbsentInformationException.class was not found.

I tested this using JDK 17, JDK 21 but with Netbeans internal Ant. So far I did not use a separate Ant installation.

How can I tackle this problem? How to find my missconfiguration?

Language / Project Type / NetBeans Component

Netbeans itself

How to reproduce

  1. I cloned the Netbeans repository
  2. right click on build.xml and ant build.

Did this work correctly in an earlier version?

No / Don't know

Operating System

Windows 11

JDK

17, 21

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

This happens every time.

Are you willing to submit a pull request?

No

mbien commented 1 week ago

yeah the (full) build has some issues when started from within NB (the jpda module specifically too). The build instructions are in the readme. Short version is that you build it once in the console, then you open the modules you are interested in and edit/launch/debug/rebuild from there.

wumpz commented 1 week ago

So maybe at least the readme.md should reflect that ...

mbien commented 1 week ago

it does. If you follow the readme NB will build. The tip how to work with modules in NB is there too in the notes section.

wumpz commented 1 week ago

So then its my missunderstanding. Thx for the help.

mbien commented 1 week ago

the issue itself is still valid. I think we should keep it open in case someone would like to fix this.