Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 18214 invoked from network); 3 Mar 2006 15:36:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Mar 2006 15:36:56 -0000 Received: (qmail 5344 invoked by uid 500); 3 Mar 2006 15:37:39 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 5295 invoked by uid 500); 3 Mar 2006 15:37:39 -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 5284 invoked by uid 99); 3 Mar 2006 15:37:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Mar 2006 07:37:39 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [212.39.12.10] (HELO deck1210.hostdeck.com) (212.39.12.10) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Mar 2006 07:37:38 -0800 Received: (qmail 15341 invoked from network); 3 Mar 2006 16:37:14 +0100 Received: from host70-41.pool82106.interbusiness.it (HELO fatti.com) (82.106.41.70) by deck1210.hostdeck.com with SMTP; 3 Mar 2006 16:37:14 +0100 Message-ID: <440862B4.5030006@fatti.com> Date: Fri, 03 Mar 2006 16:37:24 +0100 From: Enrico Migliore Reply-To: enrico.migliore@fatti.com Organization: - User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: [jchevm] workarounds for Cygwin zip/jar problems that makes "hello world" work References: <4dd1f3f00603021930p4949f233nacfa0a60baf07466@mail.gmail.com> In-Reply-To: <4dd1f3f00603021930p4949f233nacfa0a60baf07466@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Weldon Washburn wrote: >Archie, >I finally got JCHEVM to compile and run "hello world" with gnu >classpath. My next step is to replace gnu classpath with harmony >class lib. For anyone interested, below is the workarounds I used: > >1) >Unzip /usr/local/classpath/share/classpath/glibj.zip to >/usr/local/unzipped_glibj >2) >Unzip ....../jchevm/java/jc.zip to /usr/local/unzipped_jc >3) >In ......./jchevm/libjc/native/Makefile, replace the line: >JAVAH_CMD = $(JAVAH) -classpath $(top_srcdir)/java/jc.zip:$(cpdir)/glibj.zip >with: >JAVAH_CMD = $(JAVAH) -classpath /usr/local/unzipped_jc:/usr/local/unzipped_glibj >The above now allows ...../jchevm/Makefile to build jc.exe. In >specific, jcjavah.exe generates the expected *.h files and no longer >causes the build to abort. >4) >Running jc.exe with jc.zip and glibj.zip does not work, however, >running jc.exe with unzipped classes does work. I put hello.class in >the same directory as jc.exe and use the following invocation line: > >"./jc.exe --classpath=. >--bootclasspath=/usr/local/unzipped_glibj:/usr/local/unzipped_jc:. >hello" > >I don't know what the specific problem is. But it probably has >something to do with how zip.c is making Cygwin calls. > >-- >Weldon Washburn >Intel Middleware Products Division > > > Hi Waldon, Ivan and Archie since I'm writing a brief but detailed HOWTO document that explains how to get JCHEVM + Classpath-0.20 running on Cygwin, I need to know a few things: Waldon: 1. How come you had to make the workaround? Ivan built JCHEVM without it. I need to know that because I would like the HOWTO to be as universal as possible. 2. How long would it take to you to "adapt" JCHEVM to interface Classlib? 3. I figure that once you're done with the port, we'll have to build Classlib on Cygwin. Right? ----------------------------------------------------------------------------------------- Archie: I noticed that Ivan introduced the macro __CYGWIN__. Did you merge the macro in the source tree, or it exists only in Ivan's code? Enrico