LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-09-2006, 10:28 PM   #1
toaster.waffle
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Posts: 97

Rep: Reputation: 15
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 ). 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)!

Last edited by toaster.waffle; 03-09-2006 at 10:34 PM.
 
Old 03-09-2006, 11:09 PM   #2
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
> $ java blah.class

you do not want to type the .class on the file name.. just use the class name..
ex.
$java blah
 
Old 03-10-2006, 07:52 AM   #3
toaster.waffle
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Posts: 97

Original Poster
Rep: Reputation: 15
$ java blah
Exception in thread "main" java.lang.NoClassDefFoundError: blah


 
Old 03-10-2006, 07:54 AM   #4
toaster.waffle
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Posts: 97

Original Poster
Rep: Reputation: 15
$ 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

Last edited by toaster.waffle; 03-10-2006 at 07:56 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Updated Java... now java apps dont work zidane2010 Linux - Software 6 05-04-2004 08:02 PM
[java] How to se font of a message box Mohsen Programming 0 03-29-2004 10:38 AM
Setting the PATH for Java bruce64 Linux - Software 9 09-22-2003 11:19 AM
setting up java evian Linux - Software 17 03-18-2003 04:23 PM
setting up java runtime FloatRed Linux - Newbie 4 09-24-2002 08:43 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration