What went wrong:
A problem occurred evaluating root project 'picard'.
Cannot invoke method getURLs() on null object
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1.014 secs
i ahve tried installing older version picardtools-1.128
moved it to another directory and given the path
but when executed the command it didnt worked too.
for this package i used following commands:
chmod 755* (after goint in the directory)
cd ..
cp -r picard ~/software_library/
ln -sf ~/software_library/picard/picard.jar ~/software_library/bin/picard
but when executed :
suhail@suhail-HP-Notebook:~/Desktop/data/FAstq$ picard MarkDuplicates I=output.sort.bam O=output_marked.sort.bam M=picard_info.txt REMOVE_DUPLICATES=true AS=true
bash: /usr/bin/picard: No such file or directory
it will be appreciated if somebody can just guide me with the installation commands as like many others i am new to ngs data analysis . help will be appreciated .
thank you
i ahve tried installing older version picardtools-1.128 moved it to another directory and given the path but when executed the command it didnt worked too. for this package i used following commands: chmod 755* (after goint in the directory) cd .. cp -r picard ~/software_library/ ln -sf ~/software_library/picard/picard.jar ~/software_library/bin/picard
but when executed : suhail@suhail-HP-Notebook:~/Desktop/data/FAstq$ picard MarkDuplicates I=output.sort.bam O=output_marked.sort.bam M=picard_info.txt REMOVE_DUPLICATES=true AS=true bash: /usr/bin/picard: No such file or directory
I've invoke it with java, but I still have an error.
Could you please let me know how should I fix this? Thank you.
[root@NGS:han]# java -jar picard.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: picard/cmdline/PicardCommandLine : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:803)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:442)
at java.net.URLClassLoader.access$100(URLClassLoader.java:64)
at java.net.URLClassLoader$1.run(URLClassLoader.java:354)
at java.net.URLClassLoader$1.run(URLClassLoader.java:348)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:347)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:312)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
When ever iam trying to use picard it is waring thhat to upgrade my java version from 11 to 17 it is not ugrading the commanads which i used to upgrade is
sudo apt install openjdk-17-jdk-headless -y
sudo update-alternatives --config java (Selected 17 version)
java -version
The output after checking the version is
(base) progenics@LAPTOP-IFCKMU88:~$ java -version
openjdk version "11.0.1-internal" 2018-10-16
OpenJDK Runtime Environment (build 11.0.1-internal+0-adhoc..src)
OpenJDK 64-Bit Server VM (build 11.0.1-internal+0-adhoc..src, mixed mode)
(base) progenics@LAPTOP-IFCKMU88:~$ picard -h
/home/progenics/miniconda3/bin/picard: line 5: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
Error: LinkageError occurred while loading main class picard.cmdline.PicardCommandLine
java.lang.UnsupportedClassVersionError: picard/cmdline/PicardCommandLine has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
it will be appreciated if somebody can just guide me with the installation commands as like many others i am new to ngs data analysis . help will be appreciated . thank you
what "it didn't worked" means ???
it didnt worked means as follows :
i ahve tried installing older version picardtools-1.128 moved it to another directory and given the path but when executed the command it didnt worked too. for this package i used following commands: chmod 755* (after goint in the directory) cd .. cp -r picard ~/software_library/ ln -sf ~/software_library/picard/picard.jar ~/software_library/bin/picard
but when executed : suhail@suhail-HP-Notebook:~/Desktop/data/FAstq$ picard MarkDuplicates I=output.sort.bam O=output_marked.sort.bam M=picard_info.txt REMOVE_DUPLICATES=true AS=true bash: /usr/bin/picard: No such file or directory
see my answer below
Futhermore:
means you have a basic $PATH problem...