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
236 stars 76 forks source link

Could not find or load main class #312

Open demolnau opened 4 years ago

demolnau commented 4 years ago

I am getting the following error when I run art in an environment. I am new to using environments and am not sure if it changes anything or not. I installed using bioconda.

Error: Could not find or load main class uk.ac.sanger.artemis.components.ArtemisMain Caused by: java.lang.ClassNotFoundException: uk.ac.sanger.artemis.components.ArtemisMain

kpepper commented 4 years ago

What OS are you on?

guillaumechauvat commented 3 years ago

~I have the same issue on Arch Linux, using either openjdk 11 or 16. It happens both from the Arch User Repository package or by cloning the code from Github directly.~

~Edit: ah, looks like it's not installed properly. mvn clean package fails with~

[ERROR] Failed to execute goal on project artemis: Could not resolve dependencies for project uk.ac.sanger:artemis:jar:18.1.0: The following artifacts could not be resolved: com.ibatis:ibatis:jar:2.3.4.726, com.sshtools:j2ssh-core:jar:0.2.9, org.emboss:jemboss:jar:1.0, org.biojava:biojava:jar:1.6: Could not find artifact com.ibatis:ibatis:jar:2.3.4.726 in central (https://repo.maven.apache.org/maven2)

Cleaning and recompiling everything from scratch worked eventually. I was just confused by how to use Maven.