[Java][Tips] Compile…

Java also uses compiler. So, if we meet with compile error, we need to check compile option.

Error : “Access restriction : the field …” [in Eclipse]

‘Project’ -> ‘Properties’ -> ‘Java Compiler’ -> ‘Errors/Warnings’ -> ‘Deprecated and restricted API’ -> Forbidden reference (access rule) -> change from ‘Error’ to ‘Warning’.
=> We can make compile success. But, please keep it mind… using forbidden reference is not recommended!!

Using external Jar [in Eclipse]

Right click on Project -> Properties -> select ‘Java Build Path’ -> select ‘Libraries’ tab -> select ‘Add External JARs’ button…


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s