You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Jean-Marc Borer <jm...@gmail.com> on 2026/01/19 18:14:24 UTC
Building Netbeans 27 from sources issues
Hello guys,
I need to compile NB IDE 27 from the sources to debug an issue I get while
trying to brand a maven based NB platform project. I am on a Windows PC I
now have several questions:
1) I was able to clone the repo (which is already a performance in my
context), Then opened the project nbbuild in the my NB 27 IDE. I don't use
ant usually, so I was surprised that I the options do not provide a JDK to
select for running ant. How can I set the JDK to use?
Because with Java 21 I get "Warning: Could not find resource javaresource
"com/sun/jdi/AbsentInformationException.class" to copy."
2) I could download most resource directly from the internet, but some are
blocked by our corporate proxy. As we have maven proxy that has more
rights, how can I configure ant to use that one instead of "central"
Downloading:
https://repo.maven.apache.org/maven2/org/ow2/asm/asm/9.9/asm-9.9.jar
[TestDownload] Could not download
C29635C8A7AFA03D74B33C1884DF8ABB2B3F3DCC-asm-9.9.jar
Thank you for your help.
Cheers
JM
Re: Building Netbeans 27 from sources issues
Posted by Jean-Marc Borer <jm...@gmail.com>.
Thank you all for your advice. I could finally build on my "unrestricted"
computer with JDK 21. It was not simple and got many errors at the
beginning for unknown reasons, but it eventually worked, so it is okay for
now.
Regarding the MAVEN_REPO, I still need time for that one to investigate. It
will not be easy, in fear.
BR,
JM
On Tue, Jan 20, 2026 at 10:56 AM Neil C Smith <ne...@apache.org> wrote:
> On Tue, 20 Jan 2026 at 10:34, Eric Barboni <sk...@apache.org> wrote:
> > For 2)
> > I would say you need to change the url of MAVEN_REPO in the file
> nbbuild/extlibs/DownloadBinaries.java
>
> There's a build property for that. See
> https://github.com/apache/netbeans/pull/2710
>
> Should be able to set binaries.repos, or pass on CLI eg.
> -Dbinaries.repos="https://maven.url.of.choice"
>
> Best wishes,
>
> Neil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: dev-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>
Re: Building Netbeans 27 from sources issues
Posted by Neil C Smith <ne...@apache.org>.
On Tue, 20 Jan 2026 at 10:34, Eric Barboni <sk...@apache.org> wrote:
> For 2)
> I would say you need to change the url of MAVEN_REPO in the file nbbuild/extlibs/DownloadBinaries.java
There's a build property for that. See
https://github.com/apache/netbeans/pull/2710
Should be able to set binaries.repos, or pass on CLI eg.
-Dbinaries.repos="https://maven.url.of.choice"
Best wishes,
Neil
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
RE: Building Netbeans 27 from sources issues
Posted by Eric Barboni <sk...@apache.org>.
Hi
For 1)
You need a java_home env var set to the jdk you wanna use
Type set in a command prompt to see if java_home is set or on the right version
For 2)
I would say you need to change the url of MAVEN_REPO in the file nbbuild/extlibs/DownloadBinaries.java
Best regards
Eric
-----Message d'origine-----
De : Jean-Marc Borer <jm...@gmail.com>
Envoyé : lundi 19 janvier 2026 19:14
À : dev@netbeans.apache.org
Objet : [PUB] Building Netbeans 27 from sources issues
Hello guys,
I need to compile NB IDE 27 from the sources to debug an issue I get while
trying to brand a maven based NB platform project. I am on a Windows PC I
now have several questions:
1) I was able to clone the repo (which is already a performance in my
context), Then opened the project nbbuild in the my NB 27 IDE. I don't use
ant usually, so I was surprised that I the options do not provide a JDK to
select for running ant. How can I set the JDK to use?
Because with Java 21 I get "Warning: Could not find resource javaresource
"com/sun/jdi/AbsentInformationException.class" to copy."
2) I could download most resource directly from the internet, but some are
blocked by our corporate proxy. As we have maven proxy that has more
rights, how can I configure ant to use that one instead of "central"
Downloading:
https://repo.maven.apache.org/maven2/org/ow2/asm/asm/9.9/asm-9.9.jar
[TestDownload] Could not download
C29635C8A7AFA03D74B33C1884DF8ABB2B3F3DCC-asm-9.9.jar
Thank you for your help.
Cheers
JM
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists