sanger-pathogens / Artemis

Artemis is a free genome viewer and annotation tool that allows visualization of sequence features and the results of analyses within the context of the sequence, and its six-frame translation
http://sanger-pathogens.github.io/Artemis
Other
238 stars 76 forks source link

For windows Error: A JNI error has occurred, please check your installation and try again #292

Closed drs357 closed 5 years ago

drs357 commented 5 years ago

Hello when I double click on the .jar file I get the error:

Error: A JNI error has occurred, please check your installation and try again

This is on a windows 10 machine, can someone please help me?

Thanks

kpepper commented 5 years ago

What version of the Artemis software do you have installed? If it's the latest (18.0.2) then you will need Java version 9 or above (ideally version 11.0.2) installed. Java can be downloaded from here: http://jdk.java.net/archive/

If you bring up a DOS window and type:

java -version

what version does it show?

You could also try right-clicking on the artemis jar and selecting Open with... Java.

drs357 commented 5 years ago

Thank you, I needed to update the jdk.

Thank you!

BMDeepak commented 3 years ago

Same issue I am working with jdk 1.8.0_291

mattbird567 commented 3 years ago

I too am experiencing the same problem. When i type java -version into cmd it returns:

java version "1.8.0_301" Java(TM) SE Runtime Environment (build 1.8.0_301-b09) Java HotSpot(TM) Client VM (build 25.301-b09, mixed mode)

When i try and open the Artemis.jar file howveer i am still getting theses two errors:

Error: A JNI error has occured, please check your installation and try again A Java Exception has occurred

kpepper commented 3 years ago

@mattbird567 - Later versions of Artemis do not work with Java 1.8 (your installed version). You will need to upgrade your Java version, e.g. Java 11 - see the download GitHub page for details.