db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anil Samuel" <anil.sam...@gmail.com>
Subject Re: PATH (newbie) problems...
Date Thu, 06 Apr 2006 06:55:26 GMT
1. Are you using the .ksh from
db-derby-10.1.2.1-bin/frameworks/NetworkServer/bin/
?
2. somehow derbynet.jar is missing in your classpath which is why this
error.

Anthos

On 4/6/06, dan <dan@elvberg.com> wrote:
>
> Hi Anil:
> This is what I get
> "
> [dan@localhost bin]$ ./setNetworkClientCP.ksh
>
> CLASSPATH=/home/dan/DerbyInstall/lib/derbyclient.jar:/home/dan/DerbyInstall/lib/derbytools.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.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]$
> "
> /dan
>
>
> ---------- Forwarded message ----------
> From: "Anil Samuel" <anil.samuel@gmail.com>
> To: "Derby Discussion" <derby-user@db.apache.org>
> Date: Thu, 6 Apr 2006 07:47:14 +1000
> Subject: Re: PATH (newbie) problems...
> Can you add
> echo CLASSPATH=$CLASSPATH
> at the end of the setNetworkClientCP.ksh, try executing the script and
> post here the console output.
>
> Anthos
>
> On 4/5/06, dan <dan@elvberg.com> wrote:
> >
> > Hi Anil:
> > I've changed the scripts according to your recommendation, from
> > [ -z "$CLASSPATH" ] && {
> >   . "$DERBY_INSTALL"/frameworks/NetworkServer/bin/setNetworkClientCP.ksh
> > }
> > to
> > $DERBY_INSTALL/frameworks/NetworkServer/bin/setNetworkClientCP.ksh
> > Correct?
> > However I get this [image: :-(]:
> >
> > [dan@localhost bin]$ ./setNetworkServerCP.ksh
> > [dan@localhost bin]$ ./startNetworkServer.ksh
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > org/apache/derby/drda /NetworkServerControl
> > [dan@localhost bin]$
> >
> >
> >
> >
> >
> > ---------- Forwarded message ----------
> > From: "Anil Samuel" <anil.samuel@gmail.com>
> > To: "Derby Discussion" < derby-user@db.apache.org>
> > Date: Wed, 5 Apr 2006 20:56:52 +1000
> > Subject: Re: PATH (newbie) problems...
> > Hi
> >
> > I think
> >
> > [ -z "$CLASSPATH" ] && {
> >   . "$DERBY_INSTALL"/frameworks/NetworkServer/bin/setNetworkServerCP.ksh
> >
> > }
> >
> > in all .ksh files, causes the set*CP.ksh call to be skipped if CLASSPATH
> > is defined. This can cause this issue.
> >
> > I edited my .ksh files to remove
> >
> > [ -z "$CLASSPATH" ] &&
> >
> > and it works just fine.
> >
> > Anthos
> > n 4/5/06, dan <dan@elvberg.com> wrote:
> > >
> > >  Hi Øystein:
> > > Last line in startNetworkServer.ksh (attached) is
> > > $JAVA_HOME/bin/java org.apache.derby.drda.NetworkServerControl start
> > > -h $DERBY_SERVER_HOST -p $DERBY_SERVER_PORT
> > >
> > > where /java is a file...
> > > ...and where is
> > > org.apache.derby.drda.NetworkServerControl? /dan
> > >
> > >
> > > ---------- Forwarded message ----------
> > > From: Oystein Grovlen - Sun Norway <Oystein.Grovlen@Sun.COM >
> > > To: Derby Discussion < derby-user@db.apache.org>
> > > Date: Wed, 05 Apr 2006 10:30:55 +0200
> > > Subject: Re: PATH (newbie) problems...
> > > dan wrote:
> > >
> > > > 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]$
> > >
> > > Have you set JAVA_HOME? If not, the script will default to /usr/java,
> > > but according to your path it should be /usr/java/jdk1.5.0_04.
> > >
> > > --
> > > Øystein Grøvlen, Senior Staff Engineer
> > > Sun Microsystems, Database Technology Group
> > > Trondheim, Norway
> > >
> > >
> > >
> > >
> > >
> >
> >
> > --
> > Anil Samuel < anil.samuel@oracle.com>
> > Principal Technical Member
> > Product Development
> > Oracle Corporation
> >
>
>
>
> --
> Anil Samuel <anil.samuel@oracle.com>
> Principal Technical Member
> Product Development
> Oracle Corporation
>



--
Anil Samuel <anil.samuel@oracle.com>
Principal Technical Member
Product Development
Oracle Corporation

Mime
View raw message