Java can’t open any .jar files

  Kiến thức lập trình

I was following this tutorial: https://docs.opentripplanner.org/en/latest/Basic-Tutorial/ to get started with OpenTripPlanner for the first time. Once I got to the step “starting OTP” I encountered a problem. I typed in “java -jar otp-2.5.0-shaded.jar” into cmd, and it gave back: “Error: Unable to access jarfile otp-2.5.0-shaded.jar”. So I started looking online for solutions to this problem, and i’ve tried every single one I came across, including all of the solutions given in this thread: What causes “Unable to access jarfile” error?, but to no avail. Then I started wondering, can I even open any .jar file at all? So I downloaded this test .jar file: https://github.com/jarirajari/helloworld, and tried opening it but it gave the same error message! So now I’m thinking somehow the Java on my PC just can’t open .jar files at all. Is there anything I can try to fix this problem?
Thanks in advance for your answers.

New contributor

Noah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT