cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Running scjview in Ubuntu causes error

Former Member
0 Likes
586

Hi

I've just finished installing SQLAnywhere using the following directions:

https://wiki.scn.sap.com/wiki/display/SQLANY/Installing+SQL+Anywhere+17+on+Ubuntu+14.04 except that I'm using SQLAnywhere 16 and Ubuntu 16.04.2 using the following file: SQLANYW160032_0-21011526.gz which extracts to an ebf1600 folder on the linux server, where the install files are kept.


I installed Java jdk1.8.0_162 from java.com.

I'm trying to open the client and open the sample database to test that the server installation went well before I upload the production database and deploy my website. However, when I try to open the SQLAnywhere client, I get the following error below:


I've seen other forums where they mention /opt/sqlanywhere16/shared (or something to the effect) folder. I do not have this.


Is there anything else I should check or setup? Is there something I've missed? Otherwise, how do I access the Server Administration Tools 64-bit for Linux?


The error file is attached.

sybase-error.txt

Accepted Solutions (1)

Accepted Solutions (1)

Robert_Russell1
Contributor

Looks like you have hit the issue listed in this SAP note 2326635 - java.lang.NoClassDefFoundError when starting scjview

And you need to install the libXext and libXtst libraries

Answers (2)

Answers (2)

Former Member
0 Likes

Thank you for the answer. I don't have an S-UserID as I'm setting up a production server for a client, but I'll ask them if they have one. So I can't, as yet, see the article. I will try your method and get back to you.

As a matter of interest, is the answer you suggested the same as doing this? (I haven't done this, I just found it while searching for an answer):

Install 32 bit binaries on 64 bit Ubuntu

Former Member
0 Likes

Got it to open.

To anyone who experiences the same error in future and doesn't have access to the portal or is as new to Linux as I am, here is what I did. Couldn't dive too deep into what these libraries do but it seems they're involved in rendering the GUI.

Installed libxext-dev
sudo apt-get install libxext-dev

Instaleld lixtst-dev
sudo apt-get install libxtst-dev

from what I could pick up, apparently libxext-dev is a dependency of this, so you shouldn't have to run the above command, but I did, I'm still learning linux so I didn't leave that to chance.

Installed libxrender
sudo apt-get install libxrender1

I also performed these steps, though I don't know if they helped or not, in the end:
Add 32bit architecture

For some, those steps may not work, here's an alternative to try:

Alternative 32bit architecture steps

How I tracked down the errors, I get a message that linux saves an error file in /root/.sqlanywhere16. Open the file and somewhere in the line, you'll get an actual helpful message from java. Then google a bit and cross fingers.

If you keep getting errors, probably keep doing this. Hopefully you don't.

Thanks.