File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes funky IDE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

funky IDE

Marcus Deviln
Ranch Hand

Joined: Jan 29, 2009
Posts: 39
My eclipse IDE sucks. When I type some code in the scrapbook it gives me this message "invalid syntax import delete this token" It always seems to give me an error message. I then type the code in netbeans and it compiles.

+Deviln+ The power of JAVA compels you!
Henry Wong

Joined: Sep 28, 2004
Posts: 20538

Eclipse works fine here... Maybe you have a config issue? Anyway, what would you like done?

If you like to try to resolve this issue, I can move this topic to the IDE forum for you.

If you are just venting... then let us know too, so we'll know that you don't need any help here.


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

Marcus --

Eclipse scrapbook pages aren't meant to contain complete Java translation units, just short snippets of executable code. You can't type import statements or package statements, among other things.

Instead, to import classes to a scrapbook page, right-click to get the context menu, and pick "Set imports".

[Jess in Action][AskingGoodQuestions]
Marcus Deviln
Ranch Hand

Joined: Jan 29, 2009
Posts: 39
Mr. wong you can delete my posting or otherwise dispose of it. I think the other gentleman enlightened me that I was expecting too much of the scrapbook. I still have a lot to learn about using these IDE's
I agree. Here's the link:
subject: funky IDE
It's not a secret anymore!