From derby-user-return-3980-apmail-db-derby-user-archive=db.apache.org@db.apache.org Wed Apr 05 09:51:32 2006 Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 21406 invoked from network); 5 Apr 2006 09:51:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Apr 2006 09:51:31 -0000 Received: (qmail 53365 invoked by uid 500); 5 Apr 2006 09:51:29 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 53328 invoked by uid 500); 5 Apr 2006 09:51:29 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 53314 invoked by uid 99); 5 Apr 2006 09:51:28 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Apr 2006 02:51:28 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 81.228.8.164 is neither permitted nor denied by domain of dan@elvberg.com) Received: from [81.228.8.164] (HELO pne-smtpout2-sn2.hy.skanova.net) (81.228.8.164) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Apr 2006 02:51:27 -0700 Received: from [192.168.0.3] (81.235.133.72) by pne-smtpout2-sn2.hy.skanova.net (7.2.070) id 4430FC0200099229 for derby-user@db.apache.org; Wed, 5 Apr 2006 11:51:06 +0200 Subject: Re: PATH (newbie) problems... From: dan To: Derby Discussion In-Reply-To: <4433803F.8030603@sun.com> References: <20060404203239.61179.qmail@web81312.mail.mud.yahoo.com> <1144225541.4738.32.camel@localhost.localdomain> <4433803F.8030603@sun.com> Content-Type: multipart/mixed; boundary="=-OTV2d8kXY8fK+tUGmFW8" Date: Wed, 05 Apr 2006 11:54:58 +0200 Message-Id: <1144230898.4738.39.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.2 (2.2.2-5) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --=-OTV2d8kXY8fK+tUGmFW8 Content-Type: multipart/alternative; boundary="=-msRIQbYTBHpuvI3B4A0D" --=-msRIQbYTBHpuvI3B4A0D Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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 --=-msRIQbYTBHpuvI3B4A0D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit 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 --=-msRIQbYTBHpuvI3B4A0D-- --=-OTV2d8kXY8fK+tUGmFW8 Content-Disposition: inline Content-Description: Forwarded message - Re: PATH (newbie) problems... Content-Type: message/rfc822 Received: from mail.apache.org [209.237.227.199] by s20.dknet.se (SMTPD32-8.15) id A0583AF40120; Wed, 05 Apr 2006 10:31:20 +0200 Received: (qmail 38249 invoked by uid 500); 5 Apr 2006 08:31:19 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 38238 invoked by uid 99); 5 Apr 2006 08:31:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Apr 2006 01:31:19 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.43] (HELO brmea-mail-2.sun.com) (192.18.98.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Apr 2006 01:31:18 -0700 Received: from phys-epost-1 ([129.159.136.14]) by brmea-mail-2.sun.com (8.12.10/8.12.9) with ESMTP id k358Uv8u022758 for ; Wed, 5 Apr 2006 02:30:57 -0600 (MDT) Received: from conversion-daemon.epost-mail1.sweden.sun.com by epost-mail1.sweden.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IX800I01PYCFJ@epost-mail1.sweden.sun.com> (original mail from Oystein.Grovlen@Sun.COM) for derby-user@db.apache.org; Wed, 05 Apr 2006 10:30:56 +0200 (MEST) Received: from [129.159.112.239] (khepri27.Norway.Sun.COM [129.159.112.239]) by epost-mail1.sweden.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTPA id <0IX800JM1QBJYO@epost-mail1.sweden.sun.com> for derby-user@db.apache.org; Wed, 05 Apr 2006 10:30:56 +0200 (MEST) Date: Wed, 05 Apr 2006 10:30:55 +0200 From: Oystein Grovlen - Sun Norway Subject: Re: PATH (newbie) problems... In-reply-to: <1144225541.4738.32.camel@localhost.localdomain> To: Derby Discussion Message-id: <4433803F.8030603@sun.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed User-Agent: Thunderbird 1.5 (X11/20060113) References: <20060404203239.61179.qmail@web81312.mail.mud.yahoo.com> <1144225541.4738.32.camel@localhost.localdomain> X-Virus-Checked: Checked by ClamAV on apache.org X-Declude-Sender: derby-user-return-3979-dan=elvberg.com@db.apache.org [209.237.227.199] X-RCPT-TO: Status: U X-UIDL: 395217797 Content-Transfer-Encoding: 8bit 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 --=-OTV2d8kXY8fK+tUGmFW8 Content-Disposition: attachment; filename=startNetworkServer.ksh Content-Type: text/plain; name=startNetworkServer.ksh; charset=utf-8 Content-Transfer-Encoding: 7bit ## --------------------------------------------------------- # -- This simple script is an example of how to start Derby # -- as a server inside the Network Server framework # -- # -- REQUIREMENTS: # -- You must have the derby and Network Server jar files in your CLASSPATH # -- # -- Check the setNetworkServerCP.ksh file for an example of # -- what to set. # -- # -- This file for use on Unix ksh systems # --------------------------------------------------------- # --------------------------------------------------------- # -- start Derby Network Server # --------------------------------------------------------- # DERBY_INSTALL= [ -z "$CLASSPATH" ] && { . "$DERBY_INSTALL"/frameworks/NetworkServer/bin/setNetworkServerCP.ksh } if [ -z "$JAVA_HOME" ] then JAVA_HOME=/usr/java fi # --------------------------------------------------------- # -- Determine the host and port to use by: # -- 1. Check to see if the host and port are set on the command line # -- 2. Check to see if DERBY_SERVER_HOST and DERBY_SERVER_PORT # -- 3. Default to localhost/1527 # --------------------------------------------------------- if [ "$1" ] then DERBY_SERVER_HOST=$1 fi if [ -z "$DERBY_SERVER_HOST" ] then DERBY_SERVER_HOST=localhost fi if [ "$2" ] then DERBY_SERVER_PORT=$2 fi if [ -z "$DERBY_SERVER_PORT" ] then DERBY_SERVER_PORT=1527 fi $JAVA_HOME/bin/java org.apache.derby.drda.NetworkServerControl start -h $DERBY_SERVER_HOST -p $DERBY_SERVER_PORT # --------------------------------------------------------- # -- To use a different JVM with a different syntax, simply edit # -- this file # --------------------------------------------------------- --=-OTV2d8kXY8fK+tUGmFW8--