Re: Re: -URGENT HELP-ozone installation problems....
"ss" <[email protected]> 28 Nov 2005 17:42:04 -0000
| Newsgroups | gmane.comp.java.ozone.user |
|---|---|
| Message-ID | <[email protected]> |
This is a multipart mime message
--Next_1133199723---0-203.199.83.39-28166
Content-type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
=0AHi,=0AI intend to run the simple client application given in the ozone u=
ser guide.....=0Abut i get some errors written at the bottom of the code.=
=0A=0A=0A The Car interface=0A=0AIn our example we would like to store cars=
. So we need a class named Car. But we remember that all database objects a=
re controlled by Proxy objects. So the first thing we do is to define the m=
ethod interface of our Car objects. Only the methods of this interface can =
be used to access the underlying database object. To mark this interface as=
an external interface we inherit it from the OzoneRemote interface of Ozon=
e.=0A=0A import org.ozoneDB.OzoneRemote;=0A=0A public=
interface Car extends OzoneRemote {=0A=0A public void setNa=
me( String name ); /*update*/=0A=0A public String name();=0A=
=0A public void setYearOfConst( int year ); /*update*/=0A=0A=
public int age();=0A }=0A =0A=0A=0AThe C=
arImpl class=0A=0AOur database objects will be instances of the CarImpl cla=
ss. This class has to implement the Car interface. It extends OzoneObject t=
o mark it as a database class. Here comes the code for the CarImpl class:=
=0A=0A import org.ozoneDB.OzoneObject;=0A import java=
.util.*;=0A=0A public class CarImpl extends OzoneObject implemen=
ts Car { /**=0A Set version of the serialized data to make i=
t compatible with=0A new class versions.=0A *=
/=0A final static long serialVersi=0A=0A priv=
ate String _name;=0A=0A private int _yearOfConst;=0A=0A =
public CarImpl() {=0A _name =3D new String( "=
" );=0A _yearOfC=0A }=0A=0A =
public String name() {=0A return _name;=0A =
}=0A=0A public void setName( String name ) {=0A =
_name =3D name;=0A }=0A=0A public =
void setYearOfConst( int year ) {=0A _yearOfC=0A =
}=0A=0A public int age() {=0A Cal=
endar cal =3D Calendar.getInstance();=0A return cal.get =
(Calendar.YEAR) - _yearOfConst;=0A }=0A }=0A=0A =
=0AA simple client application=0A=0AThe client application will crea=
te a car, make some operations on it and finally delete it. Here is the cod=
e of the client application:=0A=0A import org.ozoneDB.*;=0A=0A =
public class MyApp {=0A=0A private static External=
Database db;=0A=0A public static void main( String[] args ) =
throws Exception {=0A=0A if (args.length =3D=3D 0) {=0A =
System.out.println( "usage: ojvm MyApp create|delete=
|print" );=0A System.exit( 1 );=0A =
} // create and open a new database connection=0A db =
=3D ExternalDatabase.openDatabase( "ozonedb:remote://localhost:3333");=0A =
System.out.println( "Connected ..." );=0A=0A =
db.reloadClasses();=0A=0A if (args[0].equals( "cr=
eate" )) {=0A createCar();=0A } e=
lse if (args[0].equals( "delete" )) {=0A deleteCar()=
;=0A } else {=0A printCar();=0A =
}=0A=0A db.close();=0A =
}=0A=0A public static void createCar() throws Exception { //=
create a new Car object with the name "my_first_car" // the return value i=
s Car_proxy, which implements the Car-interface=0A Car c=
ar =3D (Car)(db.createObject( CarImpl.class.getName(), 0,=0A =
"my_first_car" ));=0A=0A car.setName( "gott=
fried" );=0A car.setYearOfConst( 1957 );=0A =
}=0A=0A public static void printCar() throws Exception {=
=0A Car car =3D (Car)(db.objectForName( "my_first_car" )=
);=0A if (car !=3D null) {=0A Sys=
tem.out.println( "The car " + car.name() + " is "=0A =
+ car.age() + " years old." );=0A } else {=0A =
System.out.println( "Object my_first_car not found." =
);=0A }=0A }=0A=0A public =
static void deleteCar() throws Exception {=0A Car car =
=3D (Car)(db.objectForName( "my_first_car" ));=0A if (ca=
r !=3D null) {=0A db.deleteObject( car );=0A =
} else {=0A System.out.println( "Object =
my_first_car not found." );=0A }=0A }=0A =
}=0A =0A=0A=0AThe following errors i get :...plz help=0A=
What local host am i supposed to set .....look in the client application co=
de......it sets some local host......=0A=0AE:\jdk1.4\bin\ozone-1.2\samples\=
simple>javac Car.java=0ACar.java:1: package org.ozoneDB does not exist=0Aim=
port org.ozoneDB.OzoneRemote;=0A ^=0ACar.java:3: cannot r=
esolve symbol=0Asymbol : class OzoneRemote=0Alocation: interface Car=0A =
public interface Car extends OzoneRemote {=0A =
^=0A2 errors=0A=0AOn Mon, 28 Nov 2005 Per Nyfelt wrote =
:=0A>The error means ozoneAnt cannot find the ant.jar in %OZONE_HOME%\lib, =
not sure=0A>why and I do not have a windows machine to test on until this w=
eek-end.=0A>=0A>What if you:=0A>=0A>set OZONE_HOME=3DE:\jdk1.4\bin\ozone-1.=
2=0A>set PATH=3D%OZONE_HOME%\bin;%PATH%=0A>E:\jdk1.4\bin\ozone-1.2\samples\=
simple>ozoneAnt=0A>=0A>Do you get the same result?=0A>=0A>Regards,=0A>Per=
=0A>=0A>On Monday 28 November 2005 13.53, ss wrote:=0A> > Sorry to be back =
again:=0A> > problem when the client is to b build in the example of sample=
\simple is=0A> > that when the following stmt is executed :=0A> >=0A> >=0A>=
> E:\jdk1.4\bin\ozone-1.2\samples\simple>E:\jdk1.4\bin\ozone-1.2\bin\ozone=
Ant=0A> > the error message is:=0A> > The system cannot find the specified =
path=0A> > Exception in thread "main" java.lang.NoClassDefFoundError:=0A> >=
org/apache/tools/ant/Main .......plz help me out urgently=0A> >=0A> > On S=
un, 27 Nov 2005 Per Nyfelt wrote :=0A> > >If you have %OZONE_HOME%\bin incl=
uded in the PATH you can run the build=0A> > > file (called build.xml btw) =
by typing ozoneAnt. Actually standing in the=0A> > > sample\simple director=
y you can build by typing ..\..\bin\ozoneAnt. This=0A> > > is already descr=
ibed in the README file btw...=0A> > >=0A> > >Regards,=0A> > >Per=0A> > >=
=0A> > >On Saturday 26 November 2005 18.54, ss wrote:=0A> > > > thnx 4 d co=
operation so far.......i jst hope it to b the last time.....=0A> > > > the =
ozone server is successfully compiled.... but the problem is in the=0A> > >=
> running of the example: there is a problem in starting the=0A> > > > cli=
ent....there is no build.bat file that needs to b run to build the=0A> > > =
> client....nor could i find 'make' newhere ..........plz suggest smthng=0A=
> > > >=0A> > > > On Sat, 26 Nov 2005 Per Nyfelt wrote :=0A> > > > >OK, one=
more try:=0A> > > > >=0A> > > > >Ozone releases comes in two flavors: a bi=
nary and a source package.=0A> > > > >The binary distribution is already co=
mpiled and is the easiest one to=0A> > > > > get started with.=0A> > > > >T=
he source distribution contains all source code but no compiled or=0A> > > =
> > packaged classes and needs to be built before it can be used.=0A> > > >=
>=0A> > > > >To get started with the binary distribution do the following:=
=0A> > > > >1. unzip ozone-1.2-bin.zip to a directory of choice (eg. c:\ozo=
ne-1.2)=0A> > > > >2. set OZONE_HOME to this directory (e.g. c:\ozone-1.2)=
=0A> > > > >3. create a classes directory (c:\ozone-1.2\classes) where you =
can put=0A> > > > > your own code i.e.=0A> > > > >both interface and implem=
entation classes tht needs to be visible for=0A> > > > > the server should =
be in here.=0A> > > > >An alternative to this, which is mentioned in the sa=
mples, is to start=0A> > > > > ozone from the directory where your=0A> > > =
> >classes are compiled (both current directory and OZONE_HOME\classes=0A> =
> > > > are included in the classpath per default.=0A> > > > >=0A> > > > >T=
hat's it; you are now ready to try something out. Client code that=0A> > > =
> > connects to the server needs the ozoneServer.jar to be able to=0A> > > =
> > connect to the server. Look in the samples and in the users guide for=
=0A> > > > > things to get started with and try out.=0A> > > > >If later yo=
u need more full blown apps look in the ozoneApps cvs=0A> > > > > module (a=
lso released as ozone applications in source forge)=0A> > > > >=0A> > > > >=
Running the ozone server=0A> > > > >------------------------=0A> > > > >=0A=
> > > > >1. Initialize database directory.=0A> > > > >=0A> > > > >A databas=
e directory holds all files of an ozone database. To=0A> > > > > initialize=
an empty database start the ozone install tool:=0A> > > > >=0A> > > > > o=
zoneInst -d<data_directory>=0A> > > > >=0A> > > > >e.g.=0A> > > > >c:\ozone=
-1.2\bin\>ozoneInst -dc:/ozone-1.2/data=0A> > > > >=0A> > > > >To see all p=
ossible parameters of ozoneInst type 'ozoneInst -h'.=0A> > > > >=0A> > > > =
>2. Start the server.=0A> > > > >=0A> > > > > ozone -d<data_directory> -u<=
username>=0A> > > > >-u can be omitted=0A> > > > >e.g.=0A> > > > >c:\ozone-=
1.2\bin\>ozone -dc:/ozone-1.2/data=0A> > > > >=0A> > > > >You will get some=
status information and after the initialisation=0A> > > > > ozone is up an=
d running. You can setup as many databases and you can=0A> > > > > run as m=
any servers as you need on one system. To define users and to=0A> > > > > d=
o other administration things use the admin tool:=0A> > > > >=0A> > > > > =
ozoneAdmin=0A> > > > >=0A> > > > >To see all possible commands and paramete=
rs of ozoneAdmin type=0A> > > > > 'ozoneAdmin -h'.=0A> > > > >=0A> > > > >Y=
ou can also try the adminGui which is a Swing based admin tool=0A> > > > >=
=0A> > > > > ozoneAdminGui=0A> > > > >=0A> > > > >Trying out the ozone =
samples=0A> > > > >----------------------------=0A> > > > >=0A> > > > >IMPO=
RTANT NOTE: the VM of the ozone server must be able to access the=0A> > > >=
> class files of the application. To run the ozone samples, you may add=0A=
> > > > > "." to your CLASSPATH and start the ozone server INSIDE THE SAMPL=
E=0A> > > > > DIRECTORY. Alternatively put your compiled classes in=0A> > =
> > > %OZONE_HOME%\classes.=0A> > > > >=0A> > > > >1. Start the server.=0A>=
> > > >=0A> > > > >Open a new console. Change directory to <OZONE_HOME>/sa=
mples/simple.=0A> > > > > Install a new database via 'ozoneInst -d<db_dir>'=
. Start the server=0A> > > > > via 'ozone -d<db_dir> -u<username>' as descr=
ibed above.=0A> > > > >=0A> > > > >2. Start the Client.=0A> > > > >=0A> > >=
> >Open a new console. Change directory to <OZONE_HOME>/samples/simple.=0A=
> > > > > Build the client via '../../build.[sh|bat]' or 'make'. Start the=
=0A> > > > > client via 'ojvm Client'.=0A> > > > >=0A> > > > >Good luck!=0A=
> > > > >=0A> > > > >On Saturday 26 November 2005 13.36, ss wrote:=0A> > > =
> > > sorry to bother u again:=0A> > > > > >=0A> > > > > > 1. the problem w=
ith binary version is that i could not find=0A> > > > > > build.bat file in=
it......suggest sumthng=0A> > > > > >=0A> > > > > > 2. plz give me a brief=
intro of "ant build script"=0A> > > > > >=0A> > > > > > On Sat, 26 Nov 200=
5 Per Nyfelt wrote :=0A> > > > > > >On Saturday 26 November 2005 05.23, ss =
wrote:=0A> > > > > > > > 1. i ve changed my ozone home to=0A> > > > > > > >=
:E:\jdk1.4\bin\ozone-1.2\server=0A> > > > > > > >=0A> > > > > > > > hop=
e it works out=0A> > > > > > >=0A> > > > > > >No it is not correct for the =
source distribution.=0A> > > > > > >I would strongly you switch to the bina=
ry distribution. Get things=0A> > > > > > > up and running first before att=
empting to build the server from=0A> > > > > > > source.=0A> > > > > > >=0A=
> > > > > > > > 2. kindly specify the step by step procedure to build this=
ant=0A> > > > > > > > build script (where to edit,how to save,how to execu=
te etc.) as=0A> > > > > > > > i ve no idea abt it......plz help me out=0A> =
> > > > > >=0A> > > > > > >I just did! I dont know how to make it any clear=
er.=0A> > > > > > >=0A> > > > > > > > 3. when ozone -d E:\jdk1.4\bin\ozon=
e-1.2\server\data -u=0A> > > > > > > > is executed , the err mssg is=0A> >=
> > > > > > Exception in thread "main" java.lang.NoClassDefFoundError:=0A>=
> > > > > > > org/ozoneDB/core/Server wat might b the reason 4 this???????=
=0A> > > > > > >=0A> > > > > > >Something is wrong with your classpath. Pro=
bably the linefeed=0A> > > > > > > problem that makes the scripts uninterpr=
etable by windows.=0A> > > > > > >=0A> > > > > > > > On Fri, 25 Nov 2005 Pe=
r Nyfelt wrote :=0A> > > > > > > > >As a told you earlier: you need to edit=
your batch files and=0A> > > > > > > > > replace linefeed (LF) with Carria=
ge Return Linefeed (CRLF)!=0A> > > > > > > > >=0A> > > > > > > > >One way t=
o do this is to create a simple ant build script:=0A> > > > > > > > ><proje=
ct name=3D"scriptfix" default=3D"lineend" basedir=3D".">=0A> > > > > > > > =
> <target name=3D"lineend">=0A> > > > > > > > > <fixcrlf srcdir=3D"serve=
r/bin" includes=3D"**/*.bat" />=0A> > > > > > > > > </target>=0A> > > > > =
> > > ></project>=0A> > > > > > > > >=0A> > > > > > > > >If you are buildin=
g from src do the following:=0A> > > > > > > > >1. Make sure server\bin\ozo=
neAnt.bat has the right end of line=0A> > > > > > > > > characters. In note=
pad they will look like empty boxes=0A> > > > > > > > > replace all boxes w=
ith an enter (sorry for the pain)=0A> > > > > > > > >2. cd server=0A> > > >=
> > > > >3. execute the build.bat script (this will also fix all your=0A> =
> > > > > > > > EOL characters in build/bin to match your system)=0A> > > >=
> > > > >4. Your ozone distribution are now in server\build - this is=0A> =
> > > > > > > > your OZONE_HOME (unless you copy the files elsewhere if=0A>=
> > > > > > > > course)=0A> > > > > > > > >=0A> > > > > > > > >There is al=
so a dist.bin target besides the default one that=0A> > > > > > > > > build=
s a structure like the binary distribution that might be=0A> > > > > > > > =
> of interest.=0A> > > > > > > > >=0A> > > > > > > > >Good luck!=0A> > > > =
> > > > >=0A> > > > > > > > >/Per=0A> > > > > > > > >=0A> > > > > > > > >On=
Friday 25 November 2005 13.36, ss wrote:=0A> > > > > > > > > > i ve insta=
lled the src version of ozone n set the=0A> > > > > > > > > > variables as =
follows: ozone_home: E:\jdk1.4\bin\ozone-1.2=0A> > > > > > > > > > ozone_p=
ath: E:\jdk1.4\bin\ozone-1.2\server\bin=0A> > > > > > > > > > ozone_jvm: j=
ava=0A> > > > > > > > > > ozone_javac: javac=0A> > > > > > > > > >=0A> > > =
> > > > > > > if any correction is to b made in thse variables do inform=0A=
> > > > > > > > > >=0A> > > > > > > > > > i get the following message when =
this is executed:=0A> > > > > > > > > > ozoneInst -d E:\jdk1.4\bin\ozone-1.=
2\data=0A> > > > > > > > > > offrem $Id: ozoneInst.bat,v 1.2 2002/12/29 11:=
15:55=0A> > > > > > > > > > per_nyfelt Exp $call ojvm.bat org.ozoneDB.tools=
.Install -d=0A> > > > > > > > > > E:\jdk1.4\bin\ozone-1.2\data=0A> > > > > =
> > > > >=0A> > > > > > > > > > i could not find the path for making the ch=
anges u=0A> > > > > > > > > > suggested.........plz help me out.......urgen=
tly=0A> > > > > > > > >=0A> > > > > > > > >--------------------------------=
-----------------------=0A> > > > > > > > >This SF.net email is sponsored b=
y: Splunk Inc. Do you grep=0A> > > > > > > > > through log files for proble=
ms? Stop! Download the new AJAX=0A> > > > > > > > > search engine that ma=
kes searching your log files as easy as=0A> > > > > > > > > surfing the web=
. DOWNLOAD SPLUNK!=0A> > > > > > > > > http://ads.osdn.com/?ad_id=3D7637&a=
lloc_id=3D16865&op=3Dclick=0A> > > > > > > > > ____________________________=
___________________=0A> > > > > > > > >Ozone-users mailing list=0A> > > > >=
> > > >[email protected]=0A> > > > > > > > >https://lists.=
sourceforge.net/lists/listinfo/ozone-users=0A> > > > >=0A> > > > >---------=
----------------------------------------------=0A> > > > >This SF.net email=
is sponsored by: Splunk Inc. Do you grep through log=0A> > > > > files for=
problems? Stop! Download the new AJAX search engine that=0A> > > > > mak=
es searching your log files as easy as surfing the web. DOWNLOAD=0A> > > =
> > SPLUNK! http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick=
=0A> > > > >_______________________________________________=0A> > > > >Ozon=
e-users mailing list=0A> > > > >[email protected]=0A> > > >=
>https://lists.sourceforge.net/lists/listinfo/ozone-users=0A> > >=0A> > >-=
------------------------------------------------------=0A> > >This SF.net e=
mail is sponsored by: Splunk Inc. Do you grep through log=0A> > > files for=
problems? Stop! Download the new AJAX search engine that=0A> > > makes s=
earching your log files as easy as surfing the web. DOWNLOAD=0A> > > SPLU=
NK! http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick=0A> > >__=
_____________________________________________=0A> > >Ozone-users mailing li=
st=0A> > >[email protected]=0A> > >https://lists.sourceforg=
e.net/lists/listinfo/ozone-users=0A>=0A>=0A>-------------------------------=
------------------------=0A>This SF.net email is sponsored by: Splunk Inc. =
Do you grep through log files=0A>for problems? Stop! Download the new AJA=
X search engine that makes=0A>searching your log files as easy as surfing t=
he web. DOWNLOAD SPLUNK!=0A>http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D=
16865&op=3Dclick=0A>_______________________________________________=0A>Ozon=
e-users mailing list=0A>[email protected]=0A>https://lists.=
sourceforge.net/lists/listinfo/ozone-users=0A
--Next_1133199723---0-203.199.83.39-28166
Content-type: text/html;
charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
<P>=0A<BR>=0AHi,<BR>=0AI intend to run the simple client application given =
in the ozone user guide.....<BR>=0Abut i get some errors written at the bot=
tom of the code.<BR>=0A<BR>=0A<BR>=0A The Car interface<BR>=0A<BR>=0AIn our=
example we would like to store cars. So we need a class named Car. But we =
remember that all database objects are controlled by Proxy objects. So the =
first thing we do is to define the method interface of our Car objects. Onl=
y the methods of this interface can be used to access the underlying databa=
se object. To mark this interface as an external interface we inherit it fr=
om the OzoneRemote interface of Ozone.<BR>=0A<BR>=0A &n=
bsp; import org.ozoneDB.OzoneRemote;<BR>=0A<BR>=0A &nbs=
p; public interface Car extends OzoneRemote {<B=
R>=0A<BR>=0A public =
void setName( String name ); /*update*/<BR>=0A<BR>=0A &=
nbsp; public String name();<BR>=0A<BR>=0A =
public void setYearOfCons=
t( int year ); /*update*/<BR>=0A<BR>=0A &=
nbsp; public int age();<BR>=0A &nb=
sp; }<BR>=0A <BR>=0A<BR>=0A<BR>=0AThe Ca=
rImpl class<BR>=0A<BR>=0AOur database objects will be instances of the CarI=
mpl class. This class has to implement the Car interface. It extends OzoneO=
bject to mark it as a database class. Here comes the code for the CarImpl c=
lass:<BR>=0A<BR>=0A import org.ozo=
neDB.OzoneObject;<BR>=0A import ja=
va.util.*;<BR>=0A<BR>=0A public cl=
ass CarImpl extends OzoneObject implements Car { /**<BR>=0A &n=
bsp; Set version of the serialized data =
to make it compatible with<BR>=0A =
new class versions.<BR>=0A =
*/<BR>=0A &nb=
sp; final static long serialVersi<BR>=0A<BR>=0A =
private String _name;<BR>=0A<BR>=0A =
; private int =
_yearOfConst;<BR>=0A<BR>=0A =
public CarImpl() {<BR>=0A =
_name =3D new String( "" );<BR=
>=0A _=
yearOfC<BR>=0A }<BR>=
=0A<BR>=0A public St=
ring name() {<BR>=0A =
return _name;<BR>=0A  =
; }<BR>=0A<BR>=0A &n=
bsp; public void setName( String name ) {<BR>=0A =
_name =3D name;<BR>=0A&nb=
sp; }<BR>=0A<BR>=0A =
public void setYearOfConst=
( int year ) {<BR>=0A  =
; _yearOfC<BR>=0A &n=
bsp; }<BR>=0A<BR>=0A =
public int age() {<BR>=0A =
Calendar cal =3D Calendar.getInstance();<BR>=0A=
retur=
n cal.get (Calendar.YEAR) - _yearOfConst;<BR>=0A =
}<BR>=0A &nb=
sp; }<BR>=0A<BR>=0A <BR>=0AA simple client appl=
ication<BR>=0A<BR>=0AThe client application will create a car, make some op=
erations on it and finally delete it. Here is the code of the client applic=
ation:<BR>=0A<BR>=0A import org.oz=
oneDB.*;<BR>=0A<BR>=0A public clas=
s MyApp {<BR>=0A<BR>=0A &nb=
sp; private static ExternalDatabase db;<BR>=0A<BR>=0A&nb=
sp; public static void mai=
n( String[] args ) throws Exception {<BR>=0A<BR>=0A &nb=
sp; if (args.length =3D=3D 0) {<B=
R>=0A =
System.out.println( "usage: ojvm MyApp create|delete|pri=
nt" );<BR>=0A &=
nbsp; System.exit( 1 );<BR>=0A &nb=
sp; } // create and open a new da=
tabase connection<BR>=0A &n=
bsp; db =3D ExternalDatabase.openDatabase( "ozonedb:remo=
te://localhost:3333");<BR>=0A =
System.out.println( "Connected ..." =
);<BR>=0A<BR>=0A &nb=
sp; db.reloadClasses();<BR>=0A<BR>=0A &nb=
sp; if (args[0].equals( "create&quo=
t; )) {<BR>=0A  =
; createCar();<BR>=0A  =
; } else if (args[0].equals( "delet=
e" )) {<BR>=0A =
deleteCar();<BR>=0A =
} else {<BR>=0A &nbs=
p; printCar(=
);<BR>=0A &nb=
sp; }<BR>=0A<BR>=0A =
db.close();<BR>=0A &=
nbsp; }<BR>=0A<BR>=0A  =
; public static void createCar() throws Exception { // create a new =
Car object with the name "my_first_car" // the return value is Ca=
r_proxy, which implements the Car-interface<BR>=0A &nbs=
p; Car car =3D (Car)(db.createObj=
ect( CarImpl.class.getName(), 0,<BR>=0A &=
nbsp; "my_firs=
t_car" ));<BR>=0A<BR>=0A &nbs=
p; car.setName( "gottfried" );<BR>=0A =
car.setYearO=
fConst( 1957 );<BR>=0A &nbs=
p; }<BR>=0A<BR>=0A p=
ublic static void printCar() throws Exception {<BR>=0A =
Car car =3D (Car)(db.objec=
tForName( "my_first_car" ));<BR>=0A &n=
bsp; if (car !=3D null) {<BR>=0A &=
nbsp; =
System.out.println( "The car " + car.name() + " is "<B=
R>=0A =
+ car.age() + " years old.&q=
uot; );<BR>=0A  =
; } else {<BR>=0A &n=
bsp; System.out.println( "Object my_first_=
car not found." );<BR>=0A &nb=
sp; }<BR>=0A =
}<BR>=0A<BR>=0A &nbs=
p; public static void deleteCar() throws Exception {<BR>=0A &n=
bsp; Car car =3D (C=
ar)(db.objectForName( "my_first_car" ));<BR>=0A &nbs=
p; if (car !=3D null) {<BR=
>=0A &=
nbsp; db.deleteObject( car );<BR>=0A &nbs=
p; } else {<BR>=0A &=
nbsp; System.out.pr=
intln( "Object my_first_car not found." );<BR>=0A &n=
bsp; }<BR>=0A =
}<BR>=0A &nb=
sp; }<BR>=0A <BR>=0A<BR>=0A<BR>=
=0AThe following errors i get :...plz help<BR>=0AWhat local host am i suppo=
sed to set .....look in the client application code......it sets some local=
host......<BR>=0A<BR>=0AE:\jdk1.4\bin\ozone-1.2\samples\simple>javac Ca=
r.java<BR>=0ACar.java:1: package org.ozoneDB does not exist<BR>=0Aimport or=
g.ozoneDB.OzoneRemote;<BR>=0A &nbs=
p; ^<BR>=0ACar.java:3: cannot resolve symbol<BR>=0Asymbol&nb=
sp; : class OzoneRemote<BR>=0Alocation: interface Car<BR>=0A &=
nbsp; public interface Car extends OzoneRemote {<BR>=
=0A &n=
bsp; ^<BR>=
=0A2 errors<BR>=0A<BR>=0AOn Mon, 28 Nov 2005 Per Nyfelt wrote :<BR>=0A>T=
he error means ozoneAnt cannot find the ant.jar in %OZONE_HOME%\lib, not su=
re<BR>=0A>why and I do not have a windows machine to test on until this =
week-end.<BR>=0A><BR>=0A>What if you:<BR>=0A><BR>=0A>set OZONE_=
HOME=3DE:\jdk1.4\bin\ozone-1.2<BR>=0A>set PATH=3D%OZONE_HOME%\bin;%PATH%=
<BR>=0A>E:\jdk1.4\bin\ozone-1.2\samples\simple>ozoneAnt<BR>=0A><BR=
>=0A>Do you get the same result?<BR>=0A><BR>=0A>Regards,<BR>=0A>=
;Per<BR>=0A><BR>=0A>On Monday 28 November 2005 13.53, ss wrote:<BR>=
=0A> > Sorry to be back again:<BR>=0A> > problem when the clien=
t is to b build in the example of sample\simple is<BR>=0A> > that whe=
n the following stmt is executed :<BR>=0A> ><BR>=0A> ><BR>=0A&g=
t; > E:\jdk1.4\bin\ozone-1.2\samples\simple>E:\jdk1.4\bin\ozone-1.2\b=
in\ozoneAnt<BR>=0A> > the error message is:<BR>=0A> > The syste=
m cannot find the specified path<BR>=0A> > Exception in thread "=
main" java.lang.NoClassDefFoundError:<BR>=0A> > org/apache/tools=
/ant/Main .......plz help me out urgently<BR>=0A> ><BR>=0A> > O=
n Sun, 27 Nov 2005 Per Nyfelt wrote :<BR>=0A> > >If you have %OZON=
E_HOME%\bin included in the PATH you can run the build<BR>=0A> > >=
file (called build.xml btw) by typing ozoneAnt. Actually standing in the<B=
R>=0A> > > sample\simple directory you can build by typing ..\..\b=
in\ozoneAnt. This<BR>=0A> > > is already described in the README f=
ile btw...<BR>=0A> > ><BR>=0A> > >Regards,<BR>=0A> >=
; >Per<BR>=0A> > ><BR>=0A> > >On Saturday 26 November =
2005 18.54, ss wrote:<BR>=0A> > > > thnx 4 d cooperation so far=
.......i jst hope it to b the last time.....<BR>=0A> > > > the =
ozone server is successfully compiled.... but the problem is in the<BR>=0A&=
gt; > > > running of the example: there is a problem in starting t=
he<BR>=0A> > > > client....there is no build.bat file that need=
s to b run to build the<BR>=0A> > > > client....nor could i fin=
d 'make' newhere ..........plz suggest smthng<BR>=0A> > > ><BR>=
=0A> > > > On Sat, 26 Nov 2005 Per Nyfelt wrote :<BR>=0A> &g=
t; > > >OK, one more try:<BR>=0A> > > > ><BR>=0A>=
; > > > >Ozone releases comes in two flavors: a binary and a so=
urce package.<BR>=0A> > > > >The binary distribution is alre=
ady compiled and is the easiest one to<BR>=0A> > > > > get s=
tarted with.<BR>=0A> > > > >The source distribution contains=
all source code but no compiled or<BR>=0A> > > > > packaged=
classes and needs to be built before it can be used.<BR>=0A> > > =
> ><BR>=0A> > > > >To get started with the binary dist=
ribution do the following:<BR>=0A> > > > >1. unzip ozone-1.2=
-bin.zip to a directory of choice (eg. c:\ozone-1.2)<BR>=0A> > > &=
gt; >2. set OZONE_HOME to this directory (e.g. c:\ozone-1.2)<BR>=0A> =
> > > >3. create a classes directory (c:\ozone-1.2\classes) whe=
re you can put<BR>=0A> > > > > your own code i.e.<BR>=0A>=
> > > >both interface and implementation classes tht needs to =
be visible for<BR>=0A> > > > > the server should be in here.=
<BR>=0A> > > > >An alternative to this, which is mentioned i=
n the samples, is to start<BR>=0A> > > > > ozone from the di=
rectory where your<BR>=0A> > > > >classes are compiled (both=
current directory and OZONE_HOME\classes<BR>=0A> > > > > ar=
e included in the classpath per default.<BR>=0A> > > > ><BR>=
=0A> > > > >That's it; you are now ready to try something ou=
t. Client code that<BR>=0A> > > > > connects to the server n=
eeds the ozoneServer.jar to be able to<BR>=0A> > > > > conne=
ct to the server. Look in the samples and in the users guide for<BR>=0A>=
> > > > things to get started with and try out.<BR>=0A> >=
; > > >If later you need more full blown apps look in the ozoneApp=
s cvs<BR>=0A> > > > > module (also released as ozone applica=
tions in source forge)<BR>=0A> > > > ><BR>=0A> > > =
> >Running the ozone server<BR>=0A> > > > >-----------=
-------------<BR>=0A> > > > ><BR>=0A> > > > >=
1. Initialize database directory.<BR>=0A> > > > ><BR>=0A>=
> > > >A database directory holds all files of an ozone databa=
se. To<BR>=0A> > > > > initialize an empty database start th=
e ozone install tool:<BR>=0A> > > > ><BR>=0A> > > &=
gt; > ozoneInst -d<data_directory><BR>=0A> =
> > > ><BR>=0A> > > > >e.g.<BR>=0A> > >=
> >c:\ozone-1.2\bin\>ozoneInst -dc:/ozone-1.2/data<BR>=0A> >=
; > > ><BR>=0A> > > > >To see all possible paramete=
rs of ozoneInst type 'ozoneInst -h'.<BR>=0A> > > > ><BR>=0A&=
gt; > > > >2. Start the server.<BR>=0A> > > > ><=
BR>=0A> > > > > ozone -d<data_directo=
ry> -u<username><BR>=0A> > > > >-u can be omitted<B=
R>=0A> > > > >e.g.<BR>=0A> > > > >c:\ozone-1.=
2\bin\>ozone -dc:/ozone-1.2/data<BR>=0A> > > > ><BR>=0A&g=
t; > > > >You will get some status information and after the in=
itialisation<BR>=0A> > > > > ozone is up and running. You ca=
n setup as many databases and you can<BR>=0A> > > > > run as=
many servers as you need on one system. To define users and to<BR>=0A> =
> > > > do other administration things use the admin tool:<BR>=
=0A> > > > ><BR>=0A> > > > > &n=
bsp;ozoneAdmin<BR>=0A> > > > ><BR>=0A> > > > >=
;To see all possible commands and parameters of ozoneAdmin type<BR>=0A> =
> > > > 'ozoneAdmin -h'.<BR>=0A> > > > ><BR>=0A&=
gt; > > > >You can also try the adminGui which is a Swing based=
admin tool<BR>=0A> > > > ><BR>=0A> > > > >&n=
bsp; ozoneAdminGui<BR>=0A> > > > ><BR>=0A> > &=
gt; > >Trying out the ozone samples<BR>=0A> > > > >---=
-------------------------<BR>=0A> > > > ><BR>=0A> > &g=
t; > >IMPORTANT NOTE: the VM of the ozone server must be able to acce=
ss the<BR>=0A> > > > > class files of the application. To ru=
n the ozone samples, you may add<BR>=0A> > > > > ".&quo=
t; to your CLASSPATH and start the ozone server INSIDE THE SAMPLE<BR>=0A>=
; > > > > DIRECTORY. Alternatively put your compiled clas=
ses in<BR>=0A> > > > > %OZONE_HOME%\classes.<BR>=0A> >=
> > ><BR>=0A> > > > >1. Start the server.<BR>=0A&g=
t; > > > ><BR>=0A> > > > >Open a new console. Ch=
ange directory to <OZONE_HOME>/samples/simple.<BR>=0A> > > &=
gt; > Install a new database via 'ozoneInst -d<db_dir>'. Start the=
server<BR>=0A> > > > > via 'ozone -d<db_dir> -u<us=
ername>' as described above.<BR>=0A> > > > ><BR>=0A> &=
gt; > > >2. Start the Client.<BR>=0A> > > > ><BR>=
=0A> > > > >Open a new console. Change directory to <OZON=
E_HOME>/samples/simple.<BR>=0A> > > > > Build the client =
via '../../build.[sh|bat]' or 'make'. Start the<BR>=0A> > > > &=
gt; client via 'ojvm Client'.<BR>=0A> > > > ><BR>=0A> >=
; > > >Good luck!<BR>=0A> > > > ><BR>=0A> > &=
gt; > >On Saturday 26 November 2005 13.36, ss wrote:<BR>=0A> > =
> > > > sorry to bother u again:<BR>=0A> > > > >=
><BR>=0A> > > > > > 1. the problem with binary versio=
n is that i could not find<BR>=0A> > > > > > build.bat fi=
le in it......suggest sumthng<BR>=0A> > > > > ><BR>=0A>=
; > > > > > 2. plz give me a brief intro of "ant build =
script"<BR>=0A> > > > > ><BR>=0A> > > > =
> > On Sat, 26 Nov 2005 Per Nyfelt wrote :<BR>=0A> > > > =
> > >On Saturday 26 November 2005 05.23, ss wrote:<BR>=0A> >=
> > > > > > 1. i ve changed my ozone home to<BR>=0A> =
> > > > > > > :E:\jdk1.4\bin\ozone-1.2\server<BR>=0A&g=
t; > > > > > > ><BR>=0A> > > > > > &=
gt; > hope it works out<BR>=0A> > > > > >=
><BR>=0A> > > > > > >No it is not correct for the =
source distribution.<BR>=0A> > > > > > >I would strong=
ly you switch to the binary distribution. Get things<BR>=0A> > > &=
gt; > > > up and running first before attempting to build the serv=
er from<BR>=0A> > > > > > > source.<BR>=0A> > &g=
t; > > > ><BR>=0A> > > > > > > > 2.&nbs=
p; kindly specify the step by step procedure to build this ant<BR>=0A> &=
gt; > > > > > > build script (where to edit,how to save,h=
ow to execute etc.) as<BR>=0A> > > > > > > > i ve n=
o idea abt it......plz help me out<BR>=0A> > > > > > >=
<BR>=0A> > > > > > >I just did! I dont know how to mak=
e it any clearer.<BR>=0A> > > > > > ><BR>=0A> > =
> > > > > > 3. when ozone -d E:\jdk1.4\bin\oz=
one-1.2\server\data -u<BR>=0A> > > > > > > > is exe=
cuted , the err mssg is<BR>=0A> > > > > > > >=
Exception in thread "main" java.lang.NoClassDefFoundError:<BR>=
=0A> > > > > > > > org/ozoneDB/core/Server wat migh=
t b the reason 4 this???????<BR>=0A> > > > > > ><BR>=
=0A> > > > > > >Something is wrong with your classpath=
. Probably the linefeed<BR>=0A> > > > > > > problem th=
at makes the scripts uninterpretable by windows.<BR>=0A> > > > =
> > ><BR>=0A> > > > > > > > On Fri, 25 Nov=
2005 Per Nyfelt wrote :<BR>=0A> > > > > > > > >=
As a told you earlier: you need to edit your batch files and<BR>=0A> >=
; > > > > > > > replace linefeed (LF) with Carriage Re=
turn Linefeed (CRLF)!<BR>=0A> > > > > > > > ><BR=
>=0A> > > > > > > > >One way to do this is to cr=
eate a simple ant build script:<BR>=0A> > > > > > > &g=
t; ><project name=3D"scriptfix" default=3D"lineend&quo=
t; basedir=3D"."><BR>=0A> > > > > > > >=
; > <target name=3D"lineend"><BR>=0A=
> > > > > > > > > &nb=
sp; <fixcrlf srcdir=3D"server/bin" includes=3D"**/*=
.bat" /><BR>=0A> > > > > > > > > =
</target><BR>=0A> > > > > > > > =
></project><BR>=0A> > > > > > > > ><BR>=
=0A> > > > > > > > >If you are building from src=
do the following:<BR>=0A> > > > > > > > >1. Mak=
e sure server\bin\ozoneAnt.bat has the right end of line<BR>=0A> > &g=
t; > > > > > > characters. In notepad they will look like=
empty boxes<BR>=0A> > > > > > > > > replace all=
boxes with an enter (sorry for the pain)<BR>=0A> > > > > &g=
t; > > >2. cd server<BR>=0A> > > > > > > >=
>3. execute the build.bat script (this will also fix all your<BR>=0A>=
; > > > > > > > > EOL characters in build/bin to ma=
tch your system)<BR>=0A> > > > > > > > >4. Your =
ozone distribution are now in server\build - this is<BR>=0A> > > &=
gt; > > > > > your OZONE_HOME (unless you copy the files els=
ewhere if<BR>=0A> > > > > > > > > course)<BR>=0A=
> > > > > > > > ><BR>=0A> > > > >=
> > > >There is also a dist.bin target besides the default one=
that<BR>=0A> > > > > > > > > builds a structure=
like the binary distribution that might be<BR>=0A> > > > > =
> > > > of interest.<BR>=0A> > > > > > > &=
gt; ><BR>=0A> > > > > > > > >Good luck!<BR>=
=0A> > > > > > > > ><BR>=0A> > > > &=
gt; > > > >/Per<BR>=0A> > > > > > > > &=
gt;<BR>=0A> > > > > > > > >On Friday 25 November=
2005 13.36, ss wrote:<BR>=0A> > > > > > > > > &=
gt; i ve installed the src version of ozone n set the<BR>=0A> >=
> > > > > > > > variables as follows: ozone_home:&=
nbsp; E:\jdk1.4\bin\ozone-1.2<BR>=0A> > > > > > > >=
> > ozone_path: E:\jdk1.4\bin\ozone-1.2\server\bin<BR>=0A> =
> > > > > > > > > ozone_jvm: java<BR>=0A> >=
; > > > > > > > > ozone_javac: javac<BR>=0A> >=
; > > > > > > > ><BR>=0A> > > > > &g=
t; > > > > if any correction is to b made in thse variables do =
inform<BR>=0A> > > > > > > > > ><BR>=0A> &=
gt; > > > > > > > > i get the following message whe=
n this is executed:<BR>=0A> > > > > > > > > >=
ozoneInst -d E:\jdk1.4\bin\ozone-1.2\data<BR>=0A> > > > > &=
gt; > > > > offrem $Id: ozoneInst.bat,v 1.2 2002/12/29 11:15:55=
<BR>=0A> > > > > > > > > > per_nyfelt Exp $ca=
ll ojvm.bat org.ozoneDB.tools.Install -d<BR>=0A> > > > > >=
; > > > > E:\jdk1.4\bin\ozone-1.2\data<BR>=0A> > > >=
; > > > > > ><BR>=0A> > > > > > > &g=
t; > > i could not find the path for making the changes u<BR>=0A> =
> > > > > > > > > suggested.........plz help me =
out.......urgently<BR>=0A> > > > > > > > ><BR>=
=0A> > > > > > > > >----------------------------=
---------------------------<BR>=0A> > > > > > > > &=
gt;This SF.net email is sponsored by: Splunk Inc. Do you grep<BR>=0A> &g=
t; > > > > > > > through log files for problems? =
Stop! Download the new AJAX<BR>=0A> > > > > > >=
> > search engine that makes searching your log files as easy as<BR>=
=0A> > > > > > > > > surfing the web. DOWN=
LOAD SPLUNK!<BR>=0A> > > > > > > > > http://ads.=
osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick<BR>=0A> > =
> > > > > > > ________________________________________=
_______<BR>=0A> > > > > > > > >Ozone-users maili=
ng list<BR>=0A> > > > > > > > >Ozone-users@lists=
.sourceforge.net<BR>=0A> > > > > > > > >https://=
lists.sourceforge.net/lists/listinfo/ozone-users<BR>=0A> > > > =
><BR>=0A> > > > >----------------------------------------=
---------------<BR>=0A> > > > >This SF.net email is sponsore=
d by: Splunk Inc. Do you grep through log<BR>=0A> > > > > fi=
les for problems? Stop! Download the new AJAX search engine tha=
t<BR>=0A> > > > > makes searching your log files as easy as =
surfing the web. DOWNLOAD<BR>=0A> > > > > SPLUNK=
! http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick<BR>=
=0A> > > > >_______________________________________________<=
BR>=0A> > > > >Ozone-users mailing list<BR>=0A> > >=
> >[email protected]<BR>=0A> > > > >h=
ttps://lists.sourceforge.net/lists/listinfo/ozone-users<BR>=0A> > >=
;<BR>=0A> > >-----------------------------------------------------=
--<BR>=0A> > >This SF.net email is sponsored by: Splunk Inc. Do yo=
u grep through log<BR>=0A> > > files for problems? Stop!&nbs=
p; Download the new AJAX search engine that<BR>=0A> > > makes sear=
ching your log files as easy as surfing the web. DOWNLOAD<BR>=
=0A> > > SPLUNK! http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D=
16865&op=3Dclick<BR>=0A> > >__________________________________=
_____________<BR>=0A> > >Ozone-users mailing list<BR>=0A> > =
>[email protected]<BR>=0A> > >https://lists.sou=
rceforge.net/lists/listinfo/ozone-users<BR>=0A><BR>=0A><BR>=0A>---=
----------------------------------------------------<BR>=0A>This SF.net =
email is sponsored by: Splunk Inc. Do you grep through log files<BR>=0A>=
for problems? Stop! Download the new AJAX search engine that ma=
kes<BR>=0A>searching your log files as easy as surfing the web.&nb=
sp; DOWNLOAD SPLUNK!<BR>=0A>http://ads.osdn.com/?ad_id=3D7637&alloc_=
id=3D16865&op=3Dclick<BR>=0A>_______________________________________=
________<BR>=0A>Ozone-users mailing list<BR>=0A>[email protected]=
rceforge.net<BR>=0A>https://lists.sourceforge.net/lists/listinfo/ozone-u=
sers<BR>=0A=0A</P>=0A<br><br>=0A<a href=3D"http://adworks.rediff.com/cgi-bi=
n/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5=
?PARTNER=3D3"><IMG SRC=3D"http://adworks.rediff.com/cgi-bin/AdWorks/sigimpr=
ess.cgi/www.rediff.com/signature-home.htm/1963059423@Middle5?OAS_query=3Dnu=
ll&PARTNER=3D3" BORDER=3D0 VSPACE=3D0 HSPACE=3D0></a>=0A
--Next_1133199723---0-203.199.83.39-28166--
-------------------------------------------------------
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