title: Not able to run Java code using shell script from Desktop folder in ubuntu ,but works from opt folder
body: <p>On Ubuntu machine , I have a folder which contains shell script file ,folder with dependency jars and java project folder.</p>
  
  <p>Ex:MAIN-FOLDER
            -SHELL SCRIPT FILE
            -JAVA PROJECT FOLDER
            -LIB FOLDER WITH JARS</p>
  
  <p>In shell script I will be executing shell script from <code>MAIN-FOLDER</code> using below line : </p>
  
  <pre><code>/usr/lib/jvm/java-11-openjdk-amd64/bin/java -Xms2048m -Xmx2048m -cp lib/*:JAVA_PROJECT-FOLDER/target/* com.ivizsecurity.scanoptions.MainClass $HOST $PORT $MYSQL_USER $MYSQL_PASSWORD
  status=$?
  </code></pre>
  
  <p>So the problem is whenever I run shell script from opt folder in ubuntu it works fine , but if i try to copy the same folder in desktop and execute,it throws below error . It is not able to access <code>lib</code> folder</p>
  
  <pre><code>Exception in thread "main" java.lang.NoSuchFieldError: REFLECTION
        at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.&lt;init&gt;(RuntimeModelBuilder.java:93)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:464)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.&lt;init&gt;(JAXBContextImpl.java:310)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.&lt;init&gt;(JAXBContextImpl.java:146)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1169)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:147)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:288)
        at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:277)
        at javax.xml.bind.ContextFinder.find(ContextFinder.java:400)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:721)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:662)
  </code></pre>
  
  <p>Please help me out.
  Thanks in advance</p>