cancel
Showing results for 
Search instead for 
Did you mean: 

Eclipse connection issue

former_member637479
Discoverer

java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException while connecting to SAP HANA Administration console

former_member637479
Discoverer
0 Kudos

Hi All,

I am getting this error while trying to connect to HANA DB in SAP HANA Administration Console in Eclipse

Any help will be greatly appreciated

Azhar

0 Kudos

Hello Together,

I do have the same issue.

I installed everything correctly in the latest versions:

  • Eclipse 12-2019
  • Hana Tools for Eclipse and also the BW Modeling Tools
  • OpenJava JDK 13.0.2

I also installed the Hana DB Client Version 2.4.177.

But I get the same Error in Eclipse:

java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException

Any additional Hints beside this note above?

Remark: Developing in ABAP on Application Servers works fine with this Eclipse.

lbreddemann
Active Contributor
lbreddemann
Active Contributor

Hmm... this is not a very good answer to the question.

The referenced SAP note only states that SAP does not provide support for the HANA tools from tools.hana.ondemand.com and that folks that require help can go and find it... here.

Yet, this answer sends those that actually can access the SAP note (only those users associated with a paid support contract) into an infinite loop.

The fact that much of HANA related information - even for the HXE Expression Edition - is only available in closed KBA/SAP notes is a problem in itself, but providing no actual answer on two different levels is a higher level of "not a useful answer".

For what it's worth, my "note to myself" blog post, that I wrote after figuring out the issue and forgetting it again only to have to find the solution once again, is the most-viewed single post of all on my blog (lbreddemann.org).

It could, of course, be that the other content is really rubbish and stinks compared to the small fix described in it; however, my take is that it's rather caused by the fact, that this issue affects many users. And those users don't find help from SAP or in this community.

That's not a great way to foster an open developer community.

Accepted Solutions (0)

Answers (3)

Answers (3)

connectSidd
Explorer

Extending the solution by Lars for Windows users, you need to do similar changes in eclipse.ini file in Eclipse package content in case you have multiple java versions.

1) Goto the directory where your Eclipse.exe file is located. You will find eclipse.ini file here. Usually it would be

C:\Users\<userName>\eclipse\java-<version>\eclipse folder
2) Open eclipse.ini with notepad and try to locate string -vm
3) In my case the path specified after -vm was still pointing towards newer JDK 11 version.
-vm
C:\Program Files (x86)\java\jdk-11.0.7\bin

I changed the path to point it to JDK 8 so it looks like this

-vm
C:\Program Files\Java\jdk1.8.0_251\bin

4) Once done, save and close the file. Restart eclipse and you would be able to login now.

Hello Lars,

Many thanks.

I uninstalled the OpenJDK and installed the latest Java 8 and it works.

Let's hope that in future it will work with the OpenJDK as well.

KR

Markus

maalberto
Explorer
0 Kudos

Still got the same error, using JDK 14 + Eclipse 2019-12, trying to add system at HANA Modeler...

lbreddemann
Active Contributor
0 Kudos

The key point here is that you need to use JDK 1.8 - newer JDKs don't work.

It's all explained in my already mentioned blog post https://lbreddemann.org/ntm-hana-studio-noclassdeffounderror-javax-xml-soap-soapexception/