How do I go from jar:file:/C:/Program%20Files/test.jar!/foo/bar to a File that points to C:/Program Files/test.jar?
How do I go from jar:file:/C:/Program%20Files/test.jar!/foo/bar to a File that points to C:/Program Files/test.jar
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The following code works for me (based on How do I get just the jar URL from a jar: URL containing a "!" and a specific file in the jar?):