title: Run log4j on jamvm
body: <p>Trying to run simple java application with log4j on jamvm virtual machine:</p>
  <pre><code>jamvm -cp &quot;.:log4j-api-2.11.2.jar:log4j-core-2.11.2.jar&quot; m.main
  </code></pre>
  <p>Got error:</p>
  <pre><code>Exception in thread &quot;main&quot; java.lang.NoClassDefFoundError: java/util/Objects
     at org.apache.logging.log4j.core.impl.Log4jContextFactory.&lt;init&gt;(Log4jContextFactory.java:90)
     at org.apache.logging.log4j.core.impl.Log4jContextFactory.&lt;init&gt;(Log4jContextFactory.java:59)
     at java.lang.reflect.VMConstructor.construct(Native Method)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:319)
     at java.lang.Class.newInstance(Class.java:1154)
     at org.apache.logging.log4j.LogManager.&lt;clinit&gt;(LogManager.java:94)
     at m.main.&lt;clinit&gt;(main.java:7)
  Caused by: java.lang.ClassNotFoundException: java.util.Objects not found in java.lang.ClassLoader$1{urls=[file:/opt/rfidSrv/./,file:/opt/rfidSrv/log4j-api-2.11.2.jar,file:/opt/rfidSrv/log4j-core-2.11.2.jar], parent=null}
     at java.net.URLClassLoader.findClass(URLClassLoader.java:531)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:341)
     at java.lang.ClassLoader$1.loadClass(ClassLoader.java:1112)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:293)
     at org.apache.logging.log4j.core.impl.Log4jContextFactory.&lt;init&gt;(Log4jContextFactory.java:90)
     ...6 more
  </code></pre>
  <p>What is wrong there and how to fix that?</p>
  <p>The same command on Oracle Java works fine:</p>
  <pre><code>java -cp &quot;.:log4j-api-2.11.2.jar:log4j-core-2.11.2.jar&quot; m.main
  </code></pre>
  <p>Code:</p>
  <p>package m;</p>
  <pre><code>import org.apache.logging.log4j.LogManager;
  import org.apache.logging.log4j.Logger;
  
  public class main {
      private static final Logger LOG =  LogManager.getLogger(main.class);
       
      public static void main(String[] args) 
          {
          LOG.info(&quot;---startting---&quot;);
          
          LOG.debug(&quot;This Will Be Printed On Debug&quot;);
          LOG.info(&quot;This Will Be Printed On Info&quot;);
          LOG.warn(&quot;This Will Be Printed On Warn&quot;);
          LOG.error(&quot;This Will Be Printed On Error&quot;);
          LOG.fatal(&quot;This Will Be Printed On Fatal&quot;);
   
          LOG.info(&quot;Appending string: {}.&quot;, &quot;Hello, World&quot;);
          
          }
  }
  </code></pre>