db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dan <...@elvberg.com>
Subject Re: PATH (newbie) problems...
Date Wed, 05 Apr 2006 08:25:41 GMT
Hi Susan:
:-) You for valuable contribution to my learning curve!
According to Brian Leonard's Blog here are the steps
for starting the Derby Server:

        
     1. Download the latest official Derby release (10.1.2.1 at the time
        of this writing) and extract the archive. 
     2. Set the DERBY_INSTALL environment variable to point to your
        Derby installation location. For me this is D:
        \db-derby-10.1.2.1-bin.

1.+2. = done.

Start the Derby Server

     1. Open a command prompt and switch to the
        $DERBY_INSTALL/frameworks/NetworkServer/bin directory.
     2. Execute the setNetworkServerCP script, which sets the necessary
        Derby jars on the classpath. 
     3. Execute the startNetworkServer script to start Derby. You should
        then see something like the following:
        
        


1. Here are the files in bin:
[dan@localhost ~]$ cd /$DERBY_INSTALL/frameworks/NetworkServer/bin
[dan@localhost bin]$ ls -l
total 136
-rwxr-xr-x  1 dan dan 1113 Nov  2 13:44 dblook.bat
-rwxr-xr-x  1 dan dan  922 Nov  2 13:44 dblook.ksh
-rwxr-xr-x  1 dan dan 1510 Nov  2 13:44 ij.bat
-rwxr-xr-x  1 dan dan 1161 Nov  2 13:44 ij.ksh
-rwxr-xr-x  1 dan dan 1213 Nov  2 13:44 NetworkServerControl.bat
-rwxr-xr-x  1 dan dan  986 Nov  2 13:44 NetworkServerControl.ksh
-rwxr-xr-x  1 dan dan  716 Nov  2 13:44 setNetworkClientCP.bat
-rwxr-xr-x  1 dan dan  615 Nov  2 13:44 setNetworkClientCP.ksh
-rwxr-xr-x  1 dan dan  742 Nov  2 13:44 setNetworkServerCP.bat
-rwxr-xr-x  1 dan dan  642 Nov  2 13:44 setNetworkServerCP.ksh
-rwxr-xr-x  1 dan dan 1543 Nov  2 13:44 startNetworkServer.bat
-rwxr-xr-x  1 dan dan 1699 Apr  5 09:37 startNetworkServer.ksh
-rwxr-xr-x  1 dan dan 1702 Apr  5 09:35 startNetworkServer.ksh~
-rwxr-xr-x  1 dan dan 1806 Nov  2 13:44 stopNetworkServer.bat
-rwxr-xr-x  1 dan dan 1697 Nov  2 13:44 stopNetworkServer.ksh
-rwxr-xr-x  1 dan dan 1307 Nov  2 13:44 sysinfo.bat
-rwxr-xr-x  1 dan dan 1255 Nov  2 13:44 sysinfo.ksh

2. Executing setNetworkServerCP results in
[dan@localhost bin]$ ./setNetworkServerCP.ksh
[dan@localhost bin]$
i.e. 'nothing' (visible)

3. Executing startNetworkServer results in
[dan@localhost bin]$   ./startNetworkServer.ksh
./startNetworkServer.ksh: line 56: /usr/java/bin/java: No such file or
directory[dan@localhost bin]$

I attach the setNetworkServerCP.ksh and startNetworkServer.ksh files
My present PATHs and CLASSPATHs are resp:
PATH
[dan@localhost bin]$ echo $PATH
/usr/java/jdk1.5.0_04:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/dan/bin
[dan@localhost bin]$
(I've added /usr/java/jdk1.5.0_04 to the PATH acc to your
recommendation)
CLASSPATH
[dan@localhost bin]$ echo $CLASSPATH
/home/dan/mysql-connector-java-3.1.10.tar.gz_FILES/mysql-connector-java-3.1.10/mysql-connector-java-3.1.10-bin.jar:
/home/dan/mysql-connector-java-3.1.10.tar.gz_FILES/mysql-connector-java-3.1.10/mysql-connector-java-3.1.10-bin-g.jar:
/home/dan/cos-05Nov2002.zip_FILES/lib/cos.jar
[dan@localhost bin]$

Help! /dan


Mime
View raw message