-
GCJ and libreries
Hi,
I build a Java fourth class programme and your gcj to get linux executable file.
Now I would like to use 2 external libraries (htmlparser.jar and htmllexer.jar from htmlparser.org).
A class, I wrote, uses
import org.htmlparser.Parser;
import org.htmlparser.filters.NodeClassFilter;
import org.htmlparser.tags.LinkTag;
import org.htmlparser.util.NodeList;
How can I create the executable?
What is the command?
-
-
Ok. I'll repeat.
I have 4 .java source files. Then I have two libraries htmlparser.jar and htmllexer.jar.
How can I build an exe file using gcj?
Something like
gcj Main.java Anotherclass.java Thirdone.java --main=Main -O myprogram.out
-
Have you tried Google for doc on how to use that program?
-
Yeah. I tried but unsuccessfully.
So, I ask for help.
-
I found a ton of stuff on Google.
What parts of it don't you understand?
-
When I tried to compile them I get about 20 errors and 40 warnings.
If I use Netbeans to transform .java in bytecode, no errors.
I need correct syntax for gcj, if exists one, to compile my four java source code files using the two jar libraries as well.
-
It's all explained here, in the documentation.
-
Quote:
Originally Posted by
Tolls
It's all explained
here, in the documentation.
Golly, who'd have thought it ...
kind regards,
Jos ;-)