It's not a secret anymore!
The moose likes XML and Related Technologies and the fly likes cannot resolve variable Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "cannot resolve variable" Watch "cannot resolve variable" New topic
Author

cannot resolve variable

Jason Green
Greenhorn

Joined: Aug 31, 2001
Posts: 11
I am trying to convert a Database Table into an XML doc going out. When I compile I get tons of errors saying cannot resolve variable (on both the class and method and variable level). I am somewhat new to Java and would appreciate any help. I believe I have the correct classes in my classpath but can't figure it out. Thanks
The code is below.


[This message has been edited by Cindy Glass (edited September 04, 2001).]
BJ Grau
Ranch Hand

Joined: Jul 10, 2001
Posts: 234
Uggh. Can you include some of your error messages?
Jason Green
Greenhorn

Joined: Aug 31, 2001
Posts: 11
The error's I get are all the same, cannot resolve variable. In says either variable, class, or method.
Thanks
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
What is your classpath. Where are your class files.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Jason Green
Greenhorn

Joined: Aug 31, 2001
Posts: 11
My classpath is listed below.
C:\Program Files\Exceed.nt\;d:\eGate\client\classes;d:\jdk1.3.1\lib\tools.jar;d:\eGate\client\classes\egate.jar;d:\eGate\client\classes\stcjcs.jar;C:\Program Files\JavaSoft\JRE\1.2\lib\rt.jar;D:\Oracle\Ora81\orb\classes\yoj.jar;D:\Oracle\Ora81\orb\classes\share.zip
Please advise if you need something further. Thanks Cindy, I appreciate it. Java is new to me.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
If you choose to use the JRE, you need to include all of the jar files that are involved in that unless you know for a FACT that none of the classes in the other jar files are being used:
rt.jar
jaws.jar
i18n.jar
Is eGate an IDE?
However, I doubt if that is your problem.
What is get$0(0) ?
From the JLS 3.8 Identifiers
The $ character should be used only in mechanically generated source code or, rarely, to access preexisting names on legacy systems.

I would expect that the JVM is all confused about what you want.
By the way, is that horribly complicated code really NECESSARY?
Any statement that is 12 nodes long is by definition incomprehensible.
Then again you are calling all the millions of functions in the end to get something (can't tell what) but not putting the value into any variable???
Jason Green
Greenhorn

Joined: Aug 31, 2001
Posts: 11
Thanks for the tips. eGate is integration software but has a java code generator within it. For example, I can take one field from one source and drag it to another field (XML DTD element) and have it generate the copy structure for me. The DTD that is that deep is what was given to me. I will see what else I can find out. Thanks
Jason Green
Greenhorn

Joined: Aug 31, 2001
Posts: 11
Cindy, for further clarification, think of the code as me taking an input, a database structure and based on the case statment transforming it into another structure, in this case an XML DTD. Is there another way for me to copy a table column to an XML element that deep without doing it this way? Please advise.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Well, I would expect the Egate software is not using the Classpath that you think it is.
I also am no XML expert, but we DO have a forum full of folks who know such stuff. So I will move this over and hope you get some REAL advice .
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: cannot resolve variable
 
Similar Threads
Custom Component : Missing Update Model Phase?
IReport:How can i use multi-select statement in jasper
cannot resolve variable
how to get int value ?
string to date