Payara Issues in NB25 - Starting Server / Specifying JDK
Apache NetBeans version
Apache NetBeans 25
What happened
I am not able to start Payara in NetBeans 25 nor am I able to swap JDK's. See recreation steps below.
Language / Project Type / NetBeans Component
Java / Jakarta EE / Servers
How to reproduce
- Download and extract the NetBeans binary zip file.
- Modify the JDK home in the netbeans.conf to JDK 21.0.5+11 (exact version doesn't really matter).
netbeans_jdkhome="C:\Development\Java\jdk-21.0.5+11" - Execute netbeans64.exe.
- Install Plugins: Base IDE, HTML5, JavaSE, Java Web and EE, Service Registry, Tools
- Add Payara Server v6.2025.2 (Tools --> Servers)
- Window --> Services --> Servers --> Right Click --> Unable to Start Payara
- Add JDK 17 (Tools --> Java Platforms) (could also be JDK 17.x or 21.x)
- Unable to swap Java Platforms for Payara Server; DDL is disabled. (Tools --> Servers --> Java)
Did this work correctly in an earlier version?
Apache NetBeans 24
Operating System
Windows 11 Enterprise 23H2
JDK
Eclipse Adoptium OpenJDK 21.0.5+11
Apache NetBeans packaging
Apache NetBeans binary zip
Anything else
Are you willing to submit a pull request?
No
i dont know if it will help, same issue with jdk11 and payara 5. Also had 17 on netbeans. removed the 11 and worked
Any version of the JDK or Payara breaks in the bug description above. This bug was introduced with PR #8144 via e43e28ca5bd90703f21933c97b0b3efa830e121c. @jGauravGupta
I have the same problem in both NB25 and NB26. The Java version cannot be changed but differs between Payara versions. For Payara 6.2023.10 - 6.2025.4 It is static on JDK 17. For Payara 7.2025.1 Alpha 1 is static on JDK 21 . All on Windows 11 I do not have this problem in NB24.
Also getting hit with this using NB 26 and JDK 7.0.15+6, can't start payara server.
Hi everyone,
I believe I've found a "temporary" workaround for this issue. I tested this on Windows 11 with NetBeans 26 across multiple Payara versions (e.g., Payara 4.1.2.17 , Payara 5.2022.3, Payara 6 - ml-6.2025.5). It seems the root cause is that NetBeans 25 (and later versions) remove the domainsfolder setting from the Services configuration.
Workaround:
Here's how to apply it:
-
First, locate your NetBeans User Directory. You can find this by going to Help --> About in NetBeans.
-
Navigate to
config/PayaraEE6/Instanceswithin that directory and find the.nbattrsfile (this is an XML-formatted file). -
Each
<fileobject>corresponds to a Service you've configured. Identify the one you are currently using. -
Add the following line inside the relevant
<fileobject>:<attr name="domainsfolder" stringvalue="[Your Domains Folder]"/> -
Restart NetBeans for the changes to take effect.
When it occurs:
This issue seems to occur specifically after right-clicking on the affected Service and opening its Properties for editing.
I hope this helps others who are facing the same problem! Let me know if you have any questions or if this workaround works for you.
Have tested the workaround, and it works for me.
Just had to change the:
<attr name="java.platform" stringvalue="C:\Program Files\Zulu\zulu-21"/>
to point to the Java version I needed.
Thanks!