You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "mitkola (via GitHub)" <gi...@apache.org> on 2025/06/23 09:25:57 UTC
[I] UNC paths are not supported. Defaulting to Windows directory [netbeans]
mitkola opened a new issue, #8611:
URL: https://github.com/apache/netbeans/issues/8611
### Apache NetBeans version
Apache NetBeans 26
### What happened
After upgrading from Netbeans 24 to Netbeans 26 my Maven project located on
mapped network drive stopped to build.
The reason is that network mapped drive is always referred by UNC Path.
As result starting build of project reports
"UNC paths are not supported. Defaulting to Windows directory."
After trying to change directory to UNC path instead of mapped drive path.
cd \\server\path to project
instead of
X:\path to project
I have tried different options to disable UNC path converting as -J-Duse.unc.paths=false -J-Duse.mapped.drives=true
but without success.
### Language / Project Type / NetBeans Component
_No response_
### How to reproduce
1. The problem exists in Windows 11 environment.
2. Create Simple Maven project on SMB (Windows share) mapped network drive x:\path\to\project.
3. Save project and exit from Netbeans.
4. Start netbeans again. After reopen project, the path is converted to UNC \\server\path\to\project.
5. The project can't be build.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Windows 11
### JDK
JDK 24
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
_No response_
### Are you willing to submit a pull request?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] UNC paths are not supported. Defaulting to Windows directory [netbeans]
Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on issue #8611:
URL: https://github.com/apache/netbeans/issues/8611#issuecomment-2996718130
Thanks for the confirmation it's working for you.
We should keep an eye on that bug, and also that it reports that "this behavior can be avoided by using the more modern Path.toRealPath instead of File.getCanonicalPath -- which does not expand to UNC paths" should it remain and we need to find a workaround instead.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] UNC paths are not supported. Defaulting to Windows directory [netbeans]
Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #8611:
URL: https://github.com/apache/netbeans/issues/8611#issuecomment-2996365493
"unc paths are not supported" wondering where that message is coming from. That string is not in the NB repo.
found something similar though: https://github.com/apache/netbeans/blob/68e420dcd08d0e1a3bb7fc1687dd0722881e9422/java/maven/src/org/netbeans/modules/maven/newproject/BasicPanelVisual.java#L120
which might indicate that this was never supported
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] UNC paths are not supported. Defaulting to Windows directory [netbeans]
Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #8611:
URL: https://github.com/apache/netbeans/issues/8611#issuecomment-2996625717
that JDK bug would affect JDK 24 which is used in the netbeans windows bundle and is therefore used for everything by default.
You could try to download latest JDK 21, then change the project properties to switch to it.
If it still happens, try starting NB itself on JDK 21. For that, change the netbeans shortcut by editing the path behind `-jdkhome` and let it point to th.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] UNC paths are not supported. Defaulting to Windows directory [netbeans]
Posted by "mitkola (via GitHub)" <gi...@apache.org>.
mitkola commented on issue #8611:
URL: https://github.com/apache/netbeans/issues/8611#issuecomment-2996208219
I can successfully to compile from command-line, but not in IDE.
I will try to explain in short descriptive way.
I'm opening project from mapped drive, but after open mapped drive is transformed to UNC path.


