-
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?
-
Is Grid2 in the same package?
-
your two files are not in a same folder!
Similar Threads
-
By Branta in forum Careers
Replies: 0
Last Post: 11-16-2005, 06:31 PM
-
By Patrick Troughton in forum .NET
Replies: 0
Last Post: 01-31-2003, 01:09 PM
-
By Seth Grossman [MSFT] in forum vb.announcements
Replies: 1
Last Post: 03-13-2002, 07:32 PM
-
By JK in forum VB Classic
Replies: 1
Last Post: 04-02-2001, 09:04 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
Forum Rules
|
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
|
Bookmarks