This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Compiling java files which has other Imports
- From: Vaijayanthi Mala Suresh <vaijayanthimalas at gmail dot com>
- To: java at gcc dot gnu dot org
- Date: Wed, 10 Jun 2009 10:12:35 +0530
- Subject: Compiling java files which has other Imports
Hi All,
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
Thanks
Mala