Derby DB server start by java code

I do not want to install a database server on target machine. It is possible that we can simply ship a jar file with the database embedded in it, and not worry about installing a database server separately?
I created one application in netbeans using derby and it is working fine in my pc but when i am running on other machine it is giving me an Exception
My code is

System.setProperty("derby.drda.startNetworkServer", "true");
                NetworkServerControl serverControl=new NetworkServerControl();
                serverControl.start(new PrintWriter(System.out,true));
                catch(Exception e)

For connection i wrote this code
` public static Connection getderbyConnection() throws ClassNotFoundException, SQLException
String url = “jdbc:derby://localhost:1527/XLS_Uniquewordlist;create=true”;
String user = “root”;
String password = “root123”;
return (Connection) DriverManager.getConnection(url, user, password);


I am getting this exception

Exception in thread "DRDAConnThread_2" java.lang.NoSuchMethodError: org.apache.derby.iapi.jdbc.EnginePreparedStatement.getVersionCounter()J
	at org.apache.derby.impl.drda.DRDAStatement.prepare(Unknown Source)
	at org.apache.derby.impl.drda.DRDAStatement.explicitPrepare(Unknown Source)
	at org.apache.derby.impl.drda.DRDAConnThread.parsePRPSQLSTT(Unknown Source)
	at org.apache.derby.impl.drda.DRDAConnThread.processCommands(Unknown Source)
	at Source)
May 12, 2015 5:17:59 PM xls_parser.Main_panel btnokActionPerformed
SEVERE: null
java.sql.SQLSyntaxErrorException: DERBY SQL error: SQLCODE: -20001, SQLSTATE: 42X05, SQLERRMC: APP.UNIQUEWORDLIST42X05
	at Source)
	at Source)
	at Source)