Can you explain your problem?
Code executed from a jar should work the same as when executed from files in a folder.
The exception is you need to treat files as resources and use the classloader's...