Results 1 to 2 of 2
- 09-10-2012, 07:56 AM #1
Member
- Join Date
- Sep 2012
- Posts
- 1
- Rep Power
- 0
Message.java:6: error: cannot find symbol
Joined: Aug 20, 2012
Posts: 10
[Post New]posted Today 10:56:29
Quote Edit
HI
I am doing practice in core java.
I have set java path=C:\Program Files\Java\jdk1.7.0_03\bin;
CLASSPATH=C:\Program Files\Java\jdk1.7.0_03\bin;
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_03
And write tow simple classes..
When I compiled Home1.java , it is not giving any error but when i compiled Message.java its giving error...
package com.example;
public class Home1
{
public Home1()
{
System.out.println("Hi Pravin..");
}
}
============
package com.example;
public class Message
{
public static void main(String[] args)
{
Home1 h=new Home1();
}
}
============
when i complie message getting error..
C:\Users\N\Desktop\src\com\example>javac Message.java
Message.java:6: error: cannot find symbol
Home1 h=new Home1();
^
symbol: class Home1
location: class Message
Message.java:6: error: cannot find symbol
Home1 h=new Home1();
^
symbol: class Home1
location: class Message
2 errors
Please help me..Last edited by pravingajbhiye; 09-10-2012 at 08:01 AM.
- 09-10-2012, 09:26 AM #2
Re: Message.java:6: error: cannot find symbol
Why do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
I'm getting CustomerTest.java:38: error: cannot find symbol when i try to compile
By vcardell in forum New To JavaReplies: 1Last Post: 11-18-2011, 11:55 PM -
Cannot find symbol error message
By interestingdave in forum New To JavaReplies: 1Last Post: 02-15-2011, 02:17 PM -
java:92: cannot find symbol error
By noviceNewbie in forum AWT / SwingReplies: 3Last Post: 12-18-2010, 02:46 AM -
cannot find symbol symbol :constructor Error. Please help! =(
By KalEl in forum New To JavaReplies: 9Last Post: 10-18-2008, 08:26 PM -
[SOLVED] Java Error: Cannot find Symbol...
By bobleny in forum New To JavaReplies: 8Last Post: 04-15-2008, 06:35 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks