Error with simple Application

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Error with simple Application

  1. #1
    Join Date
    Sep 2005

    Error with simple Application

    This is a my program.

    import javabook.*;
    class MyFirstApplication
    public static void main(String args[])
    MainWindow mainWindow;
    mainWindow= new MainWindow();;
    When I complie it with message error:
    C:\>javac package javabook does not exist
    import javabook.*;
    ^ cannot resolve symbol
    symbol : class MainWindow
    location: class MyFirstApplication
    MainWindow mainWindow;
    ^ cannot resolve symbol
    symbol : class MainWindow
    location: class MyFirstApplication
    mainWindow= new MainWindow();
    3 errors
    Who help me to repair this program. Thanks

  2. #2
    Join Date
    Jul 2005
    SW MO, USA
    Looks like you need to tell the compiler where the javabook package is located.This is done by the classpath option on the javac command or you can set the CLASSPATH global environment variable.

Similar Threads

  1. Replies: 2
    Last Post: 09-26-2005, 11:35 AM
  2. Replies: 4
    Last Post: 11-30-2001, 04:13 AM
  3. Application that grows
    By Tariq in forum Java
    Replies: 0
    Last Post: 11-21-2001, 01:21 PM
  4. Replies: 3
    Last Post: 01-26-2001, 02:22 PM
  5. Replies: 1
    Last Post: 01-26-2001, 04:17 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
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center