Re: cannot resolve symbol error



"Oliver Wong" <owong@xxxxxxxxxxxxxx> wrote in
news:9xjYe.269113$tt5.3613@edtnps90:

>
> "s_m_b" <smb20002ns@xxxxxxxxxxx> wrote in message
> news:Xns96D8D5C508442smb2000nshotrmailcom@xxxxxxxxxxxxxxxxx
>> Tor Iver Wilhelmsen <jadedgamer@xxxxxxxxxxx> wrote in
>> news:uk6hafm1k.fsf@xxxxxxxxxxx:
>>
>>> "s_m_b" <smb20002ns@xxxxxxxxxxx> writes:
>>>
>>>> import javax.sql.rowset;
>>>
>>> You want the package's contents, so use
>>>
>>> import javax.sql.rowset.*;
>>
>> that it were so easy!
>>
>> The class file(s) were written by someone else, and I have no access
>> (as far as I know) to the original source code.
>>
>> The app works just fine on the test machine, so it must be a case of
>> a missing jar file, or a duff path?
>
> The line:
>
> <code>
> import javax.sql.rowset;
> </code>
>
> should NOT work. It should cause a compile time error (specially, it
> should give the error message: "Only a type can be imported.
> javax.sql.rowset resolves to a package"). Either you are mistaken in
> thinking that the code compiled on the test machine, or your test
> machine has code written by someone very malicious and is trying to
> screw with your mind (i.e. if it compiled, it implies that someone
> actually wrote a class called "rowset", with a lowercase r, and put it
> in the package "javax.sql" which is owned by Sun and shouldn't be
> touched).
>
> - Oliver
>
>
well, I'll take you word on that! I'm not a Java developer, just the guy
who's trying to get this app to work on the kit we've got.

The page that has the 'import' statement is a .jsp so I've edited and it
seems to be working now.

The only difference between the two servers is that the test one runs
1.4.2_05 + tomcat 5.0.18 and the live runs 1.4.2_09

anyway, thanks for the pointer!
.



Relevant Pages