You can configure Neo4j server to start at your server startup. There is an bin/neo4j-installer script with a description in doc/neo4j-installer.txt
If you want to start it manually, you need the right path with the config files etc. Or configure it accordingly. You can check the code for this here: https://github.com/jexp/neo4j-in-memory-server Adapt it to your needs. Michael Am 06.03.2014 um 13:27 schrieb Kalidhakani J <[email protected]>: > Thanks for ur reply. > > I have a server which creates a graph database using EmbeddedDatabaseBuilder. > Every time wen I need to check my graph db, I had to copy the db files to > neo4j server, start it and use. It would be easy for me if I start the neo4j > server on my server startup and through HA i can check my db. I need not > start neo4j server again and again.. > > To be simple, I need to start neo4j server on my server startup.. > > > > > > On Thu, Mar 6, 2014 at 5:40 PM, Michael Hunger > <[email protected]> wrote: > What do you actually want to achieve? > > Michael > > Am 06.03.2014 um 12:50 schrieb Kalidhakani J <[email protected]>: > >> 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 : >> Mar 06, 2014 5:14:27 PM org.neo4j.server.logging.Logger log >> INFO: No database tuning properties (org.neo4j.server.db.tuning.properties) >> found in [null], using defaults. >> Mar 06, 2014 5:14:28 PM org.neo4j.server.logging.Logger log >> WARNING: The key [org.neo4j.server.database.location] is missing from the >> Neo Server configuration. >> Mar 06, 2014 5:14:28 PM org.neo4j.server.logging.Logger log >> SEVERE: Property [org.neo4j.server.properties] has not been set. >> Mar 06, 2014 5:14:28 PM org.neo4j.server.logging.Logger log >> SEVERE: >> org.neo4j.server.startup.healthcheck.StartupHealthCheckFailedException: >> Startup health check failed due to rule [class >> org.neo4j.server.startup.healthcheck.ConfigFileMustBePresentRule]. Property >> [org.neo4j.server.properties] has not been set. >> at >> org.neo4j.server.NeoServerWithEmbeddedWebServer.startupHealthCheck(NeoServerWithEmbeddedWebServer.java:161) >> at >> org.neo4j.server.NeoServerWithEmbeddedWebServer.start(NeoServerWithEmbeddedWebServer.java:89) >> at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:87) >> at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:52) >> at >> in.co.nmsworks.nms.web.GraphDatabaseInvoker$LaunchHelper.run(GraphDatabaseInvoker.java:363) >> >> Mar 06, 2014 5:14:28 PM org.neo4j.server.logging.Logger log >> SEVERE: Failed to start Neo Server on port [7474] >> >> I have set all the properties... >> Am i missing anything here ?? help me.. >> Thanks in advance.. >> >> >> Regards >> Kalidhakani J >> >> -- >> 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 [email protected]. >> 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 [email protected]. > 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 [email protected]. > 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
