Kahuki Webmaster Forum and Discussion Community  

Go Back   Kahuki Webmaster Forum and Discussion Community > Website Development & Management > Programming

Programming Discussions related to web programming languages and other related issues.



Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-23-2006, 10:27 PM
Member
 
Join Date: May 2006
Posts: 59
pepecito is on a distinguished road
java query : My prog is giving an error while running java class , pl help !?

I get this error while executing a class ,
Exception in thread "main" java.lang.NoClassDefFoundError: First
My program is correct , now syntax error . I am using j2sdk1.4. pl suggest what should i do ?

Reply With Quote
  #2 (permalink)  
Old 07-23-2006, 10:30 PM
Member
 
Join Date: Mar 2007
Posts: 64
Stertenan is on a distinguished road
go to java.com and do a complete download it isfor free.

Reply With Quote
  #3 (permalink)  
Old 07-23-2006, 10:31 PM
Rookie
 
Join Date: May 2007
Posts: 8
Peter_Burtis is on a distinguished road
The most likely cause is that you don't have the classpath variable set properly.

To fix this, do the following:

1) Go to 'my computer' and right click and select 'properties'. Then under the advanced tab, select 'enviromment variables'.

2) In there if you see a 'classpath' variable, edit that entry to reflect a dot (.) following what already is in there. (eg: classpath=<a series of paths seperated by colons>;. ) <- Note I inserted a dot after teh last colon.

This should fix your problem

Reply With Quote
  #4 (permalink)  
Old 07-24-2006, 08:31 AM
Member
 
Join Date: Mar 2007
Posts: 68
vimalm is on a distinguished road
its not a softyware problem
its programatic error

be sure the filename is same as the public class name

Reply With Quote
  #5 (permalink)  
Old 07-24-2006, 12:15 PM
.nxto.'s Avatar
Member
 
Join Date: Apr 2006
Posts: 68
.nxto. is on a distinguished road
Make sure your PUBLIC class name (if you have more than one class in your program) is the same as the file name. Also, make sure you don't have a semicolon at the end of the public class definenition line. Finally, make sure you have matching braces in all the appropriate places.

__________________
Alive Web Directory

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
i deleted my java on my pc . i went to java.com & tried to download java. but all i get is an error.? arif Programming 5 03-03-2007 05:58 AM
another java program error..it says operator can not be applied to java.lang.double, java.lang.double!!! help! vjvishy Programming 3 12-01-2006 10:35 PM
error 999 is java cause of new yahoo server java run out reload java l'm up and runing gl bashroot Programming 1 10-31-2006 03:20 PM
java query : My prog is giving an error while running java class , pl help !? PJPsyco Programming 2 07-23-2006 10:43 PM
I have downloaded Java language & API documentation from java.sun.com. How to start running Java? Kedar Programming 5 07-20-2006 11:21 PM


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


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0