简体   繁体   中英

Unable to access jarfile error

I am launching my application through a batch file on windows(10) startup. This is what i have in my batch file -

start javaw -jar javaApplication.jar`

When windows starts i get the

Unable to access jarfile javaApplcation.jar

However, the problem is that after this error message the application is still being launched and works perfectly. What is the reason that the jar is being accessed but I'm still getting the unable to access the jar error, and how to avoid it? Couldn't find any answers to this specific case.

It is because you have start in front. Just try

javaw -jar ...

or

java -jar ...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM