Likhan
Likhan

Reputation: 109

Set warning as error in eclipse juno IDE

I want to set warning as error in my Eclipse Juno IDE.

public class Main {

    public static void main(String[] args) {
        TryRefactoring try1 = new TryRefactoring();//warning shown here
    } 
}

but I want to set this warning show me as error in my IDE ?

Upvotes: 1

Views: 2055

Answers (2)

Juliano Suman Curti
Juliano Suman Curti

Reputation: 416

I will update @Matthew Ertel's answer to April, 2021.

Menu Window > Preferences > Java > Compiler > Error/Warnings.

Upvotes: 2

Matthew Ertel
Matthew Ertel

Reputation: 198

In eclipse if you right click on your Project in the Package Explorer, then go to properties -> Java Compiler -> Errors/Warnings. You can then manually change which compiler findings appear as warnings/errors/ignored etc...

Upvotes: 3

Related Questions