×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Java programming

Java programming

Java programming

(OP)
Hi,There.
I am a new to Java programming.I teach myself Java Programming.I learn from a book calls "Learn Java Now J++" By Stephen R.Davis and a Microsoft Visual J++ version 1.1  to write a program. My very first program as following...

public class Appl_1
{
   public static void main(String args[])
   {
     System.out.println("Hello,world");
    }
}

and I saved as Appl_1.java. When I compile it, It says  error J0051: Undefined package 'lang' .I got stuck right here. I can not execute the program.

Could you help me to solve this problem ?.I am appreciate it very much.Thanks./.         

RE: Java programming

What are your imported packages? Also are using the command line compilier or an IDE based compilier, nevermind I saw it's MS J++ so it's IDE. See if you could find the package paths, it's been a while since I used this, and make sure that package exists. Also when you set up the project what type did you pick, if I remember correctly J++ gives you the option to use WFC or JAVA, and the packages it defaults to will vary. Again it's been a while since I used J++ so take what I said with a grain of salt.

Ultimatly though you have a package imported that it can't find. Delete the import line or find the package and set the right path.

Chris

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources