Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Compile Java to Windows Native Code (.exe)
Compile Java to Windows Native Code (.exe) [message #222277] Mon, 16 January 2006 14:39 Go to next message
Eclipse UserFriend
Originally posted by: nospamplease_enrictordera.vodafone.es

I would like to compile my SWT Java applications into Windows native
executables (.exe) rather than Java .class files. After searching the web,
it seems that the only free tool that can do such a thing is GCJ. The
questions are:

- Can I run GCJ on a Linux box as a cross-compiler to produce Windows
..exe's? How can I transform my actual GCJ installation into a
cross-compiler?

- Can I run GCJ on a Windows PC using MinGW, CygWin, or whatever?

- Do you know of any examples on how to compile a SWT Java application into
native code using GCJ?

Thanks in advance

- Enric
Re: Compile Java to Windows Native Code (.exe) [message #222297 is a reply to message #222277] Mon, 16 January 2006 19:59 Go to previous messageGo to next message
Eclipse UserFriend
Enric Tordera a écrit :
> - Can I run GCJ on a Linux box as a cross-compiler to produce Windows
> .exe's? How can I transform my actual GCJ installation into a
> cross-compiler?
Here are the steps to build a cross compiler that would run on Linux and
produces Windows executable.
http://ranjitmathew.hostingzero.com/phartz/gcj/bldgcj.html

> - Can I run GCJ on a Windows PC using MinGW, CygWin, or whatever?
Yes, see http://www.thisiscool.com/gcc_mingw.htm

> - Do you know of any examples on how to compile a SWT Java application into
> native code using GCJ?
The last link comes with a version of SWT and provides examples.

HTH,
--
Olivier
Re: Compile Java to Windows Native Code (.exe) [message #222386 is a reply to message #222297] Tue, 17 January 2006 16:34 Go to previous message
Eclipse UserFriend
Originally posted by: nospamplease_enrictordera.vodafone.es

"Olivier Thomann" <olivier_thomann@ca.ibm.com> escribi
Previous Topic:Refactoring: extract method and introduce parameter at once
Next Topic:parsing with bindings for class in Java library
Goto Forum:
  


Current Time: Thu Nov 06 18:30:59 EST 2025

Powered by FUDForum. Page generated in 0.03331 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top