• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

wsimport not able to find the main class: com.sun.tools.internal.ws.WsImport

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am trying to download packages from an application for cisco.
I have the wsdl and xsd file downloaded for the same.

I downloaded eclipse 4.3.2 and jdk1.6.0_43.

Created a new project and added my schema folder in the same path as src.

I try to now generate classes using the below command:

wsimport -keep -b schema/current/AXLSOAP.xsd -Xnocompile -s src -d bin -verbose schema/current/AXLAPI.wsdl

and the in process the program fails because the main class is not found.


Could not find the main class: com.sun.tools.internal.ws.WsImport. Program will
exit.


I am not from a programming background.

Not sure if this class was a part of my jdk package. Please suggest how can I resolve this.



 
Bartender
Posts: 1165
38
IBM DB2 Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds really strange. Try and reinstall the JDK, maybe a more recent ( I mean: jdk 1.7.x) and let we know what happens...
 
Crusading Chameleon likes the size of this ad:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!