Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning 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
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

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: 22015
108
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.
 
I like you because you always keep good, crunchy cereal in your pantry. This tiny ad agrees:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic