Please help about java error of BBDuk
0
0
Entering edit mode
4.2 years ago
seta ★ 1.9k

Dear all,

I'm using BBDuk from bbmap package (last version) for the trimming of RNA-seq reads. I used the below code:

bbduk.sh in=file_1.fastq.gz  out=trimmed_1.fastq.gz  ref=/opt/BBMap/resources/adapters.fa ktrim=r k=23 mink=11 hdist=1  qtrim=rl trimq=20

But it gave the error:

java -Djava.library.path=/opt/BBMap/sh/jni/ -ea -Xmx11756m -Xms11756m -cp /opt/BBMap/sh/current/ jgi.BBDukF in=file_1.fastq.gz out=trimmed_1.fastq.gz ref=/opt/BBMap/resources/adapters.fa ktrim=r k=23 mink=11 hdist=1 qtrim=rl trimq=20
Error: Could not find or load main class jgi.BBDukF

From the net, I tried the below solution code:

java -ea -Xmx5g -Xms5g -cp /opt/BBMap/current/jgi.BBDukF in=file_1.fastq.gz  out=trimmed_1.fastq.gz  ref=/opt/BBMap/resources/adapters.fa ktrim=r k=23 mink=11 hdist=1  qtrim=rl trimq=20
Error: Could not find or load main class in=file_1.fastq.gz

I'm totally confused. Could you please let me know how I can fix the error?

Thanks

bbmap bbduk java brian bushnel • 2.0k views
ADD COMMENT
0
Entering edit mode

Did you move any folder contents after you downloaded and uncompressed BBMap code?

ADD REPLY
0
Entering edit mode

No, I just put the program at the PATH.

ADD REPLY
0
Entering edit mode

Which version of Java are you using? BBMap needs Java 8 and above.

ADD REPLY
0
Entering edit mode

And as I tested, jni doesn't work with open-jdk.

ADD REPLY
0
Entering edit mode

Use conda to install if you can.

ADD REPLY

Login before adding your answer.

Traffic: 1493 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6