Re: ozone installation problems....

Per Nyfelt <[email protected]> Sat, 26 Nov 2005 17:25:03 +0000
Newsgroups gmane.comp.java.ozone.user
Organization New Field Consulting
Message-ID <[email protected]>
OK, one more try:

Ozone releases comes in two flavors: a binary and a source package.
The binary distribution is already compiled and is the easiest one to get 
started with.
The source distribution contains all source code but no compiled or packaged 
classes and needs to be built before it can be used.

To get started with the binary distribution do the following:
1. unzip ozone-1.2-bin.zip to a directory of choice (eg. c:\ozone-1.2)
2. set OZONE_HOME to this directory (e.g. c:\ozone-1.2)
3. create a classes directory (c:\ozone-1.2\classes) where you can put your 
own code i.e.
both interface and implementation classes tht needs to be visible for the 
server should be in here.
An alternative to this, which is mentioned in the samples, is to start ozone 
from the directory where your
classes are compiled (both current directory and OZONE_HOME\classes are 
included in the classpath per default.

That's it; you are now ready to try something out. Client code that connects 
to the server needs the ozoneServer.jar to be able to connect to the server. 
Look in the samples and in the users guide for things to get started with and 
try out.
If later you need more full blown apps look in the ozoneApps cvs module (also 
released as ozone applications in source forge)

Running the ozone server
------------------------

1. Initialize database directory.

A database directory holds all files of an ozone database. To initialize an
empty database start the ozone install tool:

	ozoneInst -d<data_directory>

e.g. 
c:\ozone-1.2\bin\>ozoneInst -dc:/ozone-1.2/data

To see all possible parameters of ozoneInst type 'ozoneInst -h'.

2. Start the server.

	ozone -d<data_directory> -u<username>
-u can be omitted
e.g.
c:\ozone-1.2\bin\>ozone -dc:/ozone-1.2/data

You will get some status information and after the initialisation ozone is up
and running. You can setup as many databases and you can run as many servers
as you need on one system. To define users and to do other administration
things use the admin tool:

	ozoneAdmin

To see all possible commands and parameters of ozoneAdmin type 'ozoneAdmin 
-h'.

You can also try the adminGui which is a Swing based admin tool

    ozoneAdminGui

Trying out the ozone samples
----------------------------

IMPORTANT NOTE: the VM of the ozone server must be able to access the class
   files of the application. To run the ozone samples, you may add "." to
   your CLASSPATH and start the ozone server INSIDE THE SAMPLE DIRECTORY. 
Alternatively  put your compiled classes in %OZONE_HOME%\classes.

1. Start the server.

Open a new console. Change directory to <OZONE_HOME>/samples/simple. Install
a new database via 'ozoneInst -d<db_dir>'. Start the server via
'ozone -d<db_dir> -u<username>' as described above.

2. Start the Client.

Open a new console. Change directory to <OZONE_HOME>/samples/simple. Build
the client via '../../build.[sh|bat]' or 'make'. Start the client via
'ojvm Client'.

Good luck!


On Saturday 26 November 2005 13.36, ss wrote:
> sorry to bother u again:
>
> 1. the problem with binary version is that i could not find build.bat file
> in it......suggest sumthng
>
> 2. plz give me a brief intro of "ant build script"
>
> On Sat, 26 Nov 2005 Per Nyfelt wrote :
> >On Saturday 26 November 2005 05.23, ss wrote:
> > > 1. i ve changed my ozone home to :E:\jdk1.4\bin\ozone-1.2\server
> > >
> > >    hope it works out
> >
> >No it is not correct for the source distribution.
> >I would strongly you switch to the binary distribution. Get things up and
> >running first before attempting to build the server from source.
> >
> > > 2.  kindly specify the step by step procedure to build this ant build
> > > script (where to edit,how to save,how to execute etc.) as i ve no idea
> > > abt it......plz help me out
> >
> >I just did! I dont know how to make it any clearer.
> >
> > > 3.  when  ozone -d E:\jdk1.4\bin\ozone-1.2\server\data -u
> > > is executed , the  err mssg is
> > > Exception in thread "main" java.lang.NoClassDefFoundError:
> > > org/ozoneDB/core/Server wat might b the reason 4 this???????
> >
> >Something is wrong with your classpath. Probably the linefeed problem that
> >makes the scripts uninterpretable by windows.
> >
> > > On Fri, 25 Nov 2005 Per Nyfelt wrote :
> > > >As a told you earlier: you need to edit your batch files and replace
> > > > linefeed (LF) with Carriage Return Linefeed (CRLF)!
> > > >
> > > >One way to do this is to create a simple ant build script:
> > > ><project name="scriptfix" default="lineend" basedir=".">
> > > > 	<target name="lineend">
> > > > 		<fixcrlf srcdir="server/bin" includes="**/*.bat" />
> > > > 	</target>
> > > ></project>
> > > >
> > > >If you are building from src do the following:
> > > >1. Make sure server\bin\ozoneAnt.bat has the right end of line
> > > > characters. In notepad they will look like empty boxes replace all
> > > > boxes with an enter (sorry for the pain)
> > > >2. cd server
> > > >3. execute the build.bat script (this will also fix all your EOL
> > > > characters in build/bin to match your system)
> > > >4. Your ozone distribution are now in server\build - this is your
> > > > OZONE_HOME (unless you copy the files elsewhere if course)
> > > >
> > > >There is also a dist.bin target besides the default one that builds a
> > > >structure like the binary distribution that might be of interest.
> > > >
> > > >Good luck!
> > > >
> > > >/Per
> > > >
> > > >On Friday 25 November 2005 13.36, ss wrote:
> > > > >  i ve installed the src version of ozone n set the variables as
> > > > > follows: ozone_home:  E:\jdk1.4\bin\ozone-1.2
> > > > > ozone_path:  E:\jdk1.4\bin\ozone-1.2\server\bin
> > > > > ozone_jvm: java
> > > > > ozone_javac: javac
> > > > >
> > > > > if any correction is to b made in thse variables do inform
> > > > >
> > > > > i get the following message when this is executed:
> > > > > ozoneInst -d E:\jdk1.4\bin\ozone-1.2\data
> > > > > offrem $Id: ozoneInst.bat,v 1.2 2002/12/29 11:15:55 per_nyfelt Exp
> > > > > $call ojvm.bat org.ozoneDB.tools.Install -d
> > > > > E:\jdk1.4\bin\ozone-1.2\data
> > > > >
> > > > > i could not find the path for making the changes u
> > > > > suggested.........plz help me out.......urgently
> > > >
> > > >-------------------------------------------------------
> > > >This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> > > > files for problems?  Stop!  Download the new AJAX search engine that
> > > > makes searching your log files as easy as surfing the  web.  DOWNLOAD
> > > > SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> > > >_______________________________________________
> > > >Ozone-users mailing list
> > > >[email protected]
> > > >https://lists.sourceforge.net/lists/listinfo/ozone-users


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click