Hello All;
I am currently using Ubuntu 14.04 LTS on my Bev C Beaglebone Black. I followed the instructions at the following link: http://beagleboard.org/project/java/ "For Debian, download the "Linux ARM v6/v7 Hard Float ABI" version." I installed the package in my /root/ directory and entered the following from the terminal: export PATH=$PATH:/root/jdk1.7.0_60/bin export JAVA_HOME=/root/jdk1.7.0_60 I then entered: root@ubuntu-armhf:# java -version java version "1.7.0_60" Java(TM) SE Runtime Environment (build 1.7.0_60-b19) Java HotSpot(TM) Client VM (build 24.60-b09, mixed mode) I then attempted to run Derek Molloy's simple test program: ============================================= public class Test { /** * @param args */ public static void main(String[] args) { System.out.println("Hello from the BeagleBone Black!"); } } ============================================= The result was the following error: root@ubuntu-armhf:~# java test Exception in thread "main" java.lang.ClassFormatError: Incompatible magic value 1886741100 in class file test at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:800) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482) I also tried: root@ubuntu-armhf:~# java test.class Error: Could not find or load main class test.class Does anyone know what is going on here? I'm hoping it is some noob mistake J Thanks; Bill "No one could make a greater mistake than he who did nothing because he could do only a little." "All that is necessary for the triumph of evil is that good men do nothing" Edmond Burke (1729 - 1797) <http://www.packtpub.com/building-a-home-security-system-with-beaglebone/boo k> http://www.packtpub.com/building-a-home-security-system-with-beaglebone/book -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
