FileNotFoundException when exporting .jar

前端 未结 3 899
面向向阳花
面向向阳花 2021-01-21 16:28

In my client/server app I need to send some file (.txt, .doc, etc.) from the client to the server. When I run my code in Eclipse it works, but when I e

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-21 17:25

    You need to copy your resources manually into the jar.

    To do so, use 7zip or winRar or anything else, right click and "open archive". Then drag-and-drop your resouces (e.g. png's etc.) to the appropriate folder (usually root).

提交回复
热议问题