| | |
Still cannot resolve symbol
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Sep 2005
Posts: 10
Reputation:
Solved Threads: 0
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!
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!
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.
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
Don't like the answers you are getting?
Did you try searching?
Clean up and optimize Windows 2000/XP
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).
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.
•
•
Join Date: Sep 2005
Posts: 10
Reputation:
Solved Threads: 0
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.
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.
![]() |
Similar Threads
- Cannot Resolve Symbol (Java)
- cannot resolve symbol symbol : variable JoptionPane (IT Professionals' Lounge)
- Cannot resolve symbol (Java)
- "Cannot Resolve Symbol" (Java)
- Cannot resolve symbol (Java)
- "cannot resolve symbol"problem (Java)
- Cannot resolve symbol message appears when compiling (Java)
Other Threads in the Java Forum
- Previous Thread: Decimal to hex conversion with recursion
- Next Thread: Pathname Problem
| Thread Tools | Search this Thread |
-xlint actionlistener android api applet application array arrays automation binary blackberry block bluetooth character chat class classes client code compile component consumer database desktop developmenthelp eclipse error event exception fractal freeze ftp game givemetehcodez graphics gui html ide image input integer j2me j2seprojects java javac javaee javaprojects jmf jni jpanel julia lego linked linux list loop loops mac map method methods mobile netbeans newbie notdisplaying number online page print printf problem program programming project properties recursion researchinmotion rotatetext rsa scanner screen server set singleton size sms sort sql string swing template textfields threads time title tree tutorial-sample update windows working






