lucianomanzo | 2 Feb 12:17
Picon

Compiling on windows

Hello all,

I would like informations, please, about gcj on windows.

In mingw this module (gcc-java) appears not available.

Is possible actually developing applications with gcj on windows?

--
Thanks in advanced
Luciano David

孙波翔 | 5 Feb 19:33
Picon

Is GCJ still active?

Hi there!
Thank you to read the email.

I am doing a project(open source) and need to complie some java
*.class files to *.dll and *.so files so that this files can run
without jre.

I found there only have to tools can do it: Jet and GCJ.

Jet is not under GPL license. And the latest release of GCJ was on Sep
22, 2009. I need to compile the java files and support JDK 1.7
features. So does GCJ still active and may support JDK 1.7 in future?
Or could you suggest some other tools can do it?

Thanks again!
Waiting for your reply.
Sun

Andrew Haley | 6 Feb 19:17
Picon
Favicon

Re: Is GCJ still active?

On 02/05/2012 06:33 PM, 孙波翔 wrote:

> I am doing a project(open source) and need to complie some java
> *.class files to *.dll and *.so files so that this files can run
> without jre.
> 
> I found there only have to tools can do it: Jet and GCJ.
> 
> Jet is not under GPL license. And the latest release of GCJ was on Sep
> 22, 2009. I need to compile the java files and support JDK 1.7
> features. So does GCJ still active and may support JDK 1.7 in future?

gcj ahas been released several times since then.  There is a little
development still going on, but at present there are no plans to do
a release that supports Java 1.7 features.

Andrew.

Harpal Grover | 6 Feb 19:41
Picon

Is GCJ still active?

On Mon, Feb 6, 2012 at 1:17 PM, Andrew Haley <aph <at> redhat.com> wrote:
>
> On 02/05/2012 06:33 PM, 孙波翔 wrote:
>
> > I am doing a project(open source) and need to complie some java
> > *.class files to *.dll and *.so files so that this files can run
> > without jre.
> >
> > I found there only have to tools can do it: Jet and GCJ.
> >
> > Jet is not under GPL license. And the latest release of GCJ was on Sep
> > 22, 2009. I need to compile the java files and support JDK 1.7
> > features. So does GCJ still active and may support JDK 1.7 in future?
>
> gcj ahas been released several times since then.  There is a little
> development still going on, but at present there are no plans to do
> a release that supports Java 1.7 features.
>
> Andrew.

So naturally, the next question then would be:

Will there be any capabilities to compile java applications to native
binaries using the OpenJDK? If not, who should we contact to convey
the ever so popular and growing interest in being able to do this for
Linux, OS X and Windows?
--
Harpal Grover
President
Harpal Grover Consulting Inc
(Continue reading)

Andrew Haley | 6 Feb 19:48
Picon
Favicon

Re: Is GCJ still active?

On 02/06/2012 06:41 PM, Harpal Grover wrote:
> On Mon, Feb 6, 2012 at 1:17 PM, Andrew Haley <aph <at> redhat.com> wrote:
>>
>> On 02/05/2012 06:33 PM, 孙波翔 wrote:
>>
>>> I am doing a project(open source) and need to complie some java
>>> *.class files to *.dll and *.so files so that this files can run
>>> without jre.
>>>
>>> I found there only have to tools can do it: Jet and GCJ.
>>>
>>> Jet is not under GPL license. And the latest release of GCJ was on Sep
>>> 22, 2009. I need to compile the java files and support JDK 1.7
>>> features. So does GCJ still active and may support JDK 1.7 in future?
>>
>> gcj ahas been released several times since then.  There is a little
>> development still going on, but at present there are no plans to do
>> a release that supports Java 1.7 features.
> 
> 
> So naturally, the next question then would be:
> 
> Will there be any capabilities to compile java applications to native
> binaries using the OpenJDK?

Never say never, but I am not aware of any such thing.

> If not, who should we contact to convey the ever so popular and
> growing interest in being able to do this for Linux, OS X and
> Windows?
(Continue reading)

Joel Dice | 6 Feb 19:56
Picon

Re: Is GCJ still active?

On Mon, 6 Feb 2012, Harpal Grover wrote:

> On Mon, Feb 6, 2012 at 1:17 PM, Andrew Haley <aph <at> redhat.com> wrote:
>>
>> On 02/05/2012 06:33 PM, 孙波翔 wrote:
>>
>>> I am doing a project(open source) and need to complie some java
>>> *.class files to *.dll and *.so files so that this files can run
>>> without jre.
>>>
>>> I found there only have to tools can do it: Jet and GCJ.
>>>
>>> Jet is not under GPL license. And the latest release of GCJ was on Sep
>>> 22, 2009. I need to compile the java files and support JDK 1.7
>>> features. So does GCJ still active and may support JDK 1.7 in future?
>>
>> gcj ahas been released several times since then.  There is a little
>> development still going on, but at present there are no plans to do
>> a release that supports Java 1.7 features.
>>
>> Andrew.
>
>
> So naturally, the next question then would be:
>
> Will there be any capabilities to compile java applications to native
> binaries using the OpenJDK? If not, who should we contact to convey
> the ever so popular and growing interest in being able to do this for
> Linux, OS X and Windows?

(Continue reading)

lucianomanzo | 7 Feb 21:39
Picon

Re: Is GCJ still active?

Hi Joel,

Congratulations for this excellent project!!

If I understend, it's possible to compile java code to binary code?

A SWT application runs with avian?

Thank you

On 06-02-2012 16:56, Joel Dice wrote:
> On Mon, 6 Feb 2012, Harpal Grover wrote:
>
>> On Mon, Feb 6, 2012 at 1:17 PM, Andrew Haley <aph <at> redhat.com> wrote:
>>>
>>> On 02/05/2012 06:33 PM, 孙波翔 wrote:
>>>
>>>> I am doing a project(open source) and need to complie some java
>>>> *.class files to *.dll and *.so files so that this files can run
>>>> without jre.
>>>>
>>>> I found there only have to tools can do it: Jet and GCJ.
>>>>
>>>> Jet is not under GPL license. And the latest release of GCJ was on Sep
>>>> 22, 2009. I need to compile the java files and support JDK 1.7
>>>> features. So does GCJ still active and may support JDK 1.7 in future?
>>>
>>> gcj ahas been released several times since then.  There is a little
>>> development still going on, but at present there are no plans to do
>>> a release that supports Java 1.7 features.
(Continue reading)

Joel Dice | 7 Feb 21:57
Picon

Re: Is GCJ still active?

On Tue, 7 Feb 2012, lucianomanzo wrote:

> Hi Joel,
>
> Congratulations for this excellent project!!
>
> If I understend, it's possible to compile java code to binary code?

Yes, Avian supports either JIT (just-in-time) or AOT (ahead-of-time) 
compilation to machine code, or a mix of both.

> A SWT application runs with avian?

Yes.

Please direct any further questions or comments about Avian to 
avian <at> googlegroups.com, since they're off-topic for this list.  Thanks.

>
> Thank you
>
> On 06-02-2012 16:56, Joel Dice wrote:
>>  On Mon, 6 Feb 2012, Harpal Grover wrote:
>> 
>> >  On Mon, Feb 6, 2012 at 1:17 PM, Andrew Haley <aph <at> redhat.com> wrote:
>> > > 
>> > >  On 02/05/2012 06:33 PM, 孙波翔 wrote:
>> > > 
>> > > >  I am doing a project(open source) and need to complie some java
>> > > >  *.class files to *.dll and *.so files so that this files can run
(Continue reading)

Yi Lin | 13 Feb 04:01
Picon

Interface gcj-compiled library with Java programs in a runtime (other than gij)?

Hi,

I am wondering if we can use methods from a gcj-compiled library in 
uncompiled Java program(bytecode) executed on a VM.

According to gcj FAQ 1.7, there is no problem to do this with 'gij' 
interpreter/runtime. You can compile some Java code into library (native 
code), and run bytecode with 'gij' to invoke library methods. But this 
seems only capable for 'gij', and other runtimes like HotSpot cannot 
load and link the library properly.

I want to know if there is a general solution to allow you interface 
uncompiled Java program with gcj-compiled library. Any information or 
reference about this will be appreciated.

Many Thanks,
Yi

Brian Jones | 13 Feb 05:00
Picon
Gravatar

Re: Interface gcj-compiled library with Java programs in a runtime (other than gij)?

I suggest you try jni to get to whatever native code you are interested in.

Brian

On Feb 12, 2012, at 10:01 PM, Yi Lin <qinsoon <at> gmail.com> wrote:

> Hi,
>
> I am wondering if we can use methods from a gcj-compiled library in uncompiled Java program(bytecode)
executed on a VM.
>
> According to gcj FAQ 1.7, there is no problem to do this with 'gij' interpreter/runtime. You can compile
some Java code into library (native code), and run bytecode with 'gij' to invoke library methods. But this
seems only capable for 'gij', and other runtimes like HotSpot cannot load and link the library properly.
>
> I want to know if there is a general solution to allow you interface uncompiled Java program with
gcj-compiled library. Any information or reference about this will be appreciated.
>
> Many Thanks,
> Yi


Gmane