Artemis icon indicating copy to clipboard operation
Artemis copied to clipboard

Cannot open .jar files

Open benburrowes opened this issue 4 years ago • 6 comments

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.

benburrowes avatar May 12 '20 17:05 benburrowes

Hi Ben,

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

kathryn1995 avatar May 14 '20 09:05 kathryn1995

Thank you for your response. Here is the output, I am using version 1.8.0_251

java version "1.8.0_251"

Java(TM) SE Runtime Environment (build 1.8.0_251-b08)

Java HotSpot(TM) Client VM (build 25.251-b08, mixed mode, sharing)

From: kathryn1995 [email protected] Sent: Thursday, May 14, 2020 4:59 AM 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,

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sanger-2Dpathogens_Artemis_issues_309-23issuecomment-2D628529990&d=DwMCaQ&c=u6LDEWzohnDQ01ySGnxMzg&r=RGg_t2hyLpirZMTmLKaf7lB5JPNBMFPUxaKhtb0n1_A&m=azU2xURlrLF7T9TNJAvr8XSYvHWrSU-5INhMPkwbfeI&s=IqUT9u0Z5tJ9EXpN6WbNFvYTeKY0Ft955VgkYA8vMPI&e= , or unsubscribe https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_APRZTKYSPTHM52Z2NX2D4T3RRO6HRANCNFSM4M7BDOKA&d=DwMCaQ&c=u6LDEWzohnDQ01ySGnxMzg&r=RGg_t2hyLpirZMTmLKaf7lB5JPNBMFPUxaKhtb0n1_A&m=azU2xURlrLF7T9TNJAvr8XSYvHWrSU-5INhMPkwbfeI&s=OiXAy7NiPbGPRHXBeerJVt0v8vcbc4aP7uNCPyVAk-Q&e= . https://github.com/notifications/beacon/APRZTKZW4SDUE23MMZHA6JTRRO6HRA5CNFSM4M7BDOKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEV3JWRQ.gif

benburrowes avatar May 14 '20 12:05 benburrowes

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

RachelSLab avatar Sep 04 '20 19:09 RachelSLab

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

benburrowes avatar Sep 04 '20 19:09 benburrowes

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

RachelSLab avatar Sep 09 '20 11:09 RachelSLab

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.

jcskfatest avatar Mar 09 '22 15:03 jcskfatest