Philippe Alexis wrote:
> Hi Marco,
>
> 2008/3/4, Marco Trudel <ma...@mt... <mailto:ma...@mt...>>:
>
> Hey Philippe
>
>
> <snip>
>
> Add "-findirect-dispatch" as custom GCJ flag. Dependencies will then be
> searched at runtime.
>
>
>
> I'm intrigued.. When you say "dependencies will then be searched at
> runtime", where would they be searched from?
In the executable. Everything you need will be in there. This way,
referenced but never used jars don't stop compilation.
> And in what format would such dependencies be expected to be?
>
> I find that with the -findirect-dispatch flag whether I include any of
> the referenced jars or not the executable is produced.
> However, when running the program, I hit a ClassNotFoundException in
> both cases. I'm not clear whether referenced classes
> are still being included in the executable; apparently not. If so, are
> we supposed to put the dependencies somewhere?
It would be helpful if you add some information. What is the exact
error? Is a class of your jars missing or one of the java library? How
do you compile your jars? Completely or referenced classes only?
Marco
> In what format, and do we need to tell the executable where is that
> location?
>
> J-Philippe.
|