我试图从维基百科中运行一个非常简单的样本BioJava
副本和文件。
package test;
import org.biojava.nbio.data.sequence.FastaSequence;
import org.biojava.nbio.ronn.Jronn;
public class Run {
public static void main(String[] args) {
FastaSequence fsequence = new FastaSequence("Prot1", "LLRGRHLMNGTMIMRPWNFLNDHHFPKFFPHLIEQQAIWLADWWRKKHC" +
"RPLPTRAPTMDQWDHFALIQKHWTANLWFLTFPFNDKWGWIWFLKDWTPGSADQAQRACTWFFCHGHDTN" +
"CQIIFEGRNAPERADPMWTGGLNKHIIARGHFFQSNKFHFLERKFCEMAEIERPNFTCRTLDCQKFPWDDP");
Jronn.Range[] ranges = Jronn.getDisorder(fsequence);
}
}
然而,当我运行它时,我得到以下异常:
Exception in thread "main" java.lang.ExceptionInInitializerError
at test.Run.main(Run.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
Caused by: java.util.InputMismatchException
at java.util.Scanner.throwFor(Scanner.java:864)
at java.util.Scanner.next(Scanner.java:1485)
at java.util.Scanner.nextFloat(Scanner.java:2345)
at org.biojava.nbio.ronn.ModelLoader.loadModels(ModelLoader.java:188)
at org.biojava.nbio.ronn.Jronn.<clinit>(Jronn.java:55)
... 6 more
Process finished with exit code 1
版本:
"biojava-protein-disorder" 4.1.0
答案 0 :(得分:1)
这看起来像是在4.2中解决的java 8的问题。你能试试最新版的biojava(4.2.1)吗?