Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Can't see custom warnings in eclipse(Javac emits custom warnings, but can't see them in eclipse)
Can't see custom warnings in eclipse [message #890100] Thu, 21 June 2012 02:01 Go to next message
Felix Wan is currently offline Felix Wan
Messages: 3
Registered: June 2012
Junior Member
I want to have an annotation, classes with which applied will be warned.

I followed this instruction. (since I'm not allowed to use links, the URL is misrepresented intentionally)
http : / / stackoverflow.com/questions/1752607/how-to-intentionally-cause-a-custom-java-compiler-warning-message

Now command line javac will emits the warning I want, but in eclipse, I can't see any warning symbol. I have tried turning on all warning switches in Window -> Preferences -> Java - Compiler -> Errors/Warnings.

I know Eclipse JDT has its built-in compiler, what I don't get is why it behaves differently with the javac in my OS on this.
Re: Can't see custom warnings in eclipse [message #890127 is a reply to message #890100] Thu, 21 June 2012 04:19 Go to previous messageGo to next message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 21.06.2012 08:01, Felix Wan wrote:
> http : / /
> stackoverflow.com/questions/1752607/how-to-intentionally-cause-a-custom-java-compiler-warning-message
Did you enable annotation processing on your project in Eclipse
(properties > Java Compiler > Annotation Processing)?

Dani
Re: Can't see custom warnings in eclipse [message #890130 is a reply to message #890127] Thu, 21 June 2012 04:42 Go to previous messageGo to next message
Felix Wan is currently offline Felix Wan
Messages: 3
Registered: June 2012
Junior Member
Dani Megert wrote on Thu, 21 June 2012 04:19
On 21.06.2012 08:01, Felix Wan wrote:
> http : / /
> stackoverflow.com/questions/1752607/how-to-intentionally-cause-a-custom-java-compiler-warning-message
Did you enable annotation processing on your project in Eclipse
(properties > Java Compiler > Annotation Processing)?

Dani

I use Eclipse 3.7.1 and I can't find this preference page Sad
Did a google search and I found some old articles mention it indeed.
Re: Can't see custom warnings in eclipse [message #890136 is a reply to message #890130] Thu, 21 June 2012 04:57 Go to previous messageGo to next message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 21.06.2012 10:42, Felix Wan wrote:
> Dani Megert wrote on Thu, 21 June 2012 04:19
>> On 21.06.2012 08:01, Felix Wan wrote:
>> > http : / / >
>> stackoverflow.com/questions/1752607/how-to-intentionally-cause-a-custom-java-compiler-warning-message
>> Did you enable annotation processing on your project in Eclipse
>> (properties > Java Compiler > Annotation Processing)?
>>
>> Dani
>
> I use Eclipse 3.7.1 and I can't find this preference page :(
It's a property page on your project: select the project in the Package
Explorer > context menu > Properties

Dani
> Did a google search and I found some old articles mention it indeed.
Re: Can't see custom warnings in eclipse [message #890142 is a reply to message #890136] Thu, 21 June 2012 05:15 Go to previous messageGo to next message
Felix Wan is currently offline Felix Wan
Messages: 3
Registered: June 2012
Junior Member
Dani Megert wrote on Thu, 21 June 2012 04:57
On 21.06.2012 10:42, Felix
It's a property page on your project: select the project in the Package
Explorer > context menu > Properties

Yay, found it. One more thing, does it have to be a project specific stuff? And must I explicitly tell the IDE to add custom APT jars to APT factory path rather than simply include them in build path?
Re: Can't see custom warnings in eclipse [message #890415 is a reply to message #890142] Fri, 22 June 2012 05:03 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 21.06.2012 11:15, Felix Wan wrote:
> Dani Megert wrote on Thu, 21 June 2012 04:57
>> On 21.06.2012 10:42, Felix It's a property page on your project:
>> select the project in the Package Explorer > context menu > Properties
>
> Yay, found it. One more thing, does it have to be a project specific
> stuff?
Yes.
> And must I explicitly tell the IDE to add custom APT jars to APT
> factory path rather than simply include them in build path?
Yes, if they contain the processor(s).

Dani
Previous Topic:Also would like to finish HelloWorldSWT
Next Topic:Console Encoding Setting
Goto Forum:
  


Current Time: Wed Jul 23 10:04:14 EDT 2014

Powered by FUDForum. Page generated in 0.02841 seconds