# Java

## Cannot resolve reference to bean 'sessionFactory' problem

not long ago i changed my a applicationContext.xml file and added some dependency to a bean

suddenly i get this error on start up

## How to write UTF8 text in Java

 String fullPath="c:\temp\text.txt"; File curfile = new File(fullPath);

//write in UTF8 file format

## Cut , Copy , Paste stops working in Eclipse

This may have happen to you too, you work with Eclipse and suddenly it stops coping and pasting and it is very annoying

To temporarily solve the problem you can disable "Folding" in the Java Editor
Go to: Window-->Preferences-->Java-->Editor-->Folding and un-check the folding option

This should do the trick