Home » Language IDEs » Java Development Tools (JDT) » simple help please
simple help please [message #27025] |
Fri, 16 May 2003 23:25  |
Eclipse User |
|
|
|
Originally posted by: cyberskydive.yahoo.com
Since this is my first post here, I'd like to begin by saying that I
really enjoy the Eclipse Platform & JDT, I look forward to using it more
in-depth both with Java and other features, and I hope that the
contributors and developers of Eclipse get everything they want for
Christmas.
I was introduced to Eclipse through another user as I began Java classes
in school, and it's really helped me and other classmates a great deal,
especially since our first Java class / books expect us to use notepad and
the command line. Thanks!
Ok here goes the most stupid question you'll probably ever get, but I've
tried to sort this out on my own, and it only happens when using Eclipse.
Info:
Win2k
J2 SDK 1.4.1 02
Eclipse 2.1.0 Build id: 200303272130
Java Development Tools etc all 2.1.0
Problem:
initializing simple array like so:
int anArray[]; or int[] anArray;
anArray = new int[10];
The assignment operator in the initialization statement produces the error:
Syntax error on Token "=", Identifier expected
Told you it was stupid, but only happens in eclipse, works fine (as I
suppose it should) on the command line. Same thing on two diferent
installations, but same eclipse versions.
Funny tho, cause I was writing homework on exception handling ;)
Can anyone lead me in the right direction here?
|
|
|
Re: simple help please [message #27183 is a reply to message #27025] |
Sat, 17 May 2003 04:02   |
Eclipse User |
|
|
|
Originally posted by: stelian.iancu.gmx.net
D wrote:
> Since this is my first post here, I'd like to begin by saying that I
> really enjoy the Eclipse Platform & JDT, I look forward to using it more
> in-depth both with Java and other features, and I hope that the
> contributors and developers of Eclipse get everything they want for
> Christmas.
>
> I was introduced to Eclipse through another user as I began Java classes
> in school, and it's really helped me and other classmates a great deal,
> especially since our first Java class / books expect us to use notepad and
> the command line. Thanks!
>
> Ok here goes the most stupid question you'll probably ever get, but I've
> tried to sort this out on my own, and it only happens when using Eclipse.
>
> Info:
> Win2k
> J2 SDK 1.4.1 02
> Eclipse 2.1.0 Build id: 200303272130
> Java Development Tools etc all 2.1.0
>
> Problem:
> initializing simple array like so:
>
> int anArray[]; or int[] anArray;
> anArray = new int[10];
>
> The assignment operator in the initialization statement produces the
> error: Syntax error on Token "=", Identifier expected
>
> Told you it was stupid, but only happens in eclipse, works fine (as I
> suppose it should) on the command line. Same thing on two diferent
> installations, but same eclipse versions.
>
> Funny tho, cause I was writing homework on exception handling ;)
>
> Can anyone lead me in the right direction here?
Works perfectly for me.
Eclipse Platform
Version: 2.1.1
Build id: 200304301350
On Linux Mandrake 9.1 (Eclipse GTK version).
--
Stelian Iancu
Linux registered user 287835
Be different. Think.
|
|
|
Re: simple help please [message #27295 is a reply to message #27025] |
Sat, 17 May 2003 14:25   |
Eclipse User |
|
|
|
Originally posted by: cyberskydive.yahoo.com
D wrote:
> Since this is my first post here, I'd like to begin by saying that I
> really enjoy the Eclipse Platform & JDT, I look forward to using it more
> in-depth both with Java and other features, and I hope that the
> contributors and developers of Eclipse get everything they want for
> Christmas.
> snip.................
Ok, so..... last night I set compliance to 1.4, and installed the newest
integration build. Neither of which made a difference, or so it may have
seemed, at first. Today I come to see if any replies etc, thanks whoever
wrote the one, nothing concrete, but it worked for him -lol-
Decided to read some more, nothing new, but learned some new methods to
make life cooler! I decided to fire it up and go at it again with a new
file, and no problem whatsoever! So maybe it just wanted me to give it a
break, or make me appreciate it more by using Source Edit and command
line, or maybe I wasnt holding my mouth right...................
|
|
|
Re: simple help please [message #34572 is a reply to message #27295] |
Wed, 21 May 2003 17:13  |
Eclipse User |
|
|
|
I've had things like this happen every once and a while (not in Eclipse,
tho). I usually fix it by deleting the line with the problem and typing it
over again. I figure that somehow a control character got inserted into
the code.
D wrote:
> D wrote:
> > Since this is my first post here, I'd like to begin by saying that I
> > really enjoy the Eclipse Platform & JDT, I look forward to using it more
> > in-depth both with Java and other features, and I hope that the
> > contributors and developers of Eclipse get everything they want for
> > Christmas.
> > snip.................
> Ok, so..... last night I set compliance to 1.4, and installed the newest
> integration build. Neither of which made a difference, or so it may have
> seemed, at first. Today I come to see if any replies etc, thanks whoever
> wrote the one, nothing concrete, but it worked for him -lol-
> Decided to read some more, nothing new, but learned some new methods to
> make life cooler! I decided to fire it up and go at it again with a new
> file, and no problem whatsoever! So maybe it just wanted me to give it a
> break, or make me appreciate it more by using Source Edit and command
> line, or maybe I wasnt holding my mouth right...................
|
|
|
Goto Forum:
Current Time: Fri Oct 10 15:43:21 EDT 2025
Powered by FUDForum. Page generated in 0.03447 seconds
|