Java School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a Java Expert!

Join 306,820 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,724 people online right now. Registration is fast and FREE... Join Now!




Eclipse help

 

Eclipse help, This compiler pisses me off

phil1000

11 Apr, 2009 - 01:27 PM
Post #1

D.I.C Head
**

Joined: 26 Feb, 2009
Posts: 155



Thanked: 9 times
My Contributions
So my friend is trying to work on a java project, and we're trying to run a project on Eclipse. The problem is that I don't think it realizes it's a java file. you can type "ladfshkajldshfkafh" and it won't say there is an error. And with that, there is a main function, and it won't recognize it. We both have used Eclipse before and have gotten things to compile so we know a little bit of how to use it.

Thanks in advance,
Phil

User is offlineProfile CardPM
+Quote Post


phil1000

RE: Eclipse Help

11 Apr, 2009 - 01:32 PM
Post #2

D.I.C Head
**

Joined: 26 Feb, 2009
Posts: 155



Thanked: 9 times
My Contributions
Ok, we solved the problem!
User is offlineProfile CardPM
+Quote Post

abgorn

RE: Eclipse Help

11 Apr, 2009 - 02:09 PM
Post #3

sudo apt-get install brain
Group Icon

Joined: 5 Jun, 2008
Posts: 1,342



Thanked: 15 times
Dream Kudos: 50
My Contributions
Eclipse isn't a compiler, it's a freakin' IDE!!!!!!!!!

Compiler==http://en.wikipedia.org/wiki/Compiler
IDE==http://en.wikipedia.org/wiki/Integrated_de...ent_environment

Eclipse utilises the compiler, it isn't the actual compiler.
User is offlineProfile CardPM
+Quote Post

PJLabowski

RE: Eclipse Help

11 Apr, 2009 - 09:55 PM
Post #4

D.I.C Head
**

Joined: 21 Mar, 2009
Posts: 70



Thanked: 5 times
My Contributions
Abgorn,
Take one of the green pills or something man, we all knew what he meant.
User is offlineProfile CardPM
+Quote Post

pbl

RE: Eclipse Help

12 Apr, 2009 - 08:17 AM
Post #5

Java Lover
Group Icon

Joined: 6 Mar, 2008
Posts: 9,962



Thanked: 1187 times
Dream Kudos: 450
My Contributions
QUOTE(PJLabowski @ 11 Apr, 2009 - 09:55 PM) *

Abgorn,
Take one of the green pills or something man, we all knew what he meant.

May be you did
But the poster was introducing a wrong concept for all the newbies monitoring that forum
(you can't imagine how often these words are missused and all the confusion it brings)

So, Abgorn intervention's is more than justified
User is online!Profile CardPM
+Quote Post

c0mrade

RE: Eclipse Help

12 Apr, 2009 - 10:20 AM
Post #6

D.I.C Regular
***

Joined: 16 Nov, 2007
Posts: 412



Thanked: 18 times
My Contributions
QUOTE(abgorn @ 11 Apr, 2009 - 02:09 PM) *

Eclipse isn't a compiler, it's a freakin' IDE!!!!!!!!!

Compiler==http://en.wikipedia.org/wiki/Compiler
IDE==http://en.wikipedia.org/wiki/Integrated_de...ent_environment

Eclipse utilises the compiler, it isn't the actual compiler.


Actually the OP was absolutely correct (although maybe he didn't know it?).

Eclipse as a package is an IDE, an Integrated Development Environment.

When working on Java code, Eclipse has a feature (like many IDE's) that picks up errors in your code as you type. To give you this feature it cannot use javac, it has use an incremental compiler. This incremental compiler is included in the Java version of Eclipse. It is part of the Eclipse IDE.

More briefly, to recognize inline code errors (what the OP was asking about) Eclipse uses it's own compiler.

phil1000: Would you mind explaining how you solved the problem? It may help others in the future.

This post has been edited by c0mrade: 12 Apr, 2009 - 10:23 AM
User is offlineProfile CardPM
+Quote Post

phil1000

RE: Eclipse Help

13 Apr, 2009 - 06:20 AM
Post #7

D.I.C Head
**

Joined: 26 Feb, 2009
Posts: 155



Thanked: 9 times
My Contributions
well in short, we just made a new Java Project instead of doing a new empty Project.
User is offlineProfile CardPM
+Quote Post

Locke

RE: Eclipse Help

13 Apr, 2009 - 07:13 AM
Post #8

Treasure Hunter
Group Icon

Joined: 20 Mar, 2008
Posts: 4,020



Thanked: 299 times
Dream Kudos: 325
Expert In: Java

My Contributions
Yup, that'll do it. smile.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/20/09 10:22PM

Live Java Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month