When start build the following result is in Output window.

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] UNC paths are not supported. Defaulting to Windows directory [netbeans]
Posted by "homberghp (via GitHub)" <gi...@apache.org>.
homberghp commented on issue #8611:
URL: https://github.com/apache/netbeans/issues/8611#issuecomment-2996605996
A 'quick' fix for the reporters might be to use JDK 21, which is the current LTS, so that might be satisfactory, and usable as a workaround.
@PeppoDX, @mitkola.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] UNC paths are not supported. Defaulting to Windows directory [netbeans]
Posted by "homberghp (via GitHub)" <gi...@apache.org>.
homberghp commented on issue #8611:
URL: https://github.com/apache/netbeans/issues/8611#issuecomment-2996163210
For a stack overflow search it looks as if the message is generated by Windows itself or the command line processor (cmd) .
Look at https://stackoverflow.com/questions/56257565/unc-paths-are-not-supported/56258149
Also prepping in the netbeans sources or in my maven does not produce a file with the text 'UNC paths are not supported'.
That leaves the point that the project appears to be modified, as you say, after closing and re-opening it. So there might still be something going on in NetBeans.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] UNC paths are not supported. Defaulting to Windows directory [netbeans]
Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on issue #8611:
URL: https://github.com/apache/netbeans/issues/8611#issuecomment-2996490177
There's also a recent unanswered discussion post that relates to this at #8498
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] UNC paths are not supported. Defaulting to Windows directory [netbeans]
Posted by "ExE-Boss (via GitHub)" <gi...@apache.org>.
ExE-Boss commented on issue #8611:
URL: https://github.com/apache/netbeans/issues/8611#issuecomment-5190876304
The build issue is caused by running a command which launches `cmd` somewhere in the build process (likely from a batch script, such as `mvn.bat`)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] UNC paths are not supported. Defaulting to Windows directory [netbeans]
Posted by "homberghp (via GitHub)" <gi...@apache.org>.
homberghp commented on issue #8611:
URL: https://github.com/apache/netbeans/issues/8611#issuecomment-2996092053
Could you elaborate on the following:
* Is the UNC `\server\path\to\project` or `\\server\path\to\project`, in particular the number of **back-slash** (\\) characters at the beginning.
* Is it possible to start maven on the command line on your machine. If so, open the directory of the project (both in the drive mapped and the server mapped version) and try `mvn validate` followed by `mvn compile` and report on the results.
The way NetBeans uses maven is by building a command line from the properties and location of several parts, such as maven itself, the location of your configured JDK and the working directory. You can find that command line in the output window, at the top, directly after you started the maven command (in NetBeans). Something like
```shell
cd /home/hom/jristretto/recordswithbenefits; JAVA_HOME=/usr/lib/jvm/jdk-21.0.7+6 M2_HOME=/usr/share/apache-maven-3.9.9 /usr/share/apache-maven-3.9.9/bin/mvn test```
Note that I am on a Linux machine, but the concept is similar.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] UNC paths are not supported. Defaulting to Windows directory [netbeans]
Posted by "Thiwico (via GitHub)" <gi...@apache.org>.
Thiwico commented on issue #8611:
URL: https://github.com/apache/netbeans/issues/8611#issuecomment-3317935090
Hi,
I changed NetBeans IDE 26 to JDK 21, and the error persists.
<img width="1913" height="889" alt="Image" src="https://github.com/user-attachments/assets/cdbca778-9955-4279-b0c8-f979b104beb3" />
<img width="905" height="628" alt="Image" src="https://github.com/user-attachments/assets/7495a98a-489c-4751-bfba-26e26438b783" />
I even adjusted the conf so that NetBeans should use jdk21 by default.
<img width="491" height="218" alt="Image" src="https://github.com/user-attachments/assets/ee1c4ce5-070c-446c-a821-f01562eee793" />
Do you have any tips on what else I can do?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] UNC paths are not supported. Defaulting to Windows directory [netbeans]
Posted by "mitkola (via GitHub)" <gi...@apache.org>.
mitkola commented on issue #8611:
URL: https://github.com/apache/netbeans/issues/8611#issuecomment-2996677711
> A 'quick' fix for the reporters might be to use JDK 21, which is the current LTS, so that might be satisfactory, and usable as a workaround. [@PeppoDX](https://github.com/PeppoDX), [@mitkola](https://github.com/mitkola).
I've changed Netbeans to use JDK 21 and problem was fixed.
Thank you!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] UNC paths are not supported. Defaulting to Windows directory [netbeans]
Posted by "neilcsmith-net (via GitHub)" <gi...@apache.org>.
neilcsmith-net commented on issue #8611:
URL: https://github.com/apache/netbeans/issues/8611#issuecomment-2996559769
This might be https://bugs.openjdk.org/browse/JDK-8355342 ??
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists