all groups > vj# > june 2004 >
You're in the

vj#

group:

J# compilers returns Cannot declare type 'java.lang.Object' error


J# compilers returns Cannot declare type 'java.lang.Object' error (m.david NO[at]SPAM mdptws.com)
6/12/2004 7:52:22 PM
vj#:
Hi,

Ive got existing Java source code that compiles just fine with a number of Java compilers but for some reason I get "VJS1282: Cannot declare type 'java.lang.Object' error" when compiling in J#. Can someone give me a clue as to whats going on? The error is being found at position 1,0 ("p" of package declaration) which leads me to believe that the error possibly has something to do with the encoding of the source file. But I'm just throwing something out there because I can't think of anything else that would throw such a random error. The docs state pretty clearly what would normally throw this error (and its pretty obvious what that would be). But there are no erroneous declarations of "class Object..." so I'm at odds as to what really might be going on here.

I should also note that it happenening in the first file in the project listing. If I delete that file (and associated references to it) it then happens to the file that has replaced its first position.

I'll probably feel foolish when somebody post's the solution to my problem but I'd rather be a fool with my problem solved than the reverse :)

Thanks in advance!

<M:D/>

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Re: J# compilers returns Cannot declare type 'java.lang.Object' error Lars-Inge Tønnessen
6/14/2004 6:49:59 PM

What will happen if you make a new text file, copy the code from the old file and paste it into the new file?


( It could be a bug, it's only software =:D ).


Regards,
Lars-Inge Tønnessen
www.larsinge.com

AddThis Social Bookmark Button