• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How stable is GCJ?

 
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am trying to Native Compile a Java Program on Windows. I am using GCJ with Cygwin. A simple "Hello World" program runs great using that, but it is throwing strange errors for a bit complex program.

My Question: How stable is GCJ for Windows Compilation. I shall spend good time exploring/debugging if it actually is stable/worth?


Previous Post
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It sounds like Rob and Ernest hit the nail on the head in your previous post:


Rob Prime: Last time I checked, it had very, very limited support for AWT and Swing though.
Ernest Friedman-Hill: Also somewhat limited support for not crashing.



I have not had good results with GCJ. It is very slow compared to the Sun JRE and it doesn't fully support JDK 1.1 yet (FAQ #2.8). With Sun open-sourcing Java, I'd predict that it will fall into disuse as the closed-source nature of Java was one of the big reasons for GCJ.
If you want an executable on Windows, use an executable JAR archive.
 
Sandeep Jindal
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply.

I have not had good results with GCJ.


I feared to get that answer

I would say features are not there with GCJ, for example GCJ4 now supports Java 5 (generics, etc) too, but not sure how stable it is.

The alternate you provided is good one, but it is not native compilation. Thus, as pointed by 'Dmitry Leskov' in my previous post, it would be de-compilable.

Does that mean only stable native compilation left is Excelsior-Jet? That's disheartening.
 
Sandeep Jindal
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please suggest!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic