I tried to get the data from my database name as jaane with user name Hello and Password hello. Error:
java.lang.SecurityException: Prohibited package name:
You need to specify the Database Name, and there are two slashes before localhost. I assume hello is your username and Hello the password...
Connection connection = DriverManager.getConnection( "jdbc:derby://localhost:1527/DatabaseName","hello","Hello" );
...that is after you change your package name to something other than java!