Why do you want to do it? Did you check the bin/neo4j startup script for the required parameters?
I usually just use bootstrapper.start() On Mon, Jan 27, 2014 at 8:35 AM, Kalidhakani J <kanikali...@gmail.com>wrote: > Hi, > > I am trying to start neo4j server using , > > *org.neo4j.server.Bootstrapper* > > String[] args = new String[1]; > args[0] = "start"; > > Bootstrapper.main(args); > > > When i run the code, I get the following exception : > > SEVERE: > java.lang.NullPointerException > at java.io.File.<init>(File.java:251) > at > org.neo4j.server.preflight.PerformUpgradeIfNecessary.run(PerformUpgradeIfNecessary.java:66) > at org.neo4j.server.preflight.PreFlightTasks.run(PreFlightTasks.java:70) > at > org.neo4j.server.AbstractNeoServer.runPreflightTasks(AbstractNeoServer.java:276) > at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:162) > at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86) > at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49) > at > in.co.nmsworks.nms.web.GraphDatabaseServerInvoker$LaunchHelper.run(GraphDatabaseServerInvoker.java:213) > > Jan 27, 2014 1:02:21 PM org.neo4j.server.logging.Logger log > SEVERE: Unable to upgrade database > Jan 27, 2014 1:02:21 PM org.neo4j.server.logging.Logger log > SEVERE: > org.neo4j.server.ServerStartupException: Starting Neo4j Server failed: > Startup failed due to preflight task [class > org.neo4j.server.preflight.PerformUpgradeIfNecessary]: Unable to upgrade > database > at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:211) > at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86) > at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49) > at > in.co.nmsworks.nms.web.GraphDatabaseServerInvoker$LaunchHelper.run(GraphDatabaseServerInvoker.java:213) > Caused by: org.neo4j.server.preflight.PreflightFailedException: Startup > failed due to preflight task [class > org.neo4j.server.preflight.PerformUpgradeIfNecessary]: Unable to upgrade > database > at > org.neo4j.server.AbstractNeoServer.runPreflightTasks(AbstractNeoServer.java:278) > at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:162) > ... 3 more > > Jan 27, 2014 1:02:21 PM org.neo4j.server.logging.Logger log > SEVERE: Failed to start Neo Server on port [7474] > > > Help me. > Thanks in advance > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to neo4j+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.