DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3

Thread: Basic Problam

  1. #1
    Join Date
    Jan 2006
    Posts
    1

    Basic Problam

    For somee odd reason I cannot get the following basic things to work.
    I have two files:
    HelloWorld.java

    class HelloWorld {
    public static void main(String args[]) {
    System.out.println("Hello World!");
    Grid2 test;
    test = new Grid2();
    }
    }

    and Grid2.java
    import java.lang.Number.*;
    import java.lang.Object.*;
    import java.io.*;

    public class Grid2 {

    public Grid2() {
    }
    }

    When I compile it:
    javac Grid2.java
    Works fine
    javac HelloWorld.java
    HelloWorld.java:6: cannot find symbol
    symbol : Grid2
    location: class HelloWorld
    Grid2 test;
    HelloWorld.java:7: cannot find symbol
    symbol : Grid2
    location: class HelloWorld
    test = new Grid2();

    I have never seen this before, any ideas?

  2. #2
    Join Date
    Mar 2004
    Posts
    635
    Is Grid2 in the same package?

  3. #3
    Join Date
    Jan 2006
    Posts
    7
    your two files are not in a same folder!

Similar Threads

  1. Replies: 0
    Last Post: 11-16-2005, 06:31 PM
  2. Visual Basic 6.0 Code Advisor
    By Patrick Troughton in forum .NET
    Replies: 0
    Last Post: 01-31-2003, 01:09 PM
  3. YAG's public status report - March 7, 2002
    By Seth Grossman [MSFT] in forum vb.announcements
    Replies: 1
    Last Post: 03-13-2002, 07:32 PM
  4. Access V Basic
    By JK in forum VB Classic
    Replies: 1
    Last Post: 04-02-2001, 09:04 AM

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