Newbie
Steen Jansdal
steen@jansdal.dk
Tue Oct 15 00:05:00 GMT 2002
Loïc Péron wrote:
>> Oh no. I just want to have a little native code as possible to let some
> of my stubborn user feel easy facing a native win32 "myprog.exe" with
> an icon and swt-native gui use my program while only writting it in pure
> java. Thus I'd like to have a native loader+interpreter+swt interfaced
> with bytecode libraries containing the application guts.
>> If I could avoid writing a supplementary loader and directly use bytecode
> classes in jar files from native classes in the loader, instead of relying
> on indirect class loading, things would be much easyer :)
>
It sounds like gcj is NOT the right option for you.
Since you mention SWT I assume you are aware of the
eclipse project. They do exactly what you are asking
for. They have a small C program that displays a
splash screen and start the java VM via JNI.
Don't take eclipse's startup time as a measure for
how long it normally takes. They are parsing at lot of
XML files before the actual workbench is shown. I've
tried to do the exact same thing: write a little C
program whose only purpose is to embed a windows icon
(so it looks like a "real" windows program), display a
splash screen and then start a SWT program.
My startup time was below 2 seconds.
Steen
More information about the Java
mailing list