Results 1 to 2 of 2
  1. #1
    gradStudent is offline Member
    Join Date
    Aug 2009
    Rep Power

    Default How to import a package before it is compiled

    Hi, I am developing a JAVA project following Graphical Editing Framework in Eclipse.
    I have 3 packages ( in order of build) - ProcessModel, Process Editor and Application.
    I am trying to import application package and use its class in Process Model.

    package cheme.ProcessModel.Interpreter;
    import cheme.Application.*; // I have tried importing one class also

    But I am getting compile time error " the import cheme.application can not be resolved" .

    I assume this error is coming because Application package and its classes are not compiled and hence it is not allowing me to import and use them.

    As suggested in some other forums, I have added the CLASSPATH variable with the folder address of Application package.

    Please help me and suggest how can i use classes of Application package in ProcessModel.
    As this is my first post and I am not aware which is the best section for this post, I have posted this in another section of this forum also. My apologies for that.

    Thanks a Bunch in advance.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power

Similar Threads

  1. Help Needed to import package
    By gradStudent in forum New To Java
    Replies: 10
    Last Post: 08-11-2009, 02:37 AM
  2. JNLP - Swing application compiled in jdk1.5 not working in jdk1.6
    By mahendra.athneria in forum AWT / Swing
    Replies: 4
    Last Post: 01-20-2009, 09:27 PM
  3. Replies: 3
    Last Post: 12-12-2008, 03:44 PM
  4. Using compiled Classes
    By Mindhunter74 in forum NetBeans
    Replies: 17
    Last Post: 12-02-2008, 10:15 AM
  5. How to import a package in Eclipse?
    By naipulb in forum New To Java
    Replies: 2
    Last Post: 06-09-2008, 12:04 PM

Posting Permissions

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