This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Compiling java files which has other Imports
- From: Andrew Haley <aph at redhat dot com>
- To: Vaijayanthi Mala Suresh <vaijayanthimalas at gmail dot com>
- Cc: java at gcc dot gnu dot org
- Date: Wed, 10 Jun 2009 09:40:23 +0100
- Subject: Re: Compiling java files which has other Imports
- References: <6f1633170906092142q9f7aa48lf43a09b391f2fd4d@mail.gmail.com>
Vaijayanthi Mala Suresh wrote:
> I have imported another java file from a package (jar file). This
> package is converted into a static ibrary .a
> If I compile the HelloWorld.java which has the import com.test.Hello. it fails.
>
> import com.test.Hello;
>
> class HelloWorld
> {
> HelloWorld()
> {
> Hello tst = new Hello();
> tst.printMessage();
> }
> }
>
> -gcj -c HelloWorld.java
>
> -gcj -c HelloWorld.java -L. -lNatHello.a
>
> Can anyone please help me
Yes, but we need a little more information. A full test case, please.
Andrew.