DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Thread: compile error

  1. #1
    JavaUser2002 Guest

    compile error


    Hi,

    I wrote my programm on Visual J++ like that:

    import java.awt.*;
    import java.applet.*;

    public class Hello1 extends Applet
    {
    public void paint( Graphics g )
    {
    g.drawString( "Hello, World!", 50, 25 );
    }
    }

    after compiling I got those three error

    Undefined package 'lang'
    Undefined package 'awt'
    Undefined package 'applet'

    I hope some help.

    Thanks!!!!!!!!!!!

  2. #2
    Per Guest

    Re: compile error


    It looks like you have the wrong class path for the location of the JDK. I
    have not myself worked with Visual J++, so I do not no where to correct this.
    But there must be some kind of setup for the JDK location in Visual, check
    this location - if you can find it :-)

    "JavaUser2002" <bagheri_azal@yahoo.se> wrote:
    >
    >Hi,
    >
    >I wrote my programm on Visual J++ like that:
    >
    >import java.awt.*;
    >import java.applet.*;
    >
    >public class Hello1 extends Applet
    >{
    > public void paint( Graphics g )
    > {
    > g.drawString( "Hello, World!", 50, 25 );
    > }
    >}
    >
    >after compiling I got those three error
    >
    >Undefined package 'lang'
    >Undefined package 'awt'
    >Undefined package 'applet'
    >
    >I hope some help.
    >
    >Thanks!!!!!!!!!!!



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links