Re: Compiling java files which has other Imports

Andrew Haley <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.