Thanks, Patrick.

Your updates do basically work for me.

I added

#!/usr/bin/env xdg-open

and changed

Terminal=true
...
Exec=/home/me/Downloads/j64-806/bin/jconsole

for jc806 and

!/usr/bin/env xdg-open

and changed

Terminal=true
...
Exec=/home/me/Downloads/j64-806/bin/jconsole ~addons/ide/jhs/config/jhs.cfg

for jhs806.

I still get the "no version information available" message, but everything seems to work fine.

/David


On 3/19/2017 11:12, J. Patrick Harrington wrote:
You might look at my earlier post on "icons on Ubuntu". I had the same
problem, and the fix I found for Ubuntu 16.04 also works for my linux
box at work (also running Centos). I changed the desktop icon file
"jc806.desktop" to

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=true
Name[en_US]=jc806
Exec=/home/tages/j64-806/bin/jconsole
Name=jc806
Icon=/home/tages/j64-806/bin/icons/jgray.png

with a similar change for the jhs806.desktop icon. Give it a try.

                                                   Patrick

On Sun, 19 Mar 2017, David Mitchell wrote:
I installed J64-806 on Centos 7, activated AVX and ran the jhs installer script.

The installer script created 3 icons, jc806, jhs806 and jqt806.  jqt806 worked
fine.  Both jc806 and jhs806 failed with "There was an error launching the
application."

The commands in the icons were as follows:

jc806: x-terminal-emulator -e "\"/home/me/Downloads/j64-806/bin/jconsole\""
jhs806: x-terminal-emulator -e "\"/home/me/Downloads/j64-806/bin/jconsole\" ~
addons/ide/jhs/config/jhs.cfg"

I tried the same commands in a terminal window and was told that
x-terminal-emulator was not found.

I did some research and found that x-terminal-emulator does not exist for
Centos 7 and that the simplest fix was to replace x-terminal-emulator in the
command strings with gnome-terminal, as I have Gnome installed.

The updated commands now worked but generated the following message for
jconsole and jhs:

/home/me/Downloads/j64-806/bin/jconsole: /lib64/libtinfo.so.5: no version
information available (required by /home/me/Downloads/j64-806/bin/jconsole)

This message did not stop jconsole from running.

jhs also had this message:

sh: x-www-browser: command not found

A bit more research found that this could be fixed in ide/jhs/core.jhs by
replacing:

 case. 'Linux'  do. 2!:0'x-www-browser ',url,' >/dev/null &'

with

 case. 'Linux'  do. 2!:0'xdg-open ',url,' >/dev/null &'

A different general fix for the URL open might be to parse the result of this
command:

$ cat /usr/share/applications/defaults.list | grep http
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop

and plug in firefox, for example.

/David Mitchell
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to