How best to add UNC file paths to a Java Classpath

爱⌒轻易说出口 提交于 2019-12-11 17:39:32

问题


Using Java (1.4) is there a way in which to use Windows UNC file locations (\\servername\filestore\etc) within the classpath?


回答1:


Basically you just need to swap the back slashes with forward slashes:

java -classpath '//servername/filestore/etc;.' <classname>


来源:https://stackoverflow.com/questions/825731/how-best-to-add-unc-file-paths-to-a-java-classpath

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!