EXE without JVM

P

Petomarmitta

Hello,
i would like to know if exists a compiler from java source file to exe.
I found a lot of compilers, but everyone with JVM dependence. Exists
some compilers that built an all-in-one exe (obviously loosing java
portability)?

Thank you.
 
I

Ian Wilson

Petomarmitta said:
Hello,
i would like to know if exists a compiler from java source file to exe.
I found a lot of compilers, but everyone with JVM dependence. Exists
some compilers that built an all-in-one exe (obviously loosing java
portability)?

Thank you.

FAQ
Excelsior Jet
GCJ (possibly)

But you really should read some of the essays discussing why people want
to do this. It is often either not necessary or not a good idea. I'm
sure someone will be along to talk about webstart too :)

http://www.excelsior-usa.com/articles/java-to-exe.html
http://mindprod.com/jgloss/nativecompiler.html
http://www.bearcave.com/software/java/comp_java.html
 
P

Petomarmitta

Ian Wilson ha scritto:
Petomarmitta wrote:

FAQ
Excelsior Jet
GCJ (possibly)

But you really should read some of the essays discussing why people want
to do this. It is often either not necessary or not a good idea. I'm
sure someone will be along to talk about webstart too :)

http://www.excelsior-usa.com/articles/java-to-exe.html
http://mindprod.com/jgloss/nativecompiler.html
http://www.bearcave.com/software/java/comp_java.html

Thank you.
I have already considered other ways, but i think a compiled EXE is what
i need (because i need fast code).
I saw those links, but i need a Win32 compiler... exists something
(fine) but for free?

thanks
 
A

Andrew Thompson

Petomarmitta said:
Ian Wilson ha scritto:

(mentioned web start)
Here are some examples..
I have already considered other ways, but i think a compiled EXE is what
i need (because i need fast code).

1st error in your assumptions.

A slow Java app. will end up a slow exe.

A fast Java app. might not only become faster on
future JVM's, but also using different hardware
configurations.

When you compile to an exe, you must generally make
decisions about what to optimise for (speed, memory
footprint etc.), whereas the JVM can optimise for each
different PC and its configuration.

Some further considerations..
<http://www.physci.org/codes/javafaq.html#exe>

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200705/1
 
A

Andrew Thompson

Petomarmitta said:
Andrew Thompson ha scritto: ...
I found this: http://schmidt.devlib.org/java/native-compilers.html

Perhaps you should read it again.
Seems a compiled runs faster than an VM-pass-through...

Seems (to quote from the page)..
"Higher execution speed. Actually, that is not guaranteed, it
depends largely on the application type, the *system* *environment*,
the way a particular solution was coded etc. You must do a lot
of testing to find out if your code benefits from native execution."

OK - so let's imagine you've completed that process for a
single configuration of one system environment. You might
end up with native code that is 5% faster in that environment.
What about the next PC (with a slightly different config.), or
the one after that, or the ten others down the hall, or..

It is best left to the JVM to do optimisations, because,
as I have mentioned before in this thread, it can do
them at run-time - depending on the machine and the
execution environment as it exists at that moment.

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200705/1
 
B

bugbear

Petomarmitta said:
Thank you.
I have already considered other ways, but i think a compiled EXE is what
i need (because i need fast code).

What is your application?

BugBear
 
I

Ian Wilson

Petomarmitta said:
bugbear ha scritto:



Pathfinding (Astar) on nodes/edges graphs.


I suspect that a good algorithm and careful coding will make far more
difference than ahead-of-time compilation vs Just-In-Time compilation.
 
B

bugbear

Ian said:
I suspect that a good algorithm and careful coding will make far more
difference than ahead-of-time compilation vs Just-In-Time compilation.

Heartily agreed.

Why not develop under JVM and IF FORCED, move to
EXE ?

BugBear
 
?

=?ISO-8859-15?Q?Arne_Vajh=F8j?=

Petomarmitta said:
Ian Wilson ha scritto:
I have already considered other ways, but i think a compiled EXE is what
i need (because i need fast code).

Why are you expecting EXE to be faster than the Java code ?

I see no basis for that assumption.
I saw those links, but i need a Win32 compiler... exists something
(fine) but for free?

The above is available for Win32.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top