+ Reply to Thread
Results 1 to 3 of 3

Thread: Java packages

  1. #1
    Guest.Visitor Guest

    Default Java packages

    Someone else answered this question over at News/400. The run-time classes are in a jar called rt.jar. The CLASSPATH needs to include the path to that jar file. Chris

  2. #2
    jquinlan Guest

    Default Java packages

    I am able to develop and compile java without having the rt.jar specified in my classpath. I don't know if this makes a difference but I have "SET JAVA HOME=C:JDK1.3 in my autoexec.bat My classpath includes C:JDK1.3BIN As a rule, I leave no spaces between the equal sign in my classpaths and I keep it all Upper Case. I don't know if this is required but I think I heard that somewhere. Also I add a ";.;" to the classpath to include whatever directory you're working in at the time. Jim Quinlan Clearwater, Florida

  3. #3
    Guest.Visitor Guest

    Default Java packages

    I recently installed the JDK v1.3.1 on my PC. It's my understanding that the Java compiler finds the API classes on a system using a combination of the CLASSPATH and IMPORT statements. For example, if my classpath is simply CLASSPATH=C:JDK1.3.1 and I use an import statement of import java.util.* in a class, that the compiler would expect to find the package in the folder C:JDK1.3.1JavaUtil. I did a search and did not find any directories named JAVA or JAVAX or UTIL, etc. on my PC. What am I misunderstanding here? Are these packages instead in a JAR somewhere? Thanks. Chris Ringer

+ Reply to Thread

Similar Threads

  1. Packages
    By Guest.Visitor in forum Java
    Replies: 0
    Last Post: 01-21-2005, 05:03 AM
  2. Replies: 0
    Last Post: 09-04-2002, 06:42 AM
  3. Java packages
    By Guest.Visitor in forum Programming
    Replies: 0
    Last Post: 08-23-2001, 06:24 AM
  4. Software packages
    By Guest.Visitor in forum Application Software
    Replies: 2
    Last Post: 04-06-2000, 08:31 AM
  5. SQL Packages?
    By Guest.Visitor in forum Programming
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts