Skip to main content
gamedev.net
🔒 Locked

[java] Accessing .jar vs. folder

Started by nerd_boy 0 replies 600+ views
Original Post
nerd_boy
nerd_boy
If I have a jar executable, and I want to load a file that is in the jar, but one of the same name will also be in the folder the jar file is located. Renaming isn't really an option, and I was curious if there was a way I could specify which one I wanted. Many thanks.
smitty1276
smitty1276
You could use the zip libs in the JDK to open the jar, or you can just open the file that isn't in the jar.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.