>Can someone give me an example of a program written in java and
>transformed *.exe?
see http://mindprod.com/jgloss/nativecompiler.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
> Can someone give me an example of a program written in java and
> transformed *.exe? I could do this via JNI, invokation API. But it
> requires JRE. and it is too big. So I need either another method of
> doing this or another JRE, smaller one.
If you compile your Java code to .class files, then you'll need a JVM to
run those files. There are "alternative JVMs", but they probably won't solve
your problem, as the bulk of the size of the JRE is the class files, not the
JRE, and I believe Sun has some licensing rules that say you can't make the
JRE smaller by omitting the stuff you don't need.
The advice you received earlier about not bundling the JRE was telling
you to tell your users to download and install the JRE themselves.
If you don't want to do that, you'll have to compile your Java code to
executables. Try gcj (http://gcc.gnu.org/java/index.html) or Excelsior Jet
(http://www.excelsior-usa.com/jet.html).
- Oliver