Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Phage Hunter
    Junior Member
    • Jan 2015
    • 6

    BBMap Error

    Hi guys,

    When attempting to build an index or carry out any mapping with BBMap I always get the following error: Could not find or load main class Drive. I suspect this is may be purely a Java error, but I am not sure as I am new to all this.

    Could any of you shed light on this or maybe suggest equivalent programs if no solution can be found?

    Thanks
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Can you tell us what OS are you running this on and the command you are using?

    Comment

    • Phage Hunter
      Junior Member
      • Jan 2015
      • 6

      #3
      I am running Ubuntu 14.04 with Java version 1.8.0_25. I have tried multiple commands and each produces the same error. I tried running: ./bbmap.sh ref=T3.fasta k=10

      With that command I get the following output:

      java -Djava.library.path=/media/damian/Hard Drive - Hyb/bbmap/bbmap/jni/ -ea -Xmx25537m -cp /media/damian/Hard Drive - Hyb/bbmap/bbmap/current/ align2.BBMap build=1 overwrite=true fastareadlen=500 ref=T3.fasta k=10
      Error: Could not find or load main class Drive

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        Did you move any of the folders inside the BBMap directory after you downloaded BBMap?

        Comment

        • Phage Hunter
          Junior Member
          • Jan 2015
          • 6

          #5
          No I did not move or edit anything. After decompressing, I simply tried to run the program immediately from the script.

          Comment

          • Phage Hunter
            Junior Member
            • Jan 2015
            • 6

            #6
            The problem has been sorted out. It was simply because my main drive name has a space in it and the script was unable to locate the path because of it. I changed it and things are working now.

            Thanks for your help.

            Comment

            • Xtina
              Junior Member
              • Feb 2021
              • 1

              #7
              Can someone help me to understand this message? I'm new to bioinformatic and don't quite understand all the error message meaning. Thanks

              Max memory cannot be determined. Attempting to use 2000 MB.
              If this fails, please add the -Xmx flag (e.g. -Xmx24g) to your command,
              or run this program qsubbed or from a qlogin session on Genepool, or set ulimit to an appropriate value.
              java -ea -Xmx2000m -cp /Users/labmac2/Desktop/Lib23/bbmap/current/ jgi.FuseSequence in1=./Trimmed_Reads/Paired/F4259_R1.fastq.gz in2=./Trimmed_Reads/Paired/F4259_R2.fastq.gz pad=7 out=./Paired_Merged/F4259_merged.fastq fusepairs
              Executing jgi.FuseSequence [in1=./Trimmed_Reads/Paired/F4259_R1.fastq.gz, in2=./Trimmed_Reads/Paired/F4259_R2.fastq.gz, pad=7, out=./Paired_Merged/F4259_merged.fastq, fusepairs]

              Set INTERLEAVED to false
              Input is being processed as paired
              Writing interleaved

              Comment

              • GenoMax
                Senior Member
                • Feb 2008
                • 7142

                #8
                BBMap suite programs try to auto detect memory available on your system. If they are not able to do that they will fall back to using a safe 2GB using the option mentioned "-Xmx2000m". This is Java way of specifying the maximum amount of memory to use.

                If you have more memory available then you can explicitly choose the amount to use by adding -XmxNNg to any bbmap suite tool. For example

                Code:
                 bbmap.sh -Xmx30g in1=blah ...

                Comment

                • Ahmer
                  Junior Member
                  • Feb 2022
                  • 3

                  #9
                  I am trying to run bbmap but i cannot can anyone tell me where the error is??

                  ~/bbmap$ bash stats.sh /root@wch7p102-04:/home/szweda/bbmap/resources/phix174_ill.ref.fa.gz
                  Exception in thread "main" java.lang.RuntimeException: Input file does not appear to be valid: /root@wch7p102-04:/home/szweda/bbmap/resources/phix174_ill.ref.fa.gz
                  at jgi.AssemblyStats2.process(AssemblyStats2.java:248)
                  at jgi.AssemblyStats2.main(AssemblyStats2.java:40)

                  Comment

                  • Ahmer
                    Junior Member
                    • Feb 2022
                    • 3

                    #10
                    I am trying to run BBmap with this command but I am getting this error can anyone help??

                    bash bbmap.sh in=PY53_contigs.fasta out=PY53_bbmapped.sam bamscript=bs.sh java -ea -Xmx4393m -Xms4393m -cp /home/szweda/bbmap/current/ align2.BBMap build=1 overwrite=true fastareadlen=500 in=PY53_contigs.fasta out=PY53_bbmapped.sam bamscript=bs.sh Executing align2.BBMap [build=1, overwrite=true, fastareadlen=500, in=PY53_contigs.fasta, out=PY53_bbmapped.sam, bamscript=bs.sh] Version 38.95 Retaining first best site only for ambiguous mappings. Found samtools 1.10 Exception in thread "main" java.lang.RuntimeException: Can't find file ref/genome/1/summary.txt at fileIO.ReadWrite.getRawInputStream(ReadWrite.java:933) at fileIO.ReadWrite.getInputStream(ReadWrite.java:898) at fileIO.TextFile.open(TextFile.java:280) at fileIO.TextFile.<init>(TextFile.java:123) at dna.Data.setGenome2(Data.java:823) at dna.Data.setGenome(Data.java:769) at align2.BBMap.loadIndex(BBMap.java:316) at align2.BBMap.main(BBMap.java:32)

                    Comment

                    Latest Articles

                    Collapse

                    • SEQadmin2
                      Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                      by SEQadmin2


                      Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                      The systematic characterization of the human proteome has
                      ...
                      07-20-2026, 11:48 AM
                    • SEQadmin2
                      Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                      by SEQadmin2



                      Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                      ...
                      07-09-2026, 11:10 AM
                    • SEQadmin2
                      Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                      by SEQadmin2



                      Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                      There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                      07-08-2026, 05:17 AM

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, 07-24-2026, 12:17 PM
                    0 responses
                    18 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-23-2026, 11:41 AM
                    0 responses
                    18 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-20-2026, 11:10 AM
                    0 responses
                    25 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 07-13-2026, 10:26 AM
                    0 responses
                    37 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...