473,402 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Error in Java Code - Kindly help me

sreekandank
I have created the following java code:
Expand|Select|Wrap|Line Numbers
  1. package myhellomsgclient;
  2. import java.io.*;
  3. import javax.servlet.*;
  4. import javax.servlet.http.*;
  5. public class HelloMsgClientProg extends HttpServlet
  6. {
  7.  public void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
  8.  {
  9.   res.setContentType("text/html");
  10.   PrintWriter out=res.getWriter();
  11.   SimpleHelloMessage_Impl service=new SimpleHelloMessage_Impl();
  12.   MyInterface stub=service.getMyInterfacePort();
  13.   //ConverterInterface service=(new SimpleCurrencyConverter_Impl()).getConverterInterfacePort();
  14.   String str=service.helloFun("hello from client");
  15.   out.println(str);
  16.  }
  17. }
I am unable to access the classes and interfaces from the package. Stating the following Error messages during the compilation.

C:\jwsdp-1.3\webapps\HelloMessageClient\WEB-INF\classes>set path="C:\j2sdk1.4.2_
05\bin";

C:\jwsdp-1.3\webapps\HelloMessageClient\WEB-INF\classes>javac myhellomsgclient/H
elloMsgClientProg.java
myhellomsgclient/HelloMsgClientProg.java:11: cannot resolve symbol
symbol : class SimpleHelloMessage_Impl
location: class myhellomsgclient.HelloMsgClientProg
SimpleHelloMessage_Impl service=new SimpleHelloMessage_Impl();
^
myhellomsgclient/HelloMsgClientProg.java:11: cannot resolve symbol
symbol : class SimpleHelloMessage_Impl
location: class myhellomsgclient.HelloMsgClientProg
SimpleHelloMessage_Impl service=new SimpleHelloMessage_Impl();
^
myhellomsgclient/HelloMsgClientProg.java:12: cannot resolve symbol
symbol : class MyInterface
location: class myhellomsgclient.HelloMsgClientProg
MyInterface stub=service.getMyInterfacePort();
^
3 errors

C:\jwsdp-1.3\webapps\HelloMessageClient\WEB-INF\classes>

Kindly Help Me...Thanks in advance ...
Mar 31 '12 #1
1 1398
you have to add import statement for you class for example
Expand|Select|Wrap|Line Numbers
  1.  import myhellomsgclient.testclass;
Apr 2 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Matt | last post by:
I run the xalan-java v2.60 command line: java org.apache.xalan.xslt.Process -in test.xml -xsl test.xsl -out test.html But it has the following error: (Location of error unknown)XSLT Error...
4
by: Khan | last post by:
hi, i'm writing java code inside <body> tag of java script file. all the java code is executing at frame startup. how can i call that java code only when i click on a button. I can call jscript...
0
by: sivavenugopal | last post by:
Hi, I have an C# Windows applicayion in that i need to compile the java code taht is written by the user in a text area. After compilation i need to display the error with line numbers in other...
4
by: mjahabarsadiq | last post by:
HELLO FRIENDS I HAVE ONE JAVA CODE WHICH PARSES AN XML FILE AND PRODUCE A QUERY TO CREATE TABEL IN A DATABASE. BUT I NEED THE CODE TO BE USED IN A JSP PAGE. HOW TO USE THIS PAGE WITH JSP. ...
2
by: chiasien | last post by:
Hi All, I need help!! Please refer below for my java code. There was error some where inside! But need those expert to help me complete my Java code without error.... Please help!! Thanks alot. ...
2
by: KyleUbenk | last post by:
Hello, I am attempting to compile java code from within my program. Basically I have a file in the directory with Java source code, and I want to be able to compile it from within my program. The...
1
by: hussain123 | last post by:
Hi All, I am invoking a procedure which takes 2 IN parameters and both are dates which are passed as string.In the procedure I am using those 2 IN parameters to query the db and fetch record between...
2
by: cloudy | last post by:
First at all, i'm sorry, i not good in writing english. i want to retrieve a string from my applet via Javascript. I use a method named ReadAll. public String ReadAll(String StrOut, String...
6
by: bw171 | last post by:
I got some java code below, and upon trying to compile it in my unix environment, i get the following error ()> javac Downloader.java Downloader.java:37: ';' expected private enum...
3
by: makweatan | last post by:
Hello guys... Data is not updated into table. I got this error : java.lang.NullPointerException 00000030 SystemErr R java.lang.NullPointerException 00000030 SystemErr R at...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.