Thank You.
-Original Message-
From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On
Behalf Of Chris Gioran
Sent: Friday, 29 July 2011 9:18 PM
To: Neo4j user discussions
Cc: Jamal Abreu (jab...@barnardos.org.au); Tatham Oddie
Subject: Re: [Neo4j] neo4j.bat - java path
Hi,
that is a valid complaint. The main idea was to use the java executable that is
on the Path - however that can be still the case and allow for custom
executable locations with just one string substitution.
Consider this added into the backlog.
cheers,
CG
On Fri, Jul 29, 2011 at 2:04 PM, Romiko Derbynew romiko.derby...@readify.net
wrote:
Hi Guys,
Is it possible to update the neo4j.bat file for future releases to have a
global variable for java
Currently it is located in two places in the file neo4j.bat. We using Neo4j
in the cloud and currently we have to do string replacements at two locations:
e.g. - these are my configs that work on dev fabric as I do not rely on
environment paths since java and neo4j are boot strapped from blob storage
and the db is on a cloud drive.
INSTALL SECTION
set mainclass=-DserverMainClass=org.neo4j.server.Bootstrapper
set binPath=java -DworkingDir...
CONSOLE SECTION
set mainclass=-DserverMainClass=org.neo4j.server.Bootstrapper
java -DworkingDir=%~dp0..
Perhaps it would be easier to have one location to store this value, to make
it easier to use absolute paths for java. We use absolute paths due to Azure
VM's.
e.g.
$Java_Path
=e:\AzureTemp\s0\deployment(337)\res\deployment(337).Neo4j.Azure.Server.Neo4jServerHost.0\directory\Neo4jInst\jre6\bin\java.exe
And then
set mainclass=-DserverMainClass=org.neo4j.server.Bootstrapper
set binPath=$Java_Path -DworkingDir...
CONSOLE SECTION
set mainclass=-DserverMainClass=org.neo4j.server.Bootstrapper
$Java_Path -DworkingDir=%~dp0..
We use auto configuration in the cloud, so we always customize the configs on
the fly when vm's spin up. Easier way to search and replace strings would be
much appreciated. This will make it much easier for us to customize the
config on the fly by just replacing $Java_Path.
e.g. after boot strap in the cloud.
:install
set
classpath=-DserverClasspath=lib/*.jar;system/lib/*.jar;plugins/*.jar;system/coordinator/lib/*.jar
set mainclass=-DserverMainClass=org.neo4j.server.Bootstrapper
set
binPath=e:\AzureTemp\s0\deployment(337)\res\deployment(337).Neo4j.Azure.Server.Neo4jServerHost.0\directory\Neo4jInst\jre6\bin\java.exe
-DworkingDir=%~dps0.. -DconfigFile=conf\neo4j-wrapper.conf %classpath%
%mainclass% -jar %~dps0windows-service-wrapper-1.jar %serviceName%
and
:console
set
classpath=-DserverClasspath=lib/*.jar;system/lib/*.jar;plugins/*.jar;system/coordinator/lib/*.jar
set mainclass=-DserverMainClass=org.neo4j.server.Bootstrapper
e:\AzureTemp\s0\deployment(337)\res\deployment(337).Neo4j.Azure.Server.Neo4jServerHost.0\directory\Neo4jInst\jre6\bin\java.exe
-DworkingDir=%~dp0.. -DconfigFile=conf\neo4j-wrapper.conf %classpath%
%mainclass% -jar %~dp0windows-service-wrapper-1.jar
Thanks.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user