Java difficulties (setting up a java work box)
Hey, I'm a Gr 12 Computer science student and I'm trying to get a computer up for _just_ JAVA. The problem is, I've tried 5 distros (Kubuntu, Vector, Feather, Gentoo, and Ubuntu) and none work well enough for me to not die from having a heart attack.
I am running Eclipse 3.1.1 on a Gentoo box, and it works ok, but if I compile in Eclipse and open a console and try '$ java blah.class' I get the following error. $ java blah.class Exception in thread "main" java.lang.NoClassDefFoundError: blah/class This also happens on the Java box (currently Ubuntu) that I'm trying to set up. On Windows I _used_ JCreator (I can't log into the school's network anymore -- uses Windows 2000 :cry: ). JCreator allowed me to just hit run and it opened a terminal. The problem I'm having is in Eclipse is that I can't do this; it gives me an error because I tried to run it with a config for an old project. I hate having to set up a profile for a project just to run it. (This is why I'm trying to use the bash terminal) PLEASE HELP ME GET THE PERFECT SETUP SO I CAN BE MORE PRODUCTIVE (I'm a couple assignments behind)! |
> $ java blah.class
you do not want to type the .class on the file name.. just use the class name.. ex. $java blah |
$ java blah
Exception in thread "main" java.lang.NoClassDefFoundError: blah :p |
$ java testIO
5 5 You're the best Plus I found that Kate has Java capabilities. It colours the syntax AND has a build in terminal that goes to the .java directory automatically! Anyways, thanks again |
All times are GMT -5. The time now is 05:55 PM. |