Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • 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
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Error on running a java client for webservice java.lang.NoClassDefFoundError

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I am trying to create a java webservice client for a service. I am using the Oracle Application server and java version 1.4.

But my System java path points to a java 1.6. My problem is no way related to Webservice hence posting it here.

When i tries to run the class i am getting this exception.


can anybody have a clue whats the problem? is it becuse my java version which i used to compile the src files and my system java are different?

Best Regards
Vishnu Nv
 
Sheriff
Posts: 21802
104
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you give us the full command line you are trying to execute?

You should enclose paths with spaces in them in double quotes in Windows ("C:\Program Files\Java\jdk1.6.0_13\bin\java.exe"), but somehow I think you have an error somewhere else - because the "Files\Java\jdk1.6.0_13\bin\java.exe" part is sent to the JVM as the class name.
 
vishnu vyasan
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bob, That was presisly the issue. i have moved the the jvm to local path C:\java; it worked fine.

Thanks a lot for replying.
 
Your mind is under my control .... your will is now mine .... read this tiny ad
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!