For Programmers: Free Programming Magazines  


Home > Archive > Java Help > January 2006 > I am new to java!









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author I am new to java!
baijugee

2006-01-26, 7:05 pm

when I exicute a simple java program I get the following error
Exception in thread "main" java.lang.NoClassDefFoundError:
<filename/class>
What is this really ,please help I have given up?

Monique Y. Mudama

2006-01-26, 7:05 pm

On 2006-01-26, baijugee penned:
> when I exicute a simple java program I get the following error
> Exception in thread "main" java.lang.NoClassDefFoundError:
><filename/class> What is this really ,please help I have given up?
>


Is the current directory in the classpath?


--
monique

Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
James Westby

2006-01-26, 7:05 pm

baijugee wrote:
> when I exicute a simple java program I get the following error
> Exception in thread "main" java.lang.NoClassDefFoundError:
> <filename/class>
> What is this really ,please help I have given up?
>


Did you use the command

java filename.class

or

java filename

?

It should be the second one.

(Assuming the java file is called filename.java and you compiled it with
javac filename.java)

James
opalpa@gmail.com opalinski from opalpaweb

2006-01-26, 7:06 pm

The following lesson contains relevant info. Choose your OS:

http://java.sun.com/docs/books/tuto...java/index.html

Opalinski
opalpa@gmail.com
http://www.geocities.com/opalpaweb/

Roedy Green

2006-01-26, 7:06 pm

On 26 Jan 2006 08:42:19 -0800, "baijugee" <baiju1973@sify.com> wrote,
quoted or indirectly quoted someone who said :

>NoClassDefFoundError


see http://mindprod.com/jgloss/caq.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Roedy Green

2006-01-26, 7:06 pm

On 26 Jan 2006 08:42:19 -0800, "baijugee" <baiju1973@sify.com> wrote,
quoted or indirectly quoted someone who said :

>when I exicute a simple java program I get the following error
>Exception in thread "main" java.lang.NoClassDefFoundError:
><filename/class>
>What is this really ,please help I have given up?


see http://mindprod.com/jgloss/gettingstarted.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com