0

I have a jar file with external files (i.e. executables) that I access using Runtime.

I was wondering if I would be able to package these files into a single executable (not necessarily a jar) where I can still access all of the files using the windows file system.

Tamara Koliada
  • 1,200
  • 2
  • 14
  • 31

1 Answers1

0

I think you can combine these 2 solutions to get your answer.

Creating Runnable Jar with external files included

How can I convert a .jar to an .exe?

I don't know if two answers will make this one duplicate?

T04435
  • 12,507
  • 5
  • 54
  • 54
  • Thanks for the quick response. I'd looked at the first link but the get resource as stream approach doesn't work because I need to get the file path for the runtime and the number of files means that copying the files out of the jar seems inefficient – Crackers42 Mar 07 '19 at 23:06