• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

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

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 22684
128
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic