Hi,
Recently my PI got an account on EBI-EGA, which we are able to login from the browser (Chrome and Safari), but when I tried logging into the account from the terminal (Ubuntu 20.04), I constantly receive errors -
java -jar EgaDemoClient.jar
Welcome to the EGA Secure Data Shell Demo.
Type 'help' for help, and 'exit' to quit.
Ega Demo Download Client Version: 2.2.3
EGA > login PI@instiute.in
Password: **
java.lang.NoClassDefFoundError: com/sun/net/ssl/HostnameVerifier
java.lang.NoClassDefFoundError: com/sun/net/ssl/HostnameVerifier
at uk.ac.embl.ebi.ega.egaapiwrapper.EgaAPIWrapper.<init>(EgaAPIWrapper.java:159)
at uk.ac.embl.ebi.ega.egaapiwrapper.EgaAPIWrapper.<init>(EgaAPIWrapper.java:134)
at uk.ac.embl.ebi.ega.egadbapiwrapper.EgaDBAPIWrapper.<init>(EgaDBAPIWrapper.java:53)
at egademoclient.EgaDemoClient.login(EgaDemoClient.java:182)
at egademoclient.EgaDemoClient.login(EgaDemoClient.java:176)
at egademoclient.EgaDemoClient.login(EgaDemoClient.java:171)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at asg.cliche.ShellCommand.invoke(ShellCommand.java:69)
at asg.cliche.Shell.processCommand(Shell.java:294)
at asg.cliche.Shell.processLine(Shell.java:276)
at asg.cliche.Shell.commandLoop(Shell.java:231)
at egademoclient.EgaDemoClient.main(EgaDemoClient.java:1841)
Caused by: java.lang.ClassNotFoundException: com.sun.net.ssl.HostnameVerifier
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:606)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:168)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 15 more
I have zero understanding of Java to understand and rectify these errors.
The method to login and download can be found at https://ega-archive.org/download/using-ega-download-client
P.S. The title of this post is similar, but it does not suit my purpose
Any help would be appreciated. Thanks in advance.
While someone may provide an answer you can contact EGA help desk in mean time.