This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Newbie
- From: "Steen Jansdal" <steen at jansdal dot dk>
- To: <java at gcc dot gnu dot org>
- Date: Tue, 15 Oct 2002 09:06:14 +0200
- Subject: Re: Newbie
- Reply-to: <steen at jansdal dot dk>
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