Still cannot resolve symbol

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Sep 2005
Posts: 10
Reputation: gracin is an unknown quantity at this point 
Solved Threads: 0
gracin gracin is offline Offline
Newbie Poster

Still cannot resolve symbol

 
0
  #1
Sep 26th, 2005
Sorry for confusing the issue by including the Format source code (I did not realize all structure format would be lost on the web site).

The basic issue is this. I have a very small project (3 files). From one routine I can easily make a call to a printing utility routine(Format.java). From another routine I cannot. I have been using the print formatting routine (Format.java) for years. The routine is in the same directory. I am not importing the package. The print() method is not static.

I have tried to copy and paste the code from the routine that makes the call successfully into a "dummy" routine that makes the same call. As soon as I name the new "dummy" routine, the JBuilder compiler gives me the "Cannot Resolve Symbol" error.

Its like using a car key for years and you go out to your car with the same key and suddenly it does not fit in the ignition! It doesn't make sense and seems to defy everything that makes the world a rational place to inhabit!
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 902
Reputation: chrisbliss18 is an unknown quantity at this point 
Solved Threads: 23
chrisbliss18's Avatar
chrisbliss18 chrisbliss18 is offline Offline
Posting Shark

Re: Still cannot resolve symbol

 
0
  #2
Sep 26th, 2005
Actually, it's not at all the same. You're not working with the same code that has worked before, you are using new code that you have yet to be able to get to work. There is a problem somewhere, you just aren't seeing it. You can always do the old debug method of take what works and modify it to do what the code that doesn't work is supposed to do and see where the code breaks in the process.

As for loosing the formatting, that's why I told you to put the code in [code][/code] tags.
Did we help you? Did we miss the point entirely? Update your thread and let us know.
Don't like the answers you are getting?
Did you try searching?
Clean up and optimize Windows 2000/XP
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: Still cannot resolve symbol

 
0
  #3
Sep 26th, 2005
Not sure I understand. Can you provide the line(s) of code causing the error?
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 10
Reputation: gracin is an unknown quantity at this point 
Solved Threads: 0
gracin gracin is offline Offline
Newbie Poster

Re: Still cannot resolve symbol

 
0
  #4
Oct 3rd, 2005
JBuilder 9 may have a bug.
When I make Format the main application class and then go back
to the routine in question, Format.print is magically "recognized"
by JBuilder. Perhaps I may need to reload JBuilder? :rolleyes:
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Still cannot resolve symbol

 
0
  #5
Oct 3rd, 2005
Perhaps you need to learn how to use your tools?
Compile the class and JBuilder will see it in other sources. Apparently you'd failed to do that (or provide a compiled version some other way). While often it will see uncompiled sources directly, sometimes it fails. This is especially the case with sources inside your project that change since the last compilation of that source. Sometimes JBuilder fails to see that the source changes and uses the outdated classfile instead for code error insight and/or code completion (or even weirder, sometimes the editor (thus code completion) sees the changes but the compiler does not).

This is true for every IDE/editor I've ever tried, from Eclipse to Netbeans to JBuilder to you name it (I've used well over a dozen over the years, probably closer to 2 dozen).
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 5
Reputation: shephunts is an unknown quantity at this point 
Solved Threads: 0
shephunts shephunts is offline Offline
Newbie Poster

Re: Still cannot resolve symbol

 
0
  #6
Oct 3rd, 2005
JBuilder is causing this error? I'd say somethings wrong with your code but you wont post it.
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: Still cannot resolve symbol

 
0
  #7
Oct 3rd, 2005
Originally Posted by jwenting
(I've used well over a dozen over the years, probably closer to 2 dozen).
Stop bragging! :lol:
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Still cannot resolve symbol

 
0
  #8
Oct 4th, 2005
Not bragging, merely making a point. Anyone can say that something is commonplace but unless you've the experience to back up such a statement what's it worth?
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: Still cannot resolve symbol

 
0
  #9
Oct 4th, 2005
I know, I was just messing around
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 10
Reputation: gracin is an unknown quantity at this point 
Solved Threads: 0
gracin gracin is offline Offline
Newbie Poster

Re: Still cannot resolve symbol

 
0
  #10
Oct 4th, 2005
Why is the assumption that I am not using the tools correctly?
While I have not used a dozen tools, I did buy the original Cafe from Symantec
8 years ago, have used Visual Cafe versions 1.0, 2.0, 3.0, 3.0b, 3.1, 3.4; Then went
with WebGain's Visual Cafe 4.5, etc.
I said I have been using the Format routine (from the Core Java book) for at least
6 years. On this current project I have compiled it at least 30 times.
It was just through pure frustration that I made it the main class, then switched to
the original class and viola, it worked.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC