Question: Please help about java error of BBDuk
0
gravatar for seta
5 months ago by
seta1.4k
Sweden
seta1.4k wrote:

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

brian bushnel bbmap bbduk java • 212 views
ADD COMMENTlink modified 5 months ago • written 5 months ago by seta1.4k

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

ADD REPLYlink written 5 months ago by GenoMax96k

No, I just put the program at the PATH.

ADD REPLYlink written 5 months ago by seta1.4k

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

ADD REPLYlink modified 5 months ago • written 5 months ago by GenoMax96k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2585 users visited in the last hour
_