[[ blog 이사 과정에서 정확한 posting날짜가 분실됨. 년도와 분기 정도는 맞지 않을까? ]] 

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

[Cases]
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...

[[ blog 이사 과정에서 정확한 posting날짜가 분실됨. 년도와 분기 정도는 맞지 않을까? ]]
 

From top to bottom

/etc/profile
.bash_profile [ -> .bash_login -> .profile ] : if '.bash_profile' doesn't exist the '.bash_login'...
.bashrc : whenever an interactive shell is started.
.bash_logout : when the login shell is existed.

[[ blog 이사 과정에서 정확한 posting날짜가 분실됨. 년도와 분기 정도는 맞지 않을까? ]]
 

Sometimes, script that works well in command shell, doesn't work correctly in 'cron'.
In this case, following should be checked firstly.

-------------------
'cron' uses initial environment varialbe. And in this case, '/bin/sh' is used as a shell.
In case of some high-version-ubuntu, '/bin/sh' is not 'bash' but 'dash'. And this can be root cause of this issue.
To avoid this, we should always add "#!/bin/bash" at the top of bash script, habitually.

+ Recent posts