伙计们。对不起我的英语不好。我在Raspberry上运行服务器有问题,
我使用以下命令启动服务器:
pi@raspberrypi:~ $ java -jar server-0.41.12-java8.jar - dataFolder home/pi/Blynk和错误消息:
线程“主”
中的java.lang.RuntimeException异常:解压静态文件时出错。在cc.blynk.utils.JarUtil.unpackStaticFiles(JarUtil.java:64) at cc.blynk.utils.properties.ServerProperties.(ServerProperties.java:34) at cc.blynk.utils.properties.ServerProperties.(ServerProperties.java:42) at cc.blynk.server.launcher.ServerLauncher.main(ServerLauncher.java:55)引起的: java.nio.file.AccessDeniedException: /home/pi/static/report-email.html在java的java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)。base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:245) at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110) at java.base/java.nio.file.Files.deleteIfExists(Files.java:1180) at cc.blynk.utils.JarUtil.unpackStaticFiles(JarUtil.java:49)…再多3个
另外,我有java11.0.3,但是服务器在java 8上,我想因为我不做服务器,所以我只配置服务器。我尝试卸载java和instal (8.0) (用sudo命令),然后再写11.0.3。(命令java -version)
发布于 2020-10-13 07:18:54
您所需要的只是将服务器作为根服务器启动。在终端写sudo pcmanfm。然后打开终端中的文件夹并运行服务器!
https://stackoverflow.com/questions/64301977
复制相似问题