有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java在intellij中创建可执行Jar文件

我想用intellij制作我项目的可执行jar文件。我已经创建了jar,但是在执行jar文件时,出现了这个错误

cannot find the path specified of the file config.properties.

属性文件位于文件夹ReconFiles中,主类位于文件夹SRC中

你能帮我在JAR文件中添加properties类吗


共 (1) 个答案

  1. # 1 楼答案

    cannot find the path specified of the file config.properties

    通常情况下,jar文件会放在目标文件夹中。确保在目标文件夹中执行

    如果您正在使用Ubuntu,请执行cd target