File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem importing javax.xml.rpc.Service and ServiceFactory

 
Shantanu Deshmukh
Greenhorn
Posts: 23
Java jQuery PHP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I have a very simple program which accesses a WSDL. But these two packages javax.xml.rpc.Service and javax.xml.rpc.ServiceFactory are being told as not available.
I have downloaded javaee.jar which contains all these packages and i have copied this jar file into lib folder fo my jdk1.6.0_26. But still when I attempt to compile the program, same error is being given.

Please help,

Shantanu
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi and welcome to the JavaRanch.

You shouldn't put the jar file there but you need to add it to the classpath.
 
Shantanu Deshmukh
Greenhorn
Posts: 23
Java jQuery PHP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wouter Oet wrote:Hi and welcome to the JavaRanch.

You shouldn't put the jar file there but you need to add it to the classpath.


Thanks for warm welcome,
Ok, by the way, you must have understood that I m total newbie to java.

So by the class path you mean, i need to write something like this: export CLASSPATH=\home\shantanu\DEV_DOCS\SOAP ?
that's the dir where my program lies.

Thanks for quick reply, awaiting another quick reply

Thanks and Regards,

Shantanu
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Although that is a way to accomplish it I prefer to add it to the java(c) command. The thing is that the environment type is global. So if you have multiple project then each timer switching projects you need to adjust it.

So I prefer:

java -cp <insertClasspathHere> YourProgram

Search for classpath. You'll find a lot.
 
Shantanu Deshmukh
Greenhorn
Posts: 23
Java jQuery PHP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much for the help,

Now I can advance as the environment is set !!

Many Thanks,

Shantanu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic