I get below errors when I try to set the classpath. I am using CentyOS. I am trying to execute a java file on the command line so that I am setting the classpath. When running the same java program in Intellij, it works fine. Performing the same from the command line, it shows an error for missing jars, so for this I added the path to this library, where the error is visible.
[root@a admin]
invalid file (bad magic number): Exec format error
Any suggestions would be helpful. I am new to java and linux, thanks!
source
share