Cmap problems in Ubuntu

Asked by Pernille Jans

Hi
I have installed Ubuntu 7.10 on my computer, and would like to run the program Cmap (from http://cmap.ihmc.us/), which I used on Windows. The program is available for Linux, and I have installed it, but it is not running properly: The two windows which open are grey, and it is not possible to write or do anything in them. The Cmap support team suggested it might be a Java problem, but Java is running fine when I use Firefox. They also wrote that Cmap should be running fine on Redhat, do I need a Redhat simulator to solve the problem? Or what else could I do?
Regards Pernille

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ralph Janke (txwikinger) said :
#1

Thanks for the question.

What is the result of "java -version" if you tun it from a terminal ?

Thanks

Revision history for this message
Ralph Janke (txwikinger) said :
#2

See also here: https://help.ubuntu.com/community/Java

The software might require sun's java and libraries. The webpage shows you how to make sure that you are in fact using sun's java and not the free GPL version which is default.

Hope this helps.

Revision history for this message
Pernille Jans (pernille-jans) said :
#3

Ralph Janke wrote:
> Your question #18055 on Ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+question/18055
>
> Status: Open => Needs information
>
> Ralph Janke requested for more information:
> Thanks for the question.
>
> What is the result of "java -version" if you tun it from a terminal ?
>
> Thanks
>
>
The result is:
pernille@Millens-computer:~$ java -version
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)

I have dis-installed Java using Synaptic, and reinstalled it using
Add/remove, and installed an update following the Linux guide:
http://www.java.com/en/download/help/5000010500.xml#enabl. .

When I run a Java test at the side I am told that my Java is not OK, and
recommended to install the update I just installed.

So something with Java is wrong.

Regards Pernille Jans

Revision history for this message
Ralph Janke (txwikinger) said :
#4

Well. There is more to a proper install then just installing the software. That's why ubuntu has a package system that ensure that the software is installed properly for ubuntu.

As described in https://help.ubuntu.com/community/Java you need to install the sun-java-packages. You are probably fine with the java6 packages from sun.

The you need to set sun-java with the update-java-alternatives command. I have no idea what your cmap software really uses, since you have to register to get it. You may want to install at least the jre and the plugin. Maybe also the sdk, if it needs to compile java-code.

If you have done all of that correctly, I doubt you have problems with your software except if it expects the java package in a different directory, but this should be configurable.

Hope this helps.

Revision history for this message
Pernille Jans (pernille-jans) said :
#5

Ralph Janke wrote:
> Your question #18055 on Ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+question/18055
>
> Status: Open => Answered
>
> Ralph Janke proposed the following answer:
> Well. There is more to a proper install then just installing the
> software. That's why ubuntu has a package system that ensure that the
> software is installed properly for ubuntu.
>
> As described in https://help.ubuntu.com/community/Java you need to
> install the sun-java-packages. You are probably fine with the java6
> packages from sun.
>
> The you need to set sun-java with the update-java-alternatives command.
> I have no idea what your cmap software really uses, since you have to
> register to get it. You may want to install at least the jre and the
> plugin. Maybe also the sdk, if it needs to compile java-code.
>
> If you have done all of that correctly, I doubt you have problems with
> your software except if it expects the java package in a different
> directory, but this should be configurable.
>
> Hope this helps.
>
>
I have installed the sun-java-6 as described on the webpage, using
Synaptic. I have also the sdk (mentioned on the webpage), and jre and
plugin. I had a problem with one file, I got this message:

E: sun-java6-doc: subprocess post-installation script returned error
exit status 1

As far as I can se it is documentation, I should not be needed for the
program to work? I am not very experienced in Linux or Ubuntu, I had
Ubuntu for a week.

My Java still does not work, after this installation.

I don't know how "the update-java-alternatives command", so I have not
used that. How is that done?

Best Regards

Pernille Jans

Revision history for this message
Ralph Janke (txwikinger) said :
#6

You need to open a terminal (see https://help.ubuntu.com/community/UsingTheTerminal) and copy & paste the line

 sudo update-alternatives --config java

then you select the sun-java package with the number of it accordingly.

Hope this helps

Revision history for this message
Pernille Jans (pernille-jans) said :
#7

Ralph Janke wrote:
> Your question #18055 on Ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+question/18055
>
> Status: Open => Answered
>
> Ralph Janke proposed the following answer:
> You need to open a terminal (see
> https://help.ubuntu.com/community/UsingTheTerminal) and copy & paste the
> line
>
> sudo update-alternatives --config java
>
> then you select the sun-java package with the number of it accordingly.
>
> Hope this helps
>
>
I did run the update in a terminal, and choose the Sun 6 Java. But the
problem is the same: When I test Java I get the result:

Verifying Java Version

Oops! You don't have the recommended Java installed.
Your Java version is 1.4.2. Please click the button below to get the
recommended Java for your computer.

NOTE: If you recently completed your Java software installation, you may
need to restart your browser (close all browser windows and re-open)
before verifying your installation.

After the test I had three option to fix the problem, to enable plugins,
and clear the cache. But that did not help either.

Revision history for this message
Ralph Janke (txwikinger) said :
#8

what does java -version say? Which version of java does cmap expect?

Revision history for this message
Ralph Janke (txwikinger) said :
#9

You might also want to install the plugin version of sun's java6. It might be that this is used by cmap.

Revision history for this message
Pernille Jans (pernille-jans) said :
#10

Ralph Janke wrote:
> Your question #18055 on Ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+question/18055
>
> Status: Needs information => Answered
>
> Ralph Janke proposed the following answer:
> You might also want to install the plugin version of sun's java6. It
> might be that this is used by cmap.
>
>
java -version says:

pernille@Millens-computer:~$ java -version
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)

I don't know which version Cmap expects, but java6 is the newest, Cmap
should not need anything newer than that. I have tried to install and
reinstall java 6 severelt times, but it does not work. When I try the
Java tester :

http://www.java.com/en/download/installed.jsp

I am told that I don't hav the newest version, and that I need to
install the version I just installed, using Synaptic. I have installed
the plug-ins.

/Pernille

Revision history for this message
Pernille Jans (pernille-jans) said :
#11

Ralph Janke wrote:
> Your question #18055 on Ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+question/18055
>
> Status: Needs information => Answered
>
> Ralph Janke proposed the following answer:
> You might also want to install the plugin version of sun's java6. It
> might be that this is used by cmap.
>
>
When I run the Java tester it says I have version 1.4.2

Oops! You don't have the recommended Java installed.
Your Java version is 1.4.2. Please click the button below to get the
recommended Java for your computer.

I have tried to update it using the Synaptic, but it has not worked it
seems.

How should it be done then?

/Pernille

Revision history for this message
Ralph Janke (txwikinger) said :
#12

Well, that is the gjc version of java. Where does the java tester run? In your browser? Firefox?

If so, then you need to also install the sun-java6-plugin and do the same selection i.e

 sudo update-alternatives --config java-plugin (or something like that. It is explained on the page sudo update-alternatives --config java

Revision history for this message
Markus K. (caleb7) said :
#13

Hello everybody,

I just came across the same issue with CmapTools 4.16 on Ubuntu 7.10. It seems as if the JRE which comes with CmapTools somehow causes the messed up GUI. Simply renaming/deleting the bundled JRE ("jre" folder in "IHMC_CmapTools/") solved the problem for me.

My Java version installed via Synaptic is:
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Server VM (build 1.6.0_03-b05, mixed mode)

Best regards,
Markus

Revision history for this message
Michael Rodden (mrodden) said :
#14

I had same problem and Markus K solution seems to have worked perfectly. Many thanks Markus.
Michael

Revision history for this message
Damian Frick (dafrick) said :
#15

Just had the same problem. Your solution seems to work perfectly, at first glance.

Revision history for this message
Andreas Ligtvoet (nooneisthisimaginative) said :
#16

Same solution (delete jre map) worked with CMAP 4.18 and Ubuntu 8.04

Revision history for this message
Alex Lopez (alfitovdkiv) said :
#17

In my case something was wrong with the PATH variable maybe.
Anyway, I renamed jre as suggested, and create a link to jre installation folder:
ln -s /usr/lib/jvm/java-6-sun-1.6.0.07/jre

That was fine for me

Revision history for this message
Fellipe (felipecorredor) said :
#18

Hi
I had the same problem, and is related to compiz, or some other windows decorator. Try to write in a terminal:
metacity --replace
and then open the Cmap tools.

Revision history for this message
David Groos (djgroos) said :
#19

Hi All,
The following message came from Rodrigo Carvajal who, for many years, has been the chief support person at IHMC that makes CmapTools and CmapServer. His reply was the following--I don't follow all of what he said but trust his advice on this. To solve the problem I simply turned of Compiz.
David

From: Cmap Support [mailto:<email address hidden>]
Sent: Tue 12/23/2008 1:06 AM
To: David Groos
Subject: Re: Cmap Website Contact -- Question

Hi,

There is an incompatibility between Java and Compiz. CmapTools is written in Java. So, you need to disable Compiz in order to be able to work properly with CmapTools. Alt-F2 disables and enables Compiz, but a more permanent solution is
to modify some variables.

Open a Terminal session and type:

export AWT_TOOLKIT="MToolkit"

or

export
_JAVA_OPTIONS="-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"

or if you want to have it "permanently" them you would need include it in

/etc/environment

After you export the variable, you have to reset the "graphical terminal" and then run CmapTools.

Revision history for this message
ollenotna (ollenotna2000) said :
#20

Markus K solution (delete jre map) worked with CMAP 5.03 and Ubuntu 9.10
(Compiz is working, I didn't have to turn it off).

Revision history for this message
ubeagle (fun-stuff) said :
#21

CMAP 5.03 and Ubuntu 9.10: Markus K's solution worked for me as well. Just renamed the "jre" folder in the CmapTools directory into sth. like "jre.orig" and restart the program.

Can you help with this problem?

Provide an answer of your own, or ask Pernille Jans for more information if necessary.

To post a message you must log in.