delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/12/15:28:25

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Spam-Filter: check_local AT alphatech DOT com 4.4(020923:1754) http://digitalanswers.org/
Message-Id: <4.3.2.7.2.20030212120648.00b465f8@mail.alphatech.com>
X-Sender: alant AT mail DOT alphatech DOT com
Date: Wed, 12 Feb 2003 12:16:24 -0800
To: cygwin AT cygwin DOT com
From: Alan Thompson <athompson AT alphatech DOT com>
Subject: Re: Interest in gcc 3.2.2?
In-Reply-To: <200302121919460961.0F572DA8@smtp.xs4all.nl>
References: <4 DOT 3 DOT 2 DOT 7 DOT 2 DOT 20030211223714 DOT 00b34488 AT mail DOT alphatech DOT com>
<4 DOT 3 DOT 2 DOT 7 DOT 2 DOT 20030211211924 DOT 00b31238 AT mail DOT alphatech DOT com>
<4 DOT 3 DOT 2 DOT 7 DOT 2 DOT 20030211211924 DOT 00b31238 AT mail DOT alphatech DOT com>
<4 DOT 3 DOT 2 DOT 7 DOT 2 DOT 20030211223714 DOT 00b34488 AT mail DOT alphatech DOT com>
Mime-Version: 1.0

Bart - I am using JNI, so I compile the C++ stuff with g++ 3.2.2 and I compile the java stuff with J2SDK 1.4.1.  Then, they can magically talk to each other so I can hook up my legacy code to java, RMI, Jini, JDBC, etc.  The Java stuff runs in Sun's JRE 1.4.1 and calls the C++ code through the JNI.  I also have callbacks from the C++ code into Java objects running in the JVM.

So, in response to the question "Are you or aren't you compiling your java program to a native executable??", the answer is a resounding "Yes".

Alan Thompson

P.S. My apologies if the JNI part didn't quite leap out in my first message....it was a followup to a previous thread about <iostream> and JNI with g++ 3.2.

P.P.S.  I hadn't thought about compiling Java to a native executable.  I'll have to think about that for future projects, perhaps.


At 07:19 PM 2/12/2003 +0100, Bart Lamot wrote:
>Allen,
>
>Are you or aren't you compiling your java program to a native executable??
>Because if you are the I don't get the Sun 1.4.1 remark...
>If you aren't (and thus are using gcj just to compile to class files and use a JRE to run) i don't get why u are doing this if u stick with Sun.....
>
>I am lost....but am i clear?
>
>Grtz,
>Bart



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019