Results 1 to 2 of 2
  1. #1
    doanhanam is offline Member
    Join Date
    Nov 2008
    Posts
    1
    Rep Power
    0

    Default Can I call directly the *.class

    lass LexerDriver {
    public static void main(String argv[]) throws java.io.IOException {
    Yylex yy = new Yylex(System.in);}

    that is just the error that " can not resolved to a type " . Yylex.class is in bin folder . I quess that it is like in library in C++ but i do not sure that the exact declaration like above . Thank pro .!

  2. #2
    emceenugget is offline Senior Member
    Join Date
    Sep 2008
    Posts
    564
    Rep Power
    6

    Default

    Your class must be in the same package or imported properly in order to be used. Read up on Java packages to learn how to properly organize your projects to use multiple classes.

Similar Threads

  1. Call action of JButton from another class
    By geckolux in forum AWT / Swing
    Replies: 4
    Last Post: 01-06-2014, 11:24 AM
  2. [SOLVED] Call method from another class name
    By antgaudi in forum New To Java
    Replies: 3
    Last Post: 10-15-2008, 12:33 AM
  3. Replies: 6
    Last Post: 08-06-2008, 01:41 PM
  4. How to draw directly on an SWT Control
    By Java Tip in forum SWT
    Replies: 0
    Last Post: 07-02-2008, 07:51 PM
  5. Replies: 0
    Last Post: 01-02-2008, 01:52 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
  •