abinoam
If you try to download and install Personal Brain 4.5.0.9 on Ubuntu 8.04 amd64 running OpenJDK and compiz you will probably see this message.

$ ./PersonalBrain_unix_4_5_0_9.sh
Starting Installer ...
Could not display the GUI. This application needs access to an X Server.
If you have access there is probably an X library missing.
*******************************************************************
You can also run this application in console mode without
access to an X server by passing the argument -c
*******************************************************************
An error occurred:
java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/motif21/libmawt.so
Error log: /tmp/install4jError42161.log

Yes, if you do a...

$ ./PersonalBrain_unix_4_5_0_9.sh -c

... with the "-c" option you will be able to install it, but, when you try to run it you'll probably see this:

$ ./PersonalBrain
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/motif21/libmawt.so
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1666)
    at java.lang.Runtime.load0(Runtime.java:787)
    at java.lang.System.load(System.java:1022)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1767)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1684)
    at java.lang.Runtime.loadLibrary0(Runtime.java:840)
    at java.lang.System.loadLibrary(System.java:1047)
    at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
    at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.loadLibraries(Toolkit.java:1610)
    at java.awt.Toolkit.<clinit>(Toolkit.java:1632)
    at java.awt.Component.<clinit>(Component.java:568)
    at com.install4j.runtime.splashscreen.JavaSplashController.show(Unknown Source)
    at com.install4j.runtime.SplashEngine.showSplashScreen(Unknown Source)
    at com.install4j.runtime.Launcher.main(Unknown Source)

amd64/motif21/libmawt.so ?

A 'find' reveals...

$ find /usr/lib/jvm -name "libmawt.so"
/usr/lib/jvm/ia32-java-6-sun-1.6.0.06/jre/lib/i386/motif21/libmawt.so
/usr/lib/jvm/ia32-java-6-sun-1.6.0.06/jre/lib/i386/xawt/libmawt.so
/usr/lib/jvm/ia32-java-6-sun-1.6.0.06/jre/lib/i386/headless/libmawt.so
/usr/lib/jvm/ia32-java-1.5.0-sun-1.5.0.15/jre/lib/i386/motif21/libmawt.so
/usr/lib/jvm/ia32-java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so
/usr/lib/jvm/ia32-java-1.5.0-sun-1.5.0.15/jre/lib/i386/headless/libmawt.so
/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/amd64/motif21/libmawt.so
/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/amd64/xawt/libmawt.so
/usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/amd64/headless/libmawt.so
/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/amd64/motif21/libmawt.so
/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/amd64/xawt/libmawt.so
/usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib/amd64/headless/libmawt.so
/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/xawt/libmawt.so
/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/headless/libmawt.so


The important thing is, there is no amd64/motif21/libmawt.so in OpenJDK.
Only amd64/xawt/libmawt.so and amd64/headless/libmawt.so.

If we look around the line 110 of the PersonalBrain startup script, or the PersonalBrain_unix_4_5_0_9.sh installation script there is some lines like this...

osname=`uname -s`
if [ "$osname" = "Linux" ]; then
  compiz=`ps -ef | grep -v grep | grep compiz`
  if [ -n "$compiz" ]; then
    export AWT_TOOLKIT=MToolkit
  fi
fi


Just change the MToolkit (motif21/libmawt.so) with XToolkit (xawt/libmawt.so).

Go into the path PersonalBrain was installed, and a simple...

$ cp PersonalBrain PersonalBrain.orig; sed "s/MToolkit/XToolkit/" PersonalBrain.orig > PersonalBrain

... will do this for you. You can also edit it by hand.


Now...

$ ./PersonalBrain

... runs PersonalBrain!

And, I didn't notice any issue in using XToolkit instead of MToolkit till now.
And, if you do the sed thing to the installation script, you will be able to install PersonalBrain without the "-c" option.
And, Comments are welcome!
And, no more ands.
Quote
mtre
hello everyone,
this is my first entry to this forum, so let me say that personal brain is an excellent tool!
i'm not a linux expert, so hopefully this is an easy to solve problem. so far i used PB on kubuntu gutsy gibbon and it worked fine. now, after installing hardy heron, i get this error when trying to install PB:

>>java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.JavaBridge

java is installed, and i dont understand the problem...
i appreciate any help! THANKS

marco
Quote
jostber
Hi,

Could you try to install or reinstall gnome-common?

TheBrain 8.0.2.0 Slackware 14.1 KDE 4.10.3 Java 1.7.0_25 / (Windows 7)

Quote
tcahill
It is an interesting error in that the KDE flavour of Ubuntu is missing a Java component, and is looking for it in the GNOME installables. Depending upon how this becomes resolved, it might be something the Kbuntu builders should be aware of.

Also, you might seriously consider giving the PB 4.3 experimental Beta a try. The reason I suggest this is that the Java Bridge "contains Java components which connect the built-in accessibility support in Java Swing applications to the GNOME Accessibility framework" . The 4.3 release uses "GTK natively instead of Swing", and so may enable you to by-pass the java issue you are experiencing.

Good Luck!


mtre wrote: hello everyone,
this is my first entry to this forum, so let me say that personal brain is an excellent tool!
i'm not a linux expert, so hopefully this is an easy to solve problem. so far i used PB on kubuntu gutsy gibbon and it worked fine. now, after installing hardy heron, i get this error when trying to install PB:

>>java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.JavaBridge

java is installed, and i dont understand the problem...
i appreciate any help! THANKS

marco
Be vewy quiet. I'm hunting wabbit.
Quote
mtre
hello again,
thanks for your suggestions, i tried them but had no luck. i even reinstalled kubuntu all over again, with KDE 4 and no gnome anywhere, but the error remains the same. also installed everything that sounds like java, and tried PB 4.3 as well.

in desparation, i set up the system with gnome now, and got a different flavor of this lovely problem :

-------------------------------------------------------------------

Could not display the GUI. This application needs access to an X Server.
If you have access there is probably an X library missing.
*******************************************************************
You can also run this application in console mode without
access to an X server by passing the argument -c
*******************************************************************
An error occurred:
java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/motif21/libmawt.so

-------------------------------------------------------------------

does this make more sense?
thanks again!
i plan on switching to mac osx sometime soon anyways, but i dont want to wait that long to use my brain again

Quote
jloveless
I had the same problem. Try installing by switching to the directory where you stored the .sh file and:

sh *4_5_0_0.sh -c

adding the -c worked for me.
located in Surprise, AZ - no DST here
Quote
jostber
It works great on Suse, version 11.0 is coming in 5 days:

http://en.opensuse.org/OpenSUSE_11.0
TheBrain 8.0.2.0 Slackware 14.1 KDE 4.10.3 Java 1.7.0_25 / (Windows 7)

Quote
jostber
Can  you try this if you use Kubuntu:

sudo apt-get install sun-java6-jre sun-java6-plugin
sudo update-alternatives --config java
TheBrain 8.0.2.0 Slackware 14.1 KDE 4.10.3 Java 1.7.0_25 / (Windows 7)

Quote
mtre
@ jostber,
thanks very much for your help,
with "sudo update-alternatives --config java" i changed from "java-6-openjdk" to "java-6-sun", and everything worked perfectly i never would have figured this out myself...

only thing that doesn't work is selecting colors for a thought or thought type.

but i think i will give Suse a try when its out, with kubuntu i get funny behaviors of many programs - suddenly closing, not displaying correctly, excessively slowing down, and so on.
Quote
abinoam
That post is related to this.
Quote
pistonpilot
#update-java-alternative -s java-6-sun



Quote
jengar
Ditto,  I'm using Suse 11.0 and was installing new update without problems until attempting install 4.5.2.0 when I ended with same results.  Now I have been updating my jre java to 6.0 but still have same problem if I reverse to java jre 5.0 installed.   The message I receive is:
install4j

X

An error occured
java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.JavaBridge
Error log:/tmp/install4jError52043.

However I used "thanks jostbar" the same suggestion but with Suse11.0

sudo update-alternatives --config java" i changed from "java-6-openjdk" to "java-6-sun", and  it worked  worked perfectly also for me.  ditto I never would have figured this out myself...   Thanks a million.

mtre wrote: hello everyone,
this is my first entry to this forum, so let me say that personal brain is an excellent tool!
i'm not a linux expert, so hopefully this is an easy to solve problem. so far i used PB on kubuntu gutsy gibbon and it worked fine. now, after installing hardy heron, i get this error when trying to install PB:

>>java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.JavaBridge

java is installed, and i dont understand the problem...
i appreciate any help! THANKS

marco
Gary Copcutt. Snr. Pt.
Jengar Consultants
61 (0)424044847
Quote
tcahill
jostber wrote: sudo apt-get install sun-java6-jre sun-java6-plugin sudo update-alternatives --config java

I'm Confirming that this step is also required under OpenSuse 11.1 (running Gnome).

Alternatively, as root, use
update-alternatives --config java

**************************************************************

suse:/mnt/465/Downloads # update-alternatives --config java

There are 3 alternatives which provide `java'.

Selection Alternative
-----------------------------------------------
*+ 1 /usr/lib64/jvm/jre-1.6.0-openjdk/bin/java
2 /usr/lib64/jvm/jre-1.5.0-gcj/bin/java
3 /usr/lib64/jvm/jre-1.6.0-sun/bin/java

Press enter to keep the default[*], or type selection number: 3
Using '/usr/lib64/jvm/jre-1.6.0-sun/bin/java' to provide 'java'.

*****************************************************

Perhaps update-alternatives could be called at the beginning of PB's installation script?
Be vewy quiet. I'm hunting wabbit.
Quote

Add a Website Forum to your website.

Newsletter Signup  Newsletter Signup        Visit TheBrain Blog   Visit TheBrain Blog       Follow us on Twitter   Follow Us       Like Us on Facebook   Like Us         Circle Us on Google+  Circle Us         Watch Us on Youtube  Watch Us       

TheBrain Mind Map & Mindmapping Software     Download TheBrain Mind Mapping Software