From owner-freebsd-questions Thu Jan 27 23:16:47 2000 Delivered-To: freebsd-questions@freebsd.org Received: from www.ozler.com (asy185.as147.sol.superonline.com [212.252.147.185]) by hub.freebsd.org (Postfix) with ESMTP id 9D88514F50 for ; Thu, 27 Jan 2000 23:16:36 -0800 (PST) (envelope-from ertank@ozlerplastik.com) Received: from ozlerplastik.com (ertan [192.168.0.20]) by www.ozler.com (8.9.3/8.9.3) with ESMTP id JAA76718 for ; Fri, 28 Jan 2000 09:15:53 +0200 (EET) (envelope-from ertank@ozlerplastik.com) Message-ID: <389140C0.FE687AE2@ozlerplastik.com> Date: Fri, 28 Jan 2000 09:09:52 +0200 From: Ertan Kucukoglu Organization: Ozler Plastik San. ve Tic. A.S. X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: tr,en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Problmes with jdk Content-Type: text/plain; charset=iso-8859-9 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, I try to use the IBM's Host On Demand (HOD) prog. With that program I can connect to my AS/400 with my browser over internet. (If I manage to run it). Now, I have FreeBSD 3.3. I downloaded jdk package for 3.3 release, setup it to the default place /usr/local/jdk1.1.8. I have to run a script called NCServiceManager-UNIX to use HOD. (Below you can find that script). That script runs java with some parameters as I see. Problem starts here. Script gives the error message and HOD doen't run. Error message is: ----- bash-2.03# ./NCServiceManager-UNIX bash-2.03# Unable to initialize threads: cannot find class java/lang/Thread ----- The NCServerManager-UNIX script is as follows: ----- bash-2.03# cat NCServiceManager-UNIX #!/bin/sh ############################################################################### # Example NC Service Manager shell script # Note: This script requires the shell environment to be properly configured # before execution. The java CLASSPATH environment variable should # point to your java installation. # (ex. CLASSPATH=/usr/local/java/J1.1.1/lib/classes.zip; # export CLASSPATH) # The PATH environment variable should point to your java # installation's bin directory. # (ex. PATH=$PATH:/usr/local/java/J1.1.1/bin; export PATH) ############################################################################### ############################################################################### # Change this directory to the hostondemand/lib directory of your installation ############################################################################### cd /home/ertank/hod/hostondemand/lib CLASSPATH=/usr/local/jdk1.1.8/lib/classes.zip:sm.zip:ibmjndi.jar:jndi.jar:jsdk.jar:ods.jar:.:$CLASSPATH; export CLASSPATH PATH=$PATH:/usr/local/jdk1.1.8/bin/; export PATH ############################################################################### # Change this directory to the hostondemand directory of your installation ############################################################################### java com.ibm.eNetwork.HODUtil.services.admin.NCServiceManager /usr/ertank/hod/hostondemand & bash-2.03# ----- In that script I just changed 1) cd /home/ertank/hod/hostondemand/lib path, 2) added /usr/local/jdk1.1.8/lib/classes.zip in CLASSPATH environment, 3) added /usr/local/jdk1.1.8/bin/ in PATH environment, 4) added /usr/ertank/hod/hostondemand & to the java command line. I do not have any java knowledge at all. I don't know what or where to look so, I wanted to ask to the list. Regards, -- Ertan Kucukoglu ertank@ozlerplastik.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message