Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot open .jar files #309

Open
benburrowes opened this issue May 12, 2020 · 6 comments
Open

Cannot open .jar files #309

benburrowes opened this issue May 12, 2020 · 6 comments

Comments

@benburrowes
Copy link

Hi. I am working on a PC running Windows 10. I have updated Java and downloaded and unpacked the Artemis zip files. The .jar files do nothing when I click on them. I have tried telling my PC to run .jar files with Java but all that happens now when I click on artemis.jar is a command line box opens and instantly closes, then nothing.

@kathryn1995
Copy link

Hi Ben,

Can you check what version of Java you have running. You can find this out using the following command:
java -version

@benburrowes
Copy link
Author

benburrowes commented May 14, 2020 via email

@RachelSLab
Copy link

RachelSLab commented Sep 4, 2020

Hi Ben

I am having the same problem - have been round and round trying to install the right version of Java and show that it's working.

I am running:
openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.8+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.8+10, mixed mode)

Did you find a solution?

Cheers
Rachel

@benburrowes
Copy link
Author

benburrowes commented Sep 4, 2020 via email

@RachelSLab
Copy link

Hello Rachel, I got it fixed, but it took me handing over my laptop to our IT department so I have no actual idea what they did. All they said is that it was something to do with permissions. Sorry I can’t be of more help. Best wishes, Ben From: RachelSLab [email protected] Sent: Friday, September 4, 2020 2:34 PM To: sanger-pathogens/Artemis [email protected] Cc: benburrowes [email protected]; Author [email protected] Subject: Re: [sanger-pathogens/Artemis] Cannot open .jar files (#309) Hi Ben I am having the same problem - have been round and round trying to install the right version of Java and show that it's working. I am running: openjdk version "11.0.8" 2020-07-14 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.8+10) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.8+10, mixed mode) Did you find a solution? Cheers Rachel — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <https://urldefense.com/v3/https:/github.com/sanger-pathogens/Artemis/issues/309*issuecomment-687340799;Iw!!KwNVnqRv!Sb8p5KGoElzkwUCIE_ONVpT6ea0W9yVUoYJBxaR3oz51Pu5kRICVb-ND2dnY0b7snns$> , or unsubscribe <https://urldefense.com/v3/https:/github.com/notifications/unsubscribe-auth/APRZTK2YXUNXJYWY42BSSITSEE6JXANCNFSM4M7BDOKA;!!KwNVnqRv!Sb8p5KGoElzkwUCIE_ONVpT6ea0W9yVUoYJBxaR3oz51Pu5kRICVb-ND2dnY3QXGma8$> . https://github.com/notifications/beacon/APRZTKZWDITDCTS6UGXD47LSEE6JXA5CNFSM4M7BDOKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFD37Z7Y.gif

Hi Ben - thanks so much for replying. I managed to find a really easy workaround on one of the other posts involving making a .bat file in the same folder as the artemis app :)

Glad IT were able to resolve your issue.

best
Rachel

@jcskfatest
Copy link

jcskfatest commented Mar 9, 2022

Old thread but here is the fix on Windows.

Download and save openJDK to your user area so it has read and write access.

Create batch files in unzipped Artemis folder, then enter in this path update UID to your username C:\Users\jj9\adoptjdk\bin\java.exe -jar artemis.jar

You may need to adjust the path in the batch file to suit, I created the openJDK folder then moved the contents of the JDK folder into it, this works without issue.

image

When run this will launch Artemis without the end user having to pay for a Java license.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants