Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6348159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:22:07+00:00 2026-05-24T21:22:07+00:00

Who has successfully compiled a Java business project to native (e.g. using GCJ or

  • 0

Who has successfully compiled a Java business project to native (e.g. using GCJ or Excelsior JET) and can share the pros and cons?

I image following advantages:

  • more speed (the user’s machine does not need to compile byte code to native code)
  • less possibility to hack
  • no separate Java runtime required

and following disadvantages:

  • needs a special build for each platform to support (but that’s required for SWT already)
  • some features like reflection might not work?
  • harder to locate bugs (what about stacktraces)?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T21:22:07+00:00Added an answer on May 24, 2026 at 9:22 pm

    I’ve used Excelsior JET to compile an SWT app to native for Windows.

    This was some time ago, and they’ve improved the tool immensely since then, but JVM speed has since also improved commensurably. Memory usage not so much, but then even low end laptops have GB’s of RAM these days and, although it might disgust our sense of frugality, it really doesn’t matter if your small GUI app uses 20MB of memory on a box with at least 50x that amount, especially when you factor in the advantages of developing in this sort of environment.

    The main reasons to static compile are startup time and memory usage. JET gave me these, but at the expense of a long build cycle, bugs in missing classes due to dynamic loading conflicting with static compilation (this is something I believe they’ve improved a lot) and platform-specific builds (you must build the Windows distro on Windows). Eventually Moore’s Law and JVM speeds made these trade-off’s not worth it, and I dropped this build option.

    FWIW, stacktraces and reflection are fine, as is dynamic class loading if you make sure the compiler knows about the classes that are not statically referenced. If you’re worried about decompilation, well, an obfuscator will likely give you as much mileage.

    I have nothing but good things to say about JET and the people that make it though. If you need to do it, JET’s a solid product.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a CUDA beginner who has successfully compiled and run several code samples
Is there anybody who has successfully accessed a Web service from an Oracle stored
Anyone who has tried to implement RoutedCommands in WPF using M-V-VM has undoubtedly run
Is there anyone who has used or looked into using Jitterbit as well as
I've successfully installed native Oracle on 10.6, and can successfully compile and execute the
Is there anybody who has successfully used Three20 v1.1 in Xcode 4? I have
Anyone who has programmed with actionscript 3.0 has most certainly noticed its lack of
As someone who has spent around 10 years programming web applications with Adobe's ColdFusion,
I believe any programmer who has been dealing with database requests in a gui
We have a client (who has a client, who has a client) who is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.