This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a javaWebService. The code compiles fine in eclipse. When I try to compile this in java 1.5 I get the error' package javax.jws does not exist' and 'package javax.xml.ws does not exist'. When I try to compile it on a unix machine from the command line using javac i get the error. When I compile the same code on another unix machine running java 1.6 everything works just fine. Could you please advise what I am missing.
The javax.jws package is not part of the core JVM class package set, it's part of J2EE. So you need to add a J2EE library to the classpath of your compile. That's not actually a Unix-only issue. The same applies to any Java compile on any OS. It's just that in the case of using Eclipse, the classpath additions had been done to your Eclipse project definition.
Customer surveys are for companies who didn't pay proper attention to begin with.
Joined: Sep 26, 2012
Also, I am creating jaxws files using wsgen that is available in jdk1.7 in the ant script. Because of this I am not able to run the service on servers which have earlier versions of java. I tried to specify the target to 1.5 for wsgen but it did not work. When i look up to see if I have wsgen in jdk1.5.0_16 I cannot find it. Could you please advise how I can use wsgen to generate target files for java 1.5 and why I cannot find wsgen in jdk1.5.0_16/bin.
Joined: Sep 26, 2012
My java build path points to jre1.6, I use wsgen in my ant file. but its version is JAX-WS 2.2.4. I was the wsgen to be 2.1. Please advise how can I force wsgen to use JAX-WS 2.1 in my ant file.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: package javax.jws does not exist error on unix