-1

would like to make the executable jar file of my project in intellij. I have created jar but while executing jar file, getting this error

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

Properties file present in the folder ReconFiles and main class present in the folder SRC.

Can you please help me how to add the properties class in the JAR file?

demonplus
  • 5,613
  • 12
  • 49
  • 68
  • Configure the path with the properties files as the resource root so that they are copied to the output. See also http://stackoverflow.com/a/42200519/104891. – CrazyCoder Jun 13 '17 at 12:22

1 Answers1

0

cannot find the path specified of the file config.properties

Normally jar file will be placed inside target folder. Make sure you are execute in target folder.

Perform cd target if you are using Ubuntu.

John Joe
  • 12,412
  • 16
  • 70
  • 135