Results 1 to 3 of 3
  1. #1
    katie is offline Member
    Join Date
    Jul 2007
    Posts
    41
    Rep Power
    0

    Default couldn't find the package java.lang

    I've been trying to compile a simple .java file, but the compiler tells me it couldn't find the package java.lang;

    I've tried setting the variable to the directory that contains all the header files but this messages still appears

    please help me
    thanks

  2. #2
    brianhks is offline Senior Member
    Join Date
    Jul 2007
    Posts
    135
    Rep Power
    0

    Default

    Post the code you are trying to compile and show the command line you are using to compile you java code.

  3. #3
    katie is offline Member
    Join Date
    Jul 2007
    Posts
    41
    Rep Power
    0

    Default

    I solved my problem! I added the rt.jar file to the classpath variable

Similar Threads

  1. Replies: 2
    Last Post: 09-18-2008, 07:30 AM
  2. Demonstration of Stack class in java.util package
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-16-2008, 10:33 PM
  3. How to use Stack class in java.util package
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-16-2008, 10:32 PM
  4. java package for ISDN
    By syedumairali in forum Networking
    Replies: 0
    Last Post: 01-20-2008, 08:11 PM
  5. Java Package help?
    By Bibendum in forum New To Java
    Replies: 2
    Last Post: 12-12-2007, 04:29 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
  •