Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 50811 invoked from network); 27 Jul 2006 11:32:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Jul 2006 11:32:16 -0000 Received: (qmail 99359 invoked by uid 500); 27 Jul 2006 11:32:08 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 99316 invoked by uid 500); 27 Jul 2006 11:32:08 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 99203 invoked by uid 99); 27 Jul 2006 11:32:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jul 2006 04:32:08 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of dmitry.m.kononov@gmail.com designates 66.249.92.174 as permitted sender) Received: from [66.249.92.174] (HELO ug-out-1314.google.com) (66.249.92.174) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jul 2006 04:32:07 -0700 Received: by ug-out-1314.google.com with SMTP id u40so201269ugc for ; Thu, 27 Jul 2006 04:31:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=bWyto7zljpFJQF9bvPZjYNaHKBo9WUevmC3RbfawJwAhWf7jZo76iQNVcl/7OKIOXbas7Sk66jQ3a07dUGjUxXx1m6zYFx2qApMn0RiJgbV6b0jokoOsYWlZ6zUR37eWQoaPFBMfBu9dlADtyddCwXIJ1Eu/aGSkn0Cq1lIf3mk= Received: by 10.66.224.19 with SMTP id w19mr7071657ugg; Thu, 27 Jul 2006 04:31:46 -0700 (PDT) Received: by 10.67.30.9 with HTTP; Thu, 27 Jul 2006 04:31:46 -0700 (PDT) Message-ID: <98e7db8d0607270431w20df2bcmc063552f91be72ad@mail.gmail.com> Date: Thu, 27 Jul 2006 15:31:46 +0400 From: "Dmitry M. Kononov" To: harmony-dev@incubator.apache.org Subject: [classlib][tools] Should launcher pass the required jars to JVM's class path automatically? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I've developed a tool (it's a replacement of javah for Harmony) that depends on BCEL. I've found a way how it can be integrated into the current build system, so it compiles successfully. The compiled classes are placed into the deploy\jdk\lib\tools.jar. bcel-5.0.jar is copied into the deploy\jdk\lib directory. So the build works and results look as expected. I do the following to run the tool (whose name is ijh at the moment). 1.copy deploy\jdk\jre\bin\java.exe to deploy\jdk\jre\bin\ijh.exe 2.copy deploy\jdk\lib\tools.jar into deploy\jdk\jre\bin\ 3.copy deploy\jdk\lib\bcel-5.0.jar into deploy\jdk\jre\bin\ 4.run ijh.exe And see the usage info of the tool. This means that the launcher finds appropriate classes of tools.jar successfully. Cool. But if I run ijh.exe with a class as an argument (bcel's classes are required in this case) as follows: ijh.exe Test01 JVM can't find bcel's classes. So it looks like I have to provide the correct class path which includes bcel-5.0.jar. Ok. To do so I run the tool in this way: ijh.exe -J-cp bcel-5.0.jar;. Test01 This works. But the problem is that it's a bad approach to pass all the required jars in a command line. It would be better if the launcher adds bcel-5.0.jar to the class path for the ijh tool in some automatic manner. Could you please explain me what is the correct way to solve this problem? Thanks. -- Dmitry M. Kononov Intel Managed Runtime Division --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org