Results 1 to 9 of 9
  1. #1
    snowpoke is offline Member
    Join Date
    Jul 2010
    Posts
    5
    Rep Power
    0

    Default 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?

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    7

    Default

    Huh?! :confused:
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  3. #3
    snowpoke is offline Member
    Join Date
    Jul 2010
    Posts
    5
    Rep Power
    0

    Default

    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

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default

    Have you tried Google for doc on how to use that program?

  5. #5
    snowpoke is offline Member
    Join Date
    Jul 2010
    Posts
    5
    Rep Power
    0

    Default

    Yeah. I tried but unsuccessfully.
    So, I ask for help.

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default

    I found a ton of stuff on Google.
    What parts of it don't you understand?

  7. #7
    snowpoke is offline Member
    Join Date
    Jul 2010
    Posts
    5
    Rep Power
    0

    Default

    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.

  8. #8
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,945
    Rep Power
    19

    Default

    It's all explained here, in the documentation.

  9. #9
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,435
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by Tolls View Post
    It's all explained here, in the documentation.
    Golly, who'd have thought it ...

    kind regards,

    Jos ;-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •