Hi, I investigated further. It is something related to my NetBeans IDE.
When I run the test program from outside IDE it gives the correct result. But when I do this from IDE the result is as I posted in the previous message. Also, older projects, imported from the previous machine work fine. So I feel it is related to NetBeans project settings. I'm not sure where and what I should change in IDE (or maybe just reinstall it), so I continue my investigation. It seems all is good with Derby DB itself. Thanks for the hints. Regards, Orange