This is the mail archive of the java-discuss@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

basic compilation question



We just recently installed gcc on a brand new machine (IRIX 6.5).  We
installed libgcj 2.95.1 at the same time.  (I didn't do the build
personally, so I don't exactly how it was done.  I do know that it was
with "make bootstrap".)  The C compiler works but the Java compiler
fails.  I'm getting the following error when trying to compile

      % gcj Welcome.java 
      Welcome.java:0: Can't find default package `java.lang'. Check the CLASSPATH environment variable and the access to the archives.
      1 error

It does this for any program.

CLASSPATH isn't set in the environment.  I looked for .class files or
anything else that seemed related to Java and found nothing outside of
the SGI Java compiler that shipped with the system.

Is it usual for this to happen?  I would think that gjc would be
compiled knowing where to look for its core packages.  Is the solution
just to set CLASSPATH to point to some standard place or is this
indicative of a problem with the installation?

Thanks for any help you can give me.


Damani

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]