Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-09-2008, 03:39 PM
Member
 
Join Date: May 2008
Posts: 5
srinivaspuvvala is on a distinguished road
Need help
hi friends , i am new to java.
i am working with JCreatorLE editor to develop java applications.
i have set paths as

PATH:C:\Program Files\Java\jdk1.6.0\bin
CLASSPATH:C:\Program Files\Java\jdk1.6.0\jre\lib\tools

what ever the applications i have developed are excuted well and giving results exactly.

But recently i have faced the errors like "NOSuchMethod def"and "java.lang.NoSuchMethodException".

how can i handle these problems and is my classpath setting is Correct or not?
if not how to set the classpath exactly?
pls help me friends.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-09-2008, 03:43 PM
sanjeevtarar's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Mumbai(India)
Posts: 230
sanjeevtarar is on a distinguished road
Quote:
Originally Posted by srinivaspuvvala View Post
hi friends , i am new to java.
i am working with JCreatorLE editor to develop java applications.
i have set paths as

PATH:C:\Program Files\Java\jdk1.6.0\bin
CLASSPATH:C:\Program Files\Java\jdk1.6.0\jre\lib\tools

what ever the applications i have developed are excuted well and giving results exactly.

But recently i have faced the errors like "NOSuchMethod def"and "java.lang.NoSuchMethodException".

how can i handle these problems and is my classpath setting is Correct or not?
if not how to set the classpath exactly?
pls help me friends.
Hello Dear,

Where are you getting this error, means in which program can you post it here.
So that one can let you know the solution
__________________
sanjeev,संजीव
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-09-2008, 03:43 PM
sukatoa's Avatar
Senior Member
 
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 251
sukatoa is on a distinguished road
Send a message via Yahoo to sukatoa
Have you check your code for invoking non-existing methods?
__________________
best regards,
sukatoa
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 05-09-2008, 03:54 PM
Member
 
Join Date: May 2008
Posts: 5
srinivaspuvvala is on a distinguished road
i will post the code
but i want to know is my classpath setting is correct or not?
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 05-09-2008, 03:55 PM
sanjeevtarar's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Mumbai(India)
Posts: 230
sanjeevtarar is on a distinguished road
Quote:
Originally Posted by srinivaspuvvala View Post
CLASSPATH:C:\Program Files\Java\jdk1.6.0\jre\lib\tools
Why you did this......
__________________
sanjeev,संजीव
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 05-09-2008, 03:59 PM
Member
 
Join Date: May 2008
Posts: 5
srinivaspuvvala is on a distinguished road
then how to set the classpath
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 05-09-2008, 04:04 PM
sanjeevtarar's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Mumbai(India)
Posts: 230
sanjeevtarar is on a distinguished road
Quote:
Originally Posted by srinivaspuvvala View Post
then how to set the classpath
same as PATH.......like this

CLASSPATH:C:\Program Files\Java\jdk1.6.0\bin
__________________
sanjeev,संजीव
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 05-09-2008, 04:06 PM
Member
 
Join Date: May 2008
Posts: 5
srinivaspuvvala is on a distinguished road
actually i downloaded one package from the net.
it is about
A Practical Exact Pattern Matching Algorithm
Christopher G. Jennings (Home Page)
"information on and a visualization of the Franek-Jennings-Smyth Exact Pattern Matching Algorithm"

he has given one package(.Zip) of developed java programs.
whenver i have ran those programs i got errors as i mentioned before.
Bookmark Post in Technorati
Reply With Quote
  #9 (permalink)  
Old 05-09-2008, 04:10 PM
sanjeevtarar's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Mumbai(India)
Posts: 230
sanjeevtarar is on a distinguished road
Quote:
Originally Posted by srinivaspuvvala View Post
then how to set the classpath
Quote:
Originally Posted by srinivaspuvvala View Post
actually i downloaded one package from the net.
it is about
A Practical Exact Pattern Matching Algorithm
Christopher G. Jennings (Home Page)
"information on and a visualization of the Franek-Jennings-Smyth Exact Pattern Matching Algorithm"

he has given one package(.Zip) of developed java programs.
whenver i have ran those programs i got errors as i mentioned before.
try to file out the missing method....in package....
if found then there is problem with classpath ....not java's classpath but for your downloaded package.
__________________
sanjeev,संजीव
Bookmark Post in Technorati
Reply With Quote
  #10 (permalink)  
Old 05-09-2008, 04:15 PM
sukatoa's Avatar
Senior Member
 
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 251
sukatoa is on a distinguished road
Send a message via Yahoo to sukatoa
Quote:
not java's classpath but for your downloaded package.
....Bingo....
__________________
best regards,
sukatoa
Bookmark Post in Technorati
Reply With Quote
  #11 (permalink)  
Old 05-09-2008, 04:16 PM
Member
 
Join Date: May 2008
Posts: 5
srinivaspuvvala is on a distinguished road
ok thank u
i will do that.
Bookmark Post in Technorati
Reply With Quote
  #12 (permalink)  
Old 05-09-2008, 04:17 PM
sanjeevtarar's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Mumbai(India)
Posts: 230
sanjeevtarar is on a distinguished road
Quote:
Originally Posted by sukatoa View Post
....Bingo....
Hey Sukatoa.............

What do you want to say...
__________________
sanjeev,संजीव
Bookmark Post in Technorati
Reply With Quote
  #13 (permalink)  
Old 05-09-2008, 04:21 PM
sukatoa's Avatar
Senior Member
 
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 251
sukatoa is on a distinguished road
Send a message via Yahoo to sukatoa
Thats what im thinking for....
I think his binpath is right isn't it?

So, the error might on that package (not arranged)... or misplaced...

Bingo means, you got it...
__________________
best regards,
sukatoa
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +3. The time now is 06:06 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org