I putted a.java,b.java file into com.example.servlets using package i compiled a.java its compiling Note:it is package file i compiling b.java its showing below error Note:it is import from package
location: package com.example.servlets com.example.servlets.HelloEvents h=(com.example.servlets.HelloEvents)obj; ^ AutoServlet.java:38: cannot find symbol symbol : class HelloEvents location: package com.example.servlets com.example.servlets.HelloEvents h=(com.example.servlets.HelloEvents)obj
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35241
7
posted
0
What is the exact command you're using to compile? Is the HelloEvents class in your classpath?
I'll move this to more a appropriate forum, since this has nothing to do with servlets, but with basic compilation and classpath issues.
symbol : class HelloEvents location: package com.example.servlets com.example.servlets.HelloEvents h=(com.example.servlets.HelloEvents)obj; ^ AutoServlet.java:38: cannot find symbol symbol : class HelloEvents location: package com.example.servlets com.example.servlets.HelloEvents h=(com.example.servlets.HelloEvents)obj;