Compiling java files which has other Imports

Vaijayanthi Mala Suresh vaijayanthimalas@gmail.com
Wed Jun 10 04:42:00 GMT 2009


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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /