Darkness3477
February 25th, 2007, 03:31 AM
Hi, I just upgraded my Laptop with Ubuntu 6.06 (Not sure if I'm going to get 6.10) and have spent the last little while getting all my stuff together. I've got the build essentials and everything else. I have also downloaded and install Java JDK 6 with JRE, I've tested it out and it works in my browser (Loaded up a Java based game). I just tried to test it with a simple Hello World app that can be found on Sun Microsystem's tutorial list. And, well, it compiled nicely. I just tried to run it and I got this error.
maver@maver-laptop:~/java$ java HelloWorldApp
Exception in thread "main" java.lang.ClassFormatError: HelloWorldApp (unrecognized class file version)
at java.lang.VMClassLoader.defineClass(libgcj.so.7)
at java.lang.ClassLoader.defineClass(libgcj.so.7)
at java.security.SecureClassLoader.defineClass(libgcj .so.7)
at java.net.URLClassLoader.findClass(libgcj.so.7)
at java.lang.ClassLoader.loadClass(libgcj.so.7)
at java.lang.ClassLoader.loadClass(libgcj.so.7)
at java.lang.Class.forName(libgcj.so.7)
at gnu.java.lang.MainThread.run(libgcj.so.7)
Well, now I'm a complete newb at Java and haven't used Ubuntu in awhile, so I'm not sure how to fix it. I've tried doing what it says here http://java.sun.com/docs/books/tutorial/getStarted/problems/index.html but I'm still to see the 'Hello world! pop out at me.
Now, perhaps I need to set my class path, or perhaps I didn't set up my JDK properly. But I would of thought that if that was the case it wouldn't of compiled into the .class file.
Also, I'm just going to start learning Java, and I need a good Development environment. Just something with nice Syntex highlighting, intellisense (IF they have that on any....) and a debugger and a compiler that I can use with just a single button click. I know it's not hard to compile something from the terminal, but it's more effort than I could really be assed giving. Also, I'm used to using the Microsoft Visual Express range of products. Is there anything along those lines I can download? If you know of anything that seems to be close to what I want, please tell me.
maver@maver-laptop:~/java$ java HelloWorldApp
Exception in thread "main" java.lang.ClassFormatError: HelloWorldApp (unrecognized class file version)
at java.lang.VMClassLoader.defineClass(libgcj.so.7)
at java.lang.ClassLoader.defineClass(libgcj.so.7)
at java.security.SecureClassLoader.defineClass(libgcj .so.7)
at java.net.URLClassLoader.findClass(libgcj.so.7)
at java.lang.ClassLoader.loadClass(libgcj.so.7)
at java.lang.ClassLoader.loadClass(libgcj.so.7)
at java.lang.Class.forName(libgcj.so.7)
at gnu.java.lang.MainThread.run(libgcj.so.7)
Well, now I'm a complete newb at Java and haven't used Ubuntu in awhile, so I'm not sure how to fix it. I've tried doing what it says here http://java.sun.com/docs/books/tutorial/getStarted/problems/index.html but I'm still to see the 'Hello world! pop out at me.
Now, perhaps I need to set my class path, or perhaps I didn't set up my JDK properly. But I would of thought that if that was the case it wouldn't of compiled into the .class file.
Also, I'm just going to start learning Java, and I need a good Development environment. Just something with nice Syntex highlighting, intellisense (IF they have that on any....) and a debugger and a compiler that I can use with just a single button click. I know it's not hard to compile something from the terminal, but it's more effort than I could really be assed giving. Also, I'm used to using the Microsoft Visual Express range of products. Is there anything along those lines I can download? If you know of anything that seems to be close to what I want, please tell me.