在 Eclipse 的“VM 参数”中设置 java.util.logging.config.file 属性时出现问题;部分
我正在尝试传递 -Djava.util.logging.config.file=/path/to/my/logging.properties 以便我可以使用属性文件配置记录器。在“运行配置”下,我选择我的项目并转到“参数”选项卡。在“VM Arguments”框中,我有 java.util.logging.config.file=${project_loc}/logging.properties
但是,每次我尝试使用此运行配置运行项目时,我收到此错误: 线程“main”中的异常 java.lang.NoClassDefFoundError: java/util/logging/config/file=/Users/hamiltont/Documents/Programming/eclipse-workspace/Tesselation/logging/properties
我注意到每个句号都变成了斜杠,我似乎不知道该怎么办!文件的位置是正确的(尽管文件是logging.properties,而不是logging/properties)
I'm trying to pass -Djava.util.logging.config.file=/path/to/my/logging.properties
so that I can configure my loggers using the properties file. Under 'Run Configurations' I select my project and go to the 'Arguments' tab. In the 'VM Arguments' box, I have java.util.logging.config.file=${project_loc}/logging.properties
However, every time I try to run the project using this run configuration, I get this error:Exception in thread "main" java.lang.NoClassDefFoundError: java/util/logging/config/file=/Users/hamiltont/Documents/Programming/eclipse-workspace/Tesselation/logging/properties
I notice that every period has been turned into a slash, and I can't seem to figure out what to do about it! The location is correct for the file (although the file is logging.properties, not logging/properties)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的运行配置中是否缺少 -D?
Is the -D missing from your run configuration?