usadellab / Trimmomatic

Other
208 stars 70 forks source link

Building on Ubuntu 20 #24

Open chababster opened 2 years ago

chababster commented 2 years ago

System Specs:

When trying to build the latest from source with ant

sudo snap install ant --classic
cd /source/dir
ant

An error reports as

compile:
    [javac] Compiling 41 source files to /home/chabab/Downloads/Trimmomatic-0.39/dist/build
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 6
    [javac] warning: [options] source value 6 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.6 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] Note: /home/chabab/Downloads/Trimmomatic-0.39/src/org/usadellab/trimmomatic/trim/BaseCountTrimmer.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 4 warnings

In order to fix this, edit file build.xml and replace 1.5 with 1.6 on line 34 vim build.xml save and exit the file

Running ant again results in successful build

chabab@chabab-VirtualBox:~/Downloads/Trimmomatic-0.39$ ant
Buildfile: /home/chabab/Downloads/Trimmomatic-0.39/build.xml

init:

import:

compile:
    [javac] Compiling 41 source files to /home/chabab/Downloads/Trimmomatic-0.39/dist/build
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 6
    [javac] warning: [options] source value 6 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.6 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] Note: /home/chabab/Downloads/Trimmomatic-0.39/src/org/usadellab/trimmomatic/trim/BaseCountTrimmer.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 4 warnings

dist:
    [unjar] Expanding: /home/chabab/Downloads/Trimmomatic-0.39/dist/lib/jbzip2-0.9.jar into /home/chabab/Downloads/Trimmomatic-0.39/dist/unpack
   [delete] Deleting directory /home/chabab/Downloads/Trimmomatic-0.39/dist/unpack/META-INF
   [delete] Deleting directory /home/chabab/Downloads/Trimmomatic-0.39/dist/unpack/demo
     [move] Moving 1 file to /home/chabab/Downloads/Trimmomatic-0.39/dist/unpack
     [move] Moving 1 file to /home/chabab/Downloads/Trimmomatic-0.39/dist/unpack
     [copy] Copying 50 files to /home/chabab/Downloads/Trimmomatic-0.39/dist/unpack
      [jar] Building jar: /home/chabab/Downloads/Trimmomatic-0.39/dist/jar/trimmomatic-0.39.jar
      [zip] Building zip: /home/chabab/Downloads/Trimmomatic-0.39/dist/Trimmomatic-0.39.zip
      [zip] Building zip: /home/chabab/Downloads/Trimmomatic-0.39/dist/Trimmomatic-Src-0.39.zip

BUILD SUCCESSFUL
Total time: 2 seconds
eric-zhizu commented 2 years ago

Thank you for this helpful comment! (From a user who had this problem)

wolass commented 8 months ago

Found this by chance. This needs to be in the main documentation at the very least.

keremw commented 5 months ago

Totally solved my problem too. Thank you!