Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse Errors and Warnings
Eclipse Errors and Warnings [message #518776] Thu, 04 March 2010 23:19 Go to next message
dGlobal  is currently offline dGlobal Friend
Messages: 16
Registered: January 2010
Junior Member
Can anyone direct me to a good source material, either in the help menu, on the web, or otherwise, that will help me with step by step, explanatory approach to resolving the hundreds of errors and warnings the IDE generates.

The Quick Fix tool hardly fixes the tons errors generated. It offers suggestions to some of them, and even so, does not say which one of those suggestions is the answer to the particular problem. i am really stuck with tons of these errors and warnings trying to learn the IDE. Your help is highly appreciated.

dGlobal

Re: Eclipse Errors and Warnings [message #518929 is a reply to message #518776] Fri, 05 March 2010 13:38 Go to previous messageGo to next message
Steffen Zschaler is currently offline Steffen ZschalerFriend
Messages: 266
Registered: July 2009
Senior Member
Hi,

You may want to provide more detailed information on what you are trying
to do and what errors you are getting. In general, double-clicking on an
error in the problem view should open an editor positioned at the
offending line/location.

Cheers,

Steffen

On 04/03/2010 23:19, dGlobal wrote:
> Can anyone direct me to a good source material, either in the help
> menu, on the web, or otherwise, that will help me with step by step,
> explanatory approach to resolving the hundreds of errors and warnings
> the IDE generates.
>
> The Quick Fix tool hardly fixes the tons errors generated. It offers
> suggestions to some of them, and even so, does not say which one of
> those suggestions is the answer to the particular problem. i am
> really stuck with tons of these errors and warnings trying to learn
> the IDE. Your help is highly appreciated.
>
> dGlobal
>
Re: Eclipse Errors and Warnings [message #519055 is a reply to message #518776] Fri, 05 March 2010 22:27 Go to previous messageGo to next message
dGlobal  is currently offline dGlobal Friend
Messages: 16
Registered: January 2010
Junior Member
Steff

Thanx for your response. i was just trying out an example project in the IDE called "Creating your first Java project" to help me learn Eclipse. This example is under the Java Development User Guide in the Help Menu.


dGlobal
Re: Eclipse Errors and Warnings [message #519261 is a reply to message #519055] Mon, 08 March 2010 05:16 Go to previous messageGo to next message
Steffen Zschaler is currently offline Steffen ZschalerFriend
Messages: 266
Registered: July 2009
Senior Member
Ok. So, what error messages are you getting.

Steffen

On 05/03/2010 22:27, dGlobal wrote:
> Steff
>
> Thanx for your response. i was just trying out an example project in
> the IDE called "Creating your first Java project" to help me learn
> Eclipse. This example is under the Java Development User Guide in the
> Help Menu.
>
> dGlobal
Re: Eclipse Errors and Warnings [message #519359 is a reply to message #518776] Mon, 08 March 2010 15:52 Go to previous messageGo to next message
dGlobal  is currently offline dGlobal Friend
Messages: 16
Registered: January 2010
Junior Member
Steff

As i mentioned the errors and warnings are so ridiculously numerous. They are not just one or two to remember what they are. And it makes you wonder if the IDE is of any good.

Seriously, if I had written a single code as the application built, it would've been perfectly reasonable to think that my coding was full of errors. But, if the IDE, with its ability to AUTO-GENERATE app files, generates such enormous errors and warning then, frankly, the IDE doesn't know what the hell it's doing. IT HAS A SERIOUS FLAW. In essence, it simply doesn't work right. Let's face it, Netbeans doesn't do that. Flex Framework doesn't go that; and on, and on....

The Quick Fix and Content Assist utilities should, i am told, help to fix these errors and warnings but they come back with the messages: "There no suggestions for this error/warning". The most frustrating thing is the fact that you cannot find anyone to seriously help straiten this apparent flaw up. Hope you're serious at helping.

dGlobal
Re: Eclipse Errors and Warnings [message #519415 is a reply to message #519359] Mon, 08 March 2010 18:15 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
"dGlobal" <dGlobal@nyc.rr.com> wrote in message
news:hn36g0$ti9$1@build.eclipse.org...
> Steff
>
> As i mentioned the errors and warnings are so ridiculously numerous. They
> are not just one or two to remember what they are. And it makes you wonder
> if the IDE is of any good.
> Seriously, if I had written a single code as the application built, it
> would've been perfectly reasonable to think that my coding was full of
> errors. But, if the IDE, with its ability to AUTO-GENERATE app files,
> generates such enormous errors and warning then, frankly, the IDE doesn't
> know what the hell it's doing. IT HAS A SERIOUS FLAW. In essence, it
> simply doesn't work right. Let's face it, Netbeans doesn't do that. Flex
> Framework doesn't go that; and on, and on....
>
> The Quick Fix and Content Assist utilities should, i am told, help to fix
> these errors and warnings but they come back with the messages: "There no
> suggestions for this error/warning". The most frustrating thing is the
> fact that you cannot find anyone to seriously help straiten this apparent
> flaw up. Hope you're serious at helping.
>
> dGlobal

In order for us to help you, we will need more information. Could you
provide more details about how you got to the point of so many errors in
your project. Let us know what programming language you are using. What
type of project are you working on. Is this an existing project that you
just started to use Eclipse to work on? Did the errors occur sudenly on a
project that previously was clean?

From your description, my only guess would be a missing configuration step
or a missing dependency. Some examples of the error messages you are
receiving would also give us something to go on.

An IDE can only work with what it is given. Errors/warnings that are the
result of ambiguous, mispelled, conflicting, or syntax problems can often be
provided with hints from the IDE. However, Errors/warnings that are the
result of missing information can't be easily fixed by the IDE since it
doesn't know where to look for the information.
Re: Eclipse Errors and Warnings [message #519478 is a reply to message #518776] Mon, 08 March 2010 23:09 Go to previous messageGo to next message
dGlobal  is currently offline dGlobal Friend
Messages: 16
Registered: January 2010
Junior Member
I do not know how else to explain this because i am completely new at Eclipse. I have just started learning it recently. Again, i was just trying out "Creating your first Java project" to get myself acquainted with working with Eclipse. I did not have to write a single code. The system generated all the codes. All I did was write the app a name i.e. "JUnit" in a name field and confirmed file location.

The errors/warnings generate after compilation. When i tried a fix using Quick Fix, i get several suggestions, yes. I just don't know which ones of those suggestions actually fixes any particular error/warning. Here is an example of the errors:

Constructor is a raw type. References to generic type Constructor <T> should be parametrized.

Here is my problem with that. It is almost impossible to understand the logic behind the auto-genrated application files when the codes are erroneous.


dGlobal
Re: Eclipse Errors and Warnings [message #519488 is a reply to message #519478] Tue, 09 March 2010 01:18 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
dGlobal wrote:
> I do not know how else to explain this because i am completely new at
> Eclipse. I have just started learning it recently. Again, i was just
> trying out "Creating your first Java project" to get myself acquainted
> with working with Eclipse. I did not have to write a single code. The
> system generated all the codes. All I did was write the app a name i.e.
> "JUnit" in a name field and confirmed file location.
> The errors/warnings generate after compilation. When i tried a fix using
> Quick Fix, i get several suggestions, yes. I just don't know which ones
> of those suggestions actually fixes any particular error/warning. Here
> is an example of the errors:
>
> Constructor is a raw type. References to generic type Constructor <T>
> should be parametrized.
> Here is my problem with that. It is almost impossible to understand the
> logic behind the auto-genrated application files when the codes are
> erroneous.
>
> dGlobal

Ok, I think I can help you. It appears as though you are going through
the tutorial in the Eclipse help. The messages you are seeing are from
code generated by Eclipse. You actually imported source code that is
part of the tutorial.

The "Constructor is a raw type" message is actually a warning. It is
related to Java Generic types. Generics were added to the Java language
spec in version 5. The spec requires the warning when generic capable
classes are used without parameterizing the class. In this case, the
tutorial assumes that the compiler is set to version 1.4. That is what
the part about Use an execution environment is about. If you set the
compiler compliance to 1.4. The majority of the warnings go away.

You can do this now by Right clicking on the Junit project and selecting
Properties from the context menu. In the properties dialog, select Java
Compiler. At the top of the dialog, make sure that Enable project
specific settings are set.

Uncheck Use compliance from Execution Environment. In the Compiler
Compliance drop down, select 1.4. Save the properties. You should be
asked to perform a full build. Select yes. After the build, you will
still see some warnings (around 20). They are expected, and you can
ignore them.

Good luck
Re: Eclipse Errors and Warnings [message #519760 is a reply to message #518776] Tue, 09 March 2010 21:12 Go to previous messageGo to next message
dGlobal  is currently offline dGlobal Friend
Messages: 16
Registered: January 2010
Junior Member
Steff

Thanx, you're right. That worked. It has reduced the warnings to just 19. But I don't want to ignore them because I consider learning to resolve issues of any sort, as they arrive, while learning the platform as an extremely important hurdle i will have to overcome in oder to achieve significant mastery of the IDE. So, if you can guide me (i.e. give me a direction) as to how to resolve, I will be very grateful.

REMAINING WARNINGS

1.The local variable result is never read SimpleTest.java /JUnit/src/junit/samples line 49 Java Problem
2.The method show() from the type Dialog is deprecated TestRunner.java /JUnit/src/junit/swingui line 462 Java Problem
3.The method show() from the type Dialog is deprecated TestRunner.java /JUnit/src/junit/swingui line 772 Java Problem
4. The serializable class AboutDialog does not declare a static final serialVersionUID field of type long AboutDialog.java /JUnit/src/junit/awtui line 8 Java Problem
5. The serializable class AboutDialog does not declare a static final serialVersionUID field of type long AboutDialog.java/JUnit/src/junit/swingui line 12 Java Problem
6. The serializable class AssertionFailedError does not declare a static final serialVersionUID field of type long AssertionFailedError.java /JUnit/src/junit/framework line 6 Java Problem
7. The serializable class ComparisonFailure does not declare a static final serialVersionUID field of type long ComparisonFailure.java /JUnit/src/junit/framework line 8 Java Problem
8. The serializable class CounterPanel does not declare a static final serialVersionUID field of type long CounterPanel.java /JUnit/src/junit/swingui line 10 Java Problem
9. The serializable class FailureListCellRenderer does not declare a static final serialVersionUID field of type long FailureRunView.java /JUnit/src/junit/swingui line 21 Java Problem
10. The serializable class Logo does not declare a static final serialVersionUID field of type long Logo.java /JUnit/src/junit/awtui line 9 Java Problem
11. The serializable class ProgressBar does not declare a static final serialVersionUID field of type long ProgressBar.java /JUnit/src/junit/awtui line 5 Java Problem
12. The serializable class ProgressBar does not declare a static final serialVersionUID field of type long ProgressBar.java /JUnit/src/junit/swingui line 10 Java Problem
13. The serializable class StackEntryRenderer does not declare a static final serialVersionUID field of type long DefaultFailureDetailView.java /JUnit/src/junit/swingui line 51 Java Problem
14. The serializable class StackTraceListModel does not declare a static final serialVersionUID field of type long DefaultFailureDetailView.java /JUnit/src/junit/swingui line 19 Java Problem
15. The serializable class StatusLine does not declare a static final serialVersionUID field of type long StatusLine.java /JUnit/src/junit/swingui line 11 Java Problem
16. The serializable class TestCellRenderer does not declare a static final serialVersionUID field of type long TestSelector.java /JUnit/src/junit/swingui line 25 Java Problem
17. The serializable class TestSelector does not declare a static final serialVersionUID field of type long TestSelector.java /JUnit/src/junit/swingui line 14 Java Problem
18. The serializable class TestSuitePanel does not declare a static final serialVersionUID field of type long TestSuitePanel.java /JUnit/src/junit/swingui line 13 Java Problem
19. The serializable class TestTreeCellRenderer does not declare a static final serialVersionUID field of type long TestSuitePanel.java /JUnit/src/junit/swingui line 18 Java Problem

Thanx a great deal for your assistance.

dGlobal

Re: Eclipse Errors and Warnings [message #519790 is a reply to message #519760] Wed, 10 March 2010 00:41 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
dGlobal wrote:
> Steff
>
> Thanx, you're right. That worked. It has reduced the warnings to just
> 19. But I don't want to ignore them because I consider learning to
> resolve issues of any sort, as they arrive, while learning the platform
> as an extremely important hurdle i will have to overcome in oder to
> achieve significant mastery of the IDE. So, if you can guide me (i.e.
> give me a direction) as to how to resolve, I will be very grateful.
> REMAINING WARNINGS
>
> 1.The local variable result is never read SimpleTest.java
> /JUnit/src/junit/samples line 49 Java Problem
> 2.The method show() from the type Dialog is deprecated TestRunner.java
> /JUnit/src/junit/swingui line 462 Java Problem
> 3.The method show() from the type Dialog is deprecated TestRunner.java
> /JUnit/src/junit/swingui line 772 Java Problem
> 4. The serializable class AboutDialog does not declare a static final
> serialVersionUID field of type long AboutDialog.java
> /JUnit/src/junit/awtui line 8 Java Problem
> 5. The serializable class AboutDialog does not declare a static final
> serialVersionUID field of type long
> AboutDialog.java/JUnit/src/junit/swingui line 12 Java Problem
> 6. The serializable class AssertionFailedError does not declare a static
> final serialVersionUID field of type long AssertionFailedError.java
> /JUnit/src/junit/framework line 6 Java Problem
> 7. The serializable class ComparisonFailure does not declare a static
> final serialVersionUID field of type long ComparisonFailure.java
> /JUnit/src/junit/framework line 8 Java Problem
> 8. The serializable class CounterPanel does not declare a static final
> serialVersionUID field of type long CounterPanel.java
> /JUnit/src/junit/swingui line 10 Java Problem
> 9. The serializable class FailureListCellRenderer does not declare a
> static final serialVersionUID field of type long FailureRunView.java
> /JUnit/src/junit/swingui line 21 Java Problem
> 10. The serializable class Logo does not declare a static final
> serialVersionUID field of type long Logo.java /JUnit/src/junit/awtui
> line 9 Java Problem
> 11. The serializable class ProgressBar does not declare a static final
> serialVersionUID field of type long ProgressBar.java
> /JUnit/src/junit/awtui line 5 Java Problem
> 12. The serializable class ProgressBar does not declare a static final
> serialVersionUID field of type long ProgressBar.java
> /JUnit/src/junit/swingui line 10 Java Problem
> 13. The serializable class StackEntryRenderer does not declare a static
> final serialVersionUID field of type long DefaultFailureDetailView.java
> /JUnit/src/junit/swingui line 51 Java Problem
> 14. The serializable class StackTraceListModel does not declare a static
> final serialVersionUID field of type long DefaultFailureDetailView.java
> /JUnit/src/junit/swingui line 19 Java Problem
> 15. The serializable class StatusLine does not declare a static final
> serialVersionUID field of type long StatusLine.java
> /JUnit/src/junit/swingui line 11 Java Problem
> 16. The serializable class TestCellRenderer does not declare a static
> final serialVersionUID field of type long TestSelector.java
> /JUnit/src/junit/swingui line 25 Java Problem
> 17. The serializable class TestSelector does not declare a static final
> serialVersionUID field of type long TestSelector.java
> /JUnit/src/junit/swingui line 14 Java Problem
> 18. The serializable class TestSuitePanel does not declare a static
> final serialVersionUID field of type long TestSuitePanel.java
> /JUnit/src/junit/swingui line 13 Java Problem
> 19. The serializable class TestTreeCellRenderer does not declare a
> static final serialVersionUID field of type long TestSuitePanel.java
> /JUnit/src/junit/swingui line 18 Java Problem
>
> Thanx a great deal for your assistance.
>
> dGlobal
>
>
You seem to be confusing the IDE with the Java language. These warnings
are Java language warnings. In order to understand them, you need to
learn the Java language. The IDE is a tool that makes writing programs
(in this case Java programs) easier.

The Eclipse forums are for answering questions related specifically to
Eclipse and not general Java language questions. I would suggest you
spend some time learning the Java programming language by getting a book
or taking a class. You can also search for general Java programming forums.
Re: Eclipse Errors and Warnings [message #519929 is a reply to message #518776] Wed, 10 March 2010 14:32 Go to previous messageGo to next message
dGlobal  is currently offline dGlobal Friend
Messages: 16
Registered: January 2010
Junior Member
Steff

I agree.
Re: Eclipse Errors and Warnings [message #520507 is a reply to message #518776] Fri, 12 March 2010 16:35 Go to previous message
dGlobal  is currently offline dGlobal Friend
Messages: 16
Registered: January 2010
Junior Member
Steff

I want to formally ask you to become my mentor in learning Eclipse. Please advise.

Bliss
Previous Topic:show pop up windows for JDK's javadoc
Next Topic:Heavily customising Getter/Setter creation?
Goto Forum:
  


Current Time: Fri Apr 26 06:14:58 GMT 2024

Powered by FUDForum. Page generated in 0.03888 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top