Can't find default package

steve steve@netfuel.com
Tue Jun 10 19:22:00 GMT 2003


I got it I am missing libgcj.jar
No to figure out why.
steve wrote:
> Is this me or gcc?
>> [steve@pascal java-so]$ cat Hello.java
> import java.lang.reflect.*;
>> class Hello {
> public static void main(String args[]) {
> try {
> Class HelloWorldClass=Class.forName("HelloWorld");
> Object HelloWorldObject=HelloWorldClass.newInstance();
> Method HelloWorldMethods[]=HelloWorldClass.getMethods();
> HelloWorldMethods[0].invoke(HelloWorldObject,null);
> } catch (Exception e) {
> }
> }
> }
>> [steve@pascal java-so]$ gcj Hello.java
> Hello.java:0: error: Can't find default package `java.lang'. Check the 
> CLASSPATH environment variable and the access to the archives
> 1 error
>> [steve@pascal java-so]$ gcc -v
> Reading specs from /opt/gcc-3.4/lib/gcc-lib/i686-pc-linux-gnu/3.4/specs
> Configured with: ../configure --prefix /opt/gcc-3.4
> Thread model: posix
> gcc version 3.4 20030609 (experimental)
>> [steve@pascal java-so]$ gcj -v
> Reading specs from /opt/gcc-3.4/lib/gcc-lib/i686-pc-linux-gnu/3.4/specs
> Reading specs from 
> /opt/gcc-3.4/lib/gcc-lib/i686-pc-linux-gnu/3.4/../../../libgcj.spec
> rename spec lib to liborig
> Configured with: ../configure --prefix /opt/gcc-3.4
> Thread model: posix
> gcc version 3.4 20030609 (experimental)
>> Thanks
>
-- 
Steve Pribyl
Steve AT NetFuel dot com
Computer Infrastructure Practitioner


More information about the Java mailing list

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