-
1. Re: JBoss Tools 2.0.1.GA error when opening JBoss Tools HTML
maxandersen Apr 24, 2008 8:53 AM (in response to hermida)has nothing to do with existing projects ;)
seem you are not using a jdk with proper AWT ?
Is it sun jvm or ? -
2. Re: JBoss Tools 2.0.1.GA error when opening JBoss Tools HTML
hermida Apr 24, 2008 8:57 AM (in response to hermida)Hello,
Thank you for the reply - it is the regular Sun JDK 5.0 Update 15 gotten from http://java.sun.com/javase/downloads/index_jdk5.jsp. This is the norm no?
leandro -
3. Re: JBoss Tools 2.0.1.GA error when opening JBoss Tools HTML
maxandersen Apr 24, 2008 9:02 AM (in response to hermida)any chance you are running 64bit?
-
4. Re: JBoss Tools 2.0.1.GA error when opening JBoss Tools HTML
hermida Apr 24, 2008 9:08 AM (in response to hermida)Regular 32-bit:
jdk-1_5_0_15-linux-i586.bin
Is there something I set up wrong? There weren't that many steps (to screw up)
leandro -
5. Re: JBoss Tools 2.0.1.GA error when opening JBoss Tools HTML
hermida Apr 24, 2008 9:32 AM (in response to hermida)Hi,
The library is there in the same directory as libawt.so:[hermida@f7-leandro01 ~/java]$ find . -iname libmlib* ./jdk1.5.0_15/jre/lib/i386/libmlib_image.so [hermida@f7-leandro01 ~/java]$
Should I change something in the eclipse.ini? I am using the default one:-showsplash org.eclipse.platform -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx512m
leandro -
7. Re: JBoss Tools 2.0.1.GA error when opening JBoss Tools HTML
hermida Apr 25, 2008 5:31 AM (in response to hermida)Hello,
I have installed the compat-libstdc++-33 rpm but I still the same have the problem. I don't understand what this means in the FAQ:In case you have the library installed and you still have issue with starting the visual page editor then close all browser views/editors and leave one visual page editor open and restart eclipse. This should force a load of the right XULRunner viewer.
Exactly what do I do? The sentence is very confusing. How do I leave one visual page editor open while closing all browser views/editors and restarting eclipse? -
8. Re: JBoss Tools 2.0.1.GA error when opening JBoss Tools HTML
maxandersen Apr 25, 2008 5:49 AM (in response to hermida)Close any browser views/editors (Web Browser javadoc view, welcome screen etc.)
Open one .xhtml file.
Close eclipse.
start eclipse - now eclipse will load us first. -
9. Re: JBoss Tools 2.0.1.GA error when opening JBoss Tools HTML
hermida Apr 25, 2008 5:57 AM (in response to hermida)Hi,
I found the issue. If you do an ldd of libawt.so you see:ldd /home/hermida/java/jdk1.5.0_15/jre/lib/i386/libawt.so
linux-gate.so.1 => (0x00110000)
libmlib_image.so => not found
libjvm.so => not found
libm.so.6 => /lib/libm.so.6 (0x0019b000)
libdl.so.2 => /lib/libdl.so.2 (0x001c4000)
libjava.so => not found
libc.so.6 => /lib/libc.so.6 (0x001c9000)
/lib/ld-linux.so.2 (0x00478000)
So one needs to create an LD_LIBRARY_PATH env var if you don't already have one which points to all the right libraries (shown for Bash):LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib:/usr/lib:/usr/local/lib:$JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib/i386/client:$JAVA_HOME/jre/lib/i386/server export LD_LIBRARY_PATH
Then upon resourcing your .bash_profile and doing another ldd:ldd /home/hermida/java/jdk1.5.0_15/jre/lib/i386/libawt.so
linux-gate.so.1 => (0x00110000)
libmlib_image.so => /home/hermida/java/current/jre/lib/i386/libmlib_image.so (0x0019b000)
libjvm.so => /home/hermida/java/current/jre/lib/i386/client/libjvm.so (0x00495000)
libm.so.6 => /lib/libm.so.6 (0x00262000)
libdl.so.2 => /lib/libdl.so.2 (0x0028b000)
libjava.so => /home/hermida/java/current/jre/lib/i386/libjava.so (0x00290000)
libc.so.6 => /lib/libc.so.6 (0x002b3000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00407000)
/lib/ld-linux.so.2 (0x00478000)
libverify.so => /home/hermida/java/current/jre/lib/i386/libverify.so (0x0041f000)
libnsl.so.1 => /lib/libnsl.so.1 (0x0042b000)
Then everything works! I would update the FAQ to include these steps :)
Leandro -
10. Re: JBoss Tools 2.0.1.GA error when opening JBoss Tools HTML
maxandersen Apr 25, 2008 6:05 AM (in response to hermida)it's a wiki - feel free ;)
note: I don't need to update LD_LIBRARY_PATH so must be something specific to your setup...