This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: newbie: compiling/linking
>>>>> ">" == Dhek Bhun Kho <bhun@chello.nl> writes:
>> - make dso's for all core library functions from
>> bcel,xerces,xalan,regexp,javacup --> implies removing all ui related
>> code and most of the java source with main methods.
First, most of these are in rhug already.
Second, you don't need to remove the main methods. It is perfectly
fine to have a class with a main() method in a library.
>> I have to explicitly include xerces as a jar into my classpath:
Or use the command-line options. Generally I prefer these over
setting the environment variable.
I believe there is some support for putting .jar files into a standard
directory where they will be searched by default. I haven't kept up
with this area very well; maybe that is still just a plan...?
>> I am trying to work around this by recompiling gcj so it just includes
>> the core java classes into gcj and separate all other stuff to separate
>> libraries. Or is there a simpler approach available.
I don't know. I don't think I have enough information to understand
the problem. Is this another instance of our ongoing org.w3c.*
difficulties? That is something we need to clear up for the 3.3
release.
>> For some reason I can't include my libgcj.jar into the compilation
>> because it fails bytecode verification.
If you're using gcj, libgcj.jar is searched automatically.
And anyway libgcj.jar shouldn't be run through the verifier, since
none of the methods in it should be compiled when you compile your
program. What exactly are you doing? How exactly does it fail?
>> If I just got that fixed and the silly IllegalArgumentException from
>> MessageFormat.format() I would be very happy. It's very tempting to just
>> hack the code from jakarta to make it not call MessageFormat.format().
I saw your PR on this come in but I haven't read it yet.
>> Thanks in advance, any useful feedback appreciated. If anybody
>> wants a list of the diffs I made to the code from jakarta, just
>> mail me.
I recommend contacting the rhug project and coordinating there.
Tom