Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

Sponsored Links

Optimize with a SATA RAID Storage Solution
Range of capacities as low as $1250 per TB. Ideal if you currently rely on servers/disks/JBODs

Native compilation with Java

Can you compile Java code into a native executable?

  • Print
  • Feedback

Q I routinely receive two questions:

  1. "How can I compile my Java code into a native executable?"
  2. "I know about VisualAge and TowerJ, but doesn't the JDK ship with a native compiler?"


A Both are good questions that deserve answers.

Question 1: "How can I compile my Java code into a native executable?"

Answer: Native compilation is a hot issue. I routinely receive emails on the subject. In fact, two Java Q&As address this subject:



Rather than try to explain how to natively compile an application (again), I will point you to an excellent resource. Please see "Webpages Related to Compiling the Java Programming Language ." This Webpage is one of the most complete resources on natively compiling Java on the Net.

In summary, to natively compile Java code, you'll need to download a compiler and you might need to fork over some cash.

Question 2: "I know about VisualAge and TowerJ, but doesn't the JDK ship with a native compiler?"

Answer: No!

I think that should finally put the issue to rest.

Read more about Core Java in JavaWorld's Core Java section.

  • Print
  • Feedback
What is Tech Briefcase?
TechBriefcase is a new, free service where IT Professionals can Search, Store and Share IT white papers and content like this. Learn more
Bookmark content
Speed up your research efforts with content across the web.
Search and Store
Find the white papers you need. Create folders for any topic.
View Anywhere
Open your briefcase on your iPhone, tablet or desktop. Share with colleagues.
Don't have an account yet?

Resources