Abhishek Mahanty's Weblog

Sunny Days...
Wednesday Apr 16, 2008

NetBeans Quiz!

Want to win an Apple MacBook Air, iPod, Sony Playstation and lots of cool stuff every week?
Well just take the NetBeans Quiz!

Click below to learn how.

[Read More]

Sunday Feb 24, 2008

Java Plugin for Firefox on Linux

I hit a page that had a Java applet and got the following "Missing Plugin" message.


Basically, my browser - firefox was unable to locate a Java Plugin needed to execute the applet on the page. It also gave me an option to "install the missing plugin" which essentially involved downloading a complete JRE which would take time. However, since I already had the latest JRE installed on my system, this is how I went about configuring firefox to use the same.

1. View the contents of the firefox plugins folder to look for existing/older Java plugins (if any)

abhi@abhiltlnx(~)$ type firefox
firefox is /usr/bin/firefox

abhi@abhiltlnx(~)$ ls -ll /usr/bin/firefox
lrwxrwxrwx 1 root root 25 2008-02-08 03:05 /usr/bin/firefox -> ../lib/firefox/firefox.sh

abhi@abhiltlnx(~)$ ls -lth /usr/lib/firefox/
total 12M
drwxr-xr-x 2 root root 4.0K 2008-02-08 03:05 icons
drwxr-xr-x 2 root root 4.0K 2008-02-08 03:05 plugins
drwxr-xr-x 6 root root 4.0K 2008-02-08 03:05 res
drwxr-xr-x 2 root root 4.0K 2008-02-08 03:05 searchplugins
drwxr-xr-x 2 root root 4.0K 2008-02-08 03:05 greprefs
drwxr-xr-x 3 root root 4.0K 2008-02-08 03:05 chrome
drwxr-xr-x 2 root root 4.0K 2008-02-08 03:05 components
drwxr-xr-x 5 root root 4.0K 2008-02-08 03:05 defaults
drwxr-xr-x 2 root root 4.0K 2008-02-08 03:05 dictionaries
drwxr-xr-x 5 root root 4.0K 2008-02-08 03:05 extensions
-rwxr-xr-x 1 root root 9.4M 2007-09-25 00:22 firefox-bin
-rwxr-xr-x 1 root root  14K 2007-09-25 00:22 mozilla-xremote-client
-rwxr-xr-x 1 root root 107K 2007-09-25 00:22 libxpcom_compat.so
-rwxr-xr-x 1 root root 798K 2007-09-25 00:22 libxpcom_core.so
-rwxr-xr-x 1 root root 9.6K 2007-09-25 00:22 libxpcom.so
-rwxr-xr-x 1 root root  14K 2007-09-25 00:22 libxpistub.so
-rwxr-xr-x 1 root root  62K 2007-09-25 00:22 updater
-rwxr-xr-x 1 root root 621K 2007-09-25 00:22 libmozjs.so
-rwxr-xr-x 1 root root  22K 2007-09-25 00:22 xpicleanup
-rw-r--r-- 1 root root  158 2007-09-25 00:22 browserconfig.properties
-rwxr-xr-x 1 root root 6.1K 2007-09-25 00:22 firefox.sh
-rw-r--r-- 1 root root  177 2007-09-25 00:19 readme.txt
-rwxr-xr-x 1 root root  11K 2007-09-25 00:19 run-mozilla.sh
-rw-r--r-- 1 root root  145 2007-09-25 00:19 updater.ini

abhi@abhiltlnx(~)$ ls -lth /usr/lib/firefox/plugins/
total 24K
-rwxr-xr-x 1 root root 22K 2007-09-25 00:22 libnullplugin.so
      

2. Locate the Java plugin library file in the installed JDK/JRE
The java plugin file will be - $JRE_HOME/jre/plugin/i386/ns7/libjavaplugin_oji.so

abhi@abhiltlnx(~)$ type java
java is hashed (/usr/bin/java)
abhi@abhiltlnx(~)$ ls -ll /usr/bin/java
lrwxrwxrwx 1 root root 30 2008-02-17 06:22 /usr/bin/java -> /opt/java/jdk1.6.0_04/bin/java
abhi@abhiltlnx(~)$ cd /opt/java/jdk1.6.0_04/
abhi@abhiltlnx(/opt/java/jdk1.6.0_04)$ ls -lth jre/plugin/i386/ns7/
total 140K
-rwxr-xr-x 1 root root 134K 2007-12-14 15:04 libjavaplugin_oji.so
abhi@abhiltlnx(/opt/java/jdk1.6.0_04)$         
      

3. Create a soft/symbolic link to the java plugin file in the firefox plugins folder.
Note: root access needed... use sudo.

abhi@abhiltlnx(/opt/java/jdk1.6.0_04)$ sudo ln -s jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox/plugins/
root's password:

abhi@abhiltlnx(/opt/java/jdk1.6.0_04)$ ls -lth /usr/lib/firefox/plugins/
total 28K
lrwxrwxrwx 1 root root  62 2008-02-26 00:54 libjavaplugin_oji.so -> /opt/java/jdk1.6.0_04/jre/plugin/i386/ns7/libjavaplugin_oji.so
-rwxr-xr-x 1 root root 22K 2007-09-25 00:22 libnullplugin.so
abhi@abhiltlnx(/opt/java/jdk1.6.0_04)$ 
        
      

Exit and restart firefox. You should be able to view the applet on the page.

If you have any issues, make sure that Java has been enabled in the content tab of the firefox preferences dialog (Edit -> Preferences -> Content)

4. View Java Console

In order to view any System.out or System.err messages from the applet, configure the Java Control Panel

abhi@abhiltlnx(/opt/java/jdk1.6.0_04/bin)$ javaws -viewer &
[1] 14233
abhi@abhiltlnx(/opt/java/jdk1.6.0_04/bin)$     
      


Restart firefox and now when an applet gets executed, you'll view the Java Console with all the messages.


Resources:

To learn more:

Saturday Feb 16, 2008

HotSpot JVM Options

There are a number of parameters/options you can provide while creating a Java HotSpot VM. The options fall under the following 3 categories:

  • Standard - To list out the standard options do: java -help
        abhi@abhiltlnx(~)# java -help
        Usage: java [-options] class [args...]
                   (to execute a class)
           or  java [-options] -jar jarfile [args...]
                   (to execute a jar file)
    
        where options include:
            -d32          use a 32-bit data model if available
    
            -d64          use a 64-bit data model if available
            -client       to select the "client" VM
            -server       to select the "server" VM
            -hotspot      is a synonym for the "client" VM  [deprecated]
                          The default VM is client.
    
            -cp 
            -classpath 
                          A : separated list of directories, JAR archives,
                          and ZIP archives to search for class files.
            -D=
                          set a system property
            -verbose[:class|gc|jni]
                          enable verbose output
            -version      print product version and exit
            -version:
                          require the specified version to run
            -showversion  print product version and continue
            -jre-restrict-search | -jre-no-restrict-search
                          include/exclude user private JREs in the version search
            -? -help      print this help message
            -X            print help on non-standard options
            -ea[:...|:]
            -enableassertions[:...|:]
                          enable assertions
            -da[:...|:]
            -disableassertions[:...|:]
                          disable assertions
            -esa | -enablesystemassertions
                          enable system assertions
            -dsa | -disablesystemassertions
                          disable system assertions
            -agentlib:[=]
                          load native agent library , e.g. -agentlib:hprof
                            see also, -agentlib:jdwp=help and -agentlib:hprof=help
            -agentpath:[=]
                          load native agent library by full pathname
            -javaagent:[=]
                          load Java programming language agent, see java.lang.instrument
            -splash:
                          show splash screen with specified image
    
              
  • Non-Standard - To list them out do: java -X
        abhi@abhiltlnx(~)# java -X
            -Xmixed           mixed mode execution (default)
            -Xint             interpreted mode execution only
            -Xbootclasspath:
                              set search path for bootstrap classes and resources
            -Xbootclasspath/a:
                              append to end of bootstrap class path
            -Xbootclasspath/p:
                              prepend in front of bootstrap class path
            -Xnoclassgc       disable class garbage collection
            -Xincgc           enable incremental garbage collection
            -Xloggc:    log GC status to a file with time stamps
            -Xbatch           disable background compilation
            -Xms        set initial Java heap size
            -Xmx        set maximum Java heap size
            -Xss        set java thread stack size
            -Xprof            output cpu profiling data
            -Xfuture          enable strictest checks, anticipating future default
            -Xrs              reduce use of OS signals by Java/VM (see documentation)
            -Xcheck:jni       perform additional checks for JNI functions
            -Xshare:off       do not attempt to use shared class data
            -Xshare:auto      use shared class data if possible (default)
            -Xshare:on        require using shared class data, otherwise fail.
    
        The -X options are non-standard and subject to change without notice.
    
              
  • Hidden - Well as the name suggests, they are hidden. These options typically have a -XX prefix

To learn more about the HotSpot JVM options - http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp

I found a great resource that lists various JVM versions and the corresponding options. http://blogs.sun.com/watt/resource/jvm-options-list.html

Friday Feb 15, 2008

Using VirtualBox - Ubuntu 7.04 on openSUSE 10.3

My first shot at OS virtualization was almost a year back when I dabbled with VMWare to run Solaris on my Windows XP. When I read about Sun's acquisition of innotek - makers of VirtualBox, I decided to check it out. So I downloaded the latest RPM of VirtualBox for openSUSE 10.3 and installed it on my system. The installation was very simple and within minutes I was able to install Ubuntu 7.04 as a guest OS on my openSUSE.

Click below to learn more.

[Read More]

Tuesday Feb 12, 2008

NetBeans 6 and Java 6 on openSUSE 10.3

I've been struggling to install NetBeans 6 on my openSUSE 10.3. The installer would startup alright but would crash soon after displaying the bug-buddy dialog. After few attempts, I ran the installer using Java 5. This time the installer gave the following error:

       java: xcb_xlib.c:52: xcb_xlib_unlock: Assertion `c->xlib.lock' failed. 
      

After googling the above I found the following bug - http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373. I also found the workaround on the same page i.e. set the following environment variable:

        export LIBXCB_ALLOW_SLOPPY_LOCK=1
      

After implementing the workaround, I was able to install NetBeans and run it. However, once I upgraded my JDK to Java 6 update 4, and executed NetBeans, the splash screen would appear for a brief moment and then it would crash displaying the bug-buddy dialog.

        abhi@abhiltlnx(~)# /opt/netbeans/netbeans-6.0/bin/netbeans --jdkhome /opt/java/jdk1.6.0_04
        /usr/share/themes/Chlorophyll/gtk-2.0/gtkrc:47: Clearlooks configuration option "menuitemstyle" is not supported and will be ignored.
        /usr/share/themes/Chlorophyll/gtk-2.0/gtkrc:48: Clearlooks configuration option "listviewitemstyle" is not supported and will be ignored.
        /usr/share/themes/Chlorophyll/gtk-2.0/gtkrc:49: Clearlooks configuration option "progressbarstyle" is not supported and will be ignored.
        /usr/share/themes/Chlorophyll/gtk-2.0/gtkrc:47: Clearlooks configuration option "menuitemstyle" is not supported and will be ignored.
        /usr/share/themes/Chlorophyll/gtk-2.0/gtkrc:48: Clearlooks configuration option "listviewitemstyle" is not supported and will be ignored.
        /usr/share/themes/Chlorophyll/gtk-2.0/gtkrc:49: Clearlooks configuration option "progressbarstyle" is not supported and will be ignored.
        /usr/lib/: No such file or directory.
      

Following is the bug report that got generated.

        System: Linux 2.6.22.5-31-default #1 SMP 2007/09/21 22:29:00 UTC i686
        X Vendor: The X.Org Foundation
        X Vendor Release: 70000001
        Selinux: No
        Accessibility: Disabled
        GTK+ Theme: Chlorophyll
        Icon Theme: Industrial

        Memory status: size: 1003343872 vsize: 1003343872 resident: 48775168 share: 25587712 rss: 74362880 rss_rlim: 900776960
        CPU usage: start_time: 1203194106 rtime: 812 utime: 647 stime: 165 cutime:0 cstime: 2 timeout: 0 it_real_value: 0 frequency: 100

        Backtrace was generated from '/usr/lib/'

        [?1034h(no debugging symbols found)
        Using host libthread_db library "/lib/libthread_db.so.1".
        (no debugging symbols found)
        [Thread debugging using libthread_db enabled]
        [New Thread 0xb7de36c0 (LWP 2395)]
        [New Thread 0xb1b0fb90 (LWP 2510)]
        [New Thread 0xb2ba9b90 (LWP 2499)]
        [New Thread 0xb3656b90 (LWP 2479)]
        [New Thread 0xb3857b90 (LWP 2478)]
        [New Thread 0xb3a58b90 (LWP 2477)]
        [New Thread 0xb3d04b90 (LWP 2476)]
        [New Thread 0xb41fbb90 (LWP 2475)]
        [New Thread 0xb43fcb90 (LWP 2474)]
        [New Thread 0xb45fdb90 (LWP 2473)]
        [New Thread 0xb47feb90 (LWP 2472)]
        [New Thread 0xb49ffb90 (LWP 2405)]
        [New Thread 0xb4e2ab90 (LWP 2404)]
        [New Thread 0xb502bb90 (LWP 2403)]
        [New Thread 0xb50acb90 (LWP 2402)]
        [New Thread 0xb52adb90 (LWP 2401)]
        [New Thread 0xb54f4b90 (LWP 2400)]
        [New Thread 0xb56f5b90 (LWP 2399)]
        [New Thread 0xb5776b90 (LWP 2398)]
        [New Thread 0xb7dbdb90 (LWP 2397)]
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        (no debugging symbols found)
        0xffffe410 in __kernel_vsyscall ()
        #0  0xffffe410 in __kernel_vsyscall ()
        #1  0xb7f2b575 in pthread_join () from /lib/libpthread.so.0
        #2  0x0804dce8 in ContinueInNewThread ()
        #3  0x080497f6 in main ()

        Thread 20 (Thread 0xb7dbdb90 (LWP 2397)):
        #0  0xffffe410 in __kernel_vsyscall ()
        No symbol table info available.
        #1  0xb7f2e566 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
        No symbol table info available.
        #2  0xb7f2ec18 in pthread_cond_wait@GLIBC_2.0 () from /lib/libpthread.so.0
        No symbol table info available.
        #3  0x06310be9 in os::PlatformEvent::park ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #4  0x06370831 in ObjectMonitor::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #5  0x0636e162 in ObjectSynchronizer::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #6  0x0626e6c7 in JVM_MonitorWait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #7  0xb5b25e9d in ?? ()
        No symbol table info available.
        #8  0x080588f4 in ?? ()
        No symbol table info available.
        #9  0xb7dbcabc in ?? ()
        No symbol table info available.
        #10 0x00000000 in ?? ()
        No symbol table info available.

        Thread 19 (Thread 0xb5776b90 (LWP 2398)):
        #0  0xffffe410 in __kernel_vsyscall ()
        No symbol table info available.
        #1  0xb7e8ef3c in sched_yield () from /lib/libc.so.6
        No symbol table info available.
        #2  0x063432c5 in SafepointSynchronize::begin ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #3  0x063caeb3 in VMThread::loop ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #4  0x063caa9f in VMThread::run ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #5  0x06311029 in java_start ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #6  0xb7f2a192 in start_thread () from /lib/libpthread.so.0
        No symbol table info available.
        #7  0xb7ea802e in clone () from /lib/libc.so.6
        No symbol table info available.

        Thread 18 (Thread 0xb56f5b90 (LWP 2399)):
        #0  0xffffe410 in __kernel_vsyscall ()
        No symbol table info available.
        #1  0xb7f2e566 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
        No symbol table info available.
        #2  0xb7f2ec18 in pthread_cond_wait@GLIBC_2.0 () from /lib/libpthread.so.0
        No symbol table info available.
        #3  0x06310be9 in os::PlatformEvent::park ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #4  0x06370831 in ObjectMonitor::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #5  0x0636e162 in ObjectSynchronizer::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #6  0x0626e6c7 in JVM_MonitorWait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #7  0xb5b25e9d in ?? ()
        No symbol table info available.
        #8  0x080808f4 in ?? ()
        No symbol table info available.
        #9  0xb56f4f40 in ?? ()
        No symbol table info available.
        #10 0x00000000 in ?? ()
        No symbol table info available.

        Thread 17 (Thread 0xb54f4b90 (LWP 2400)):
        #0  0xffffe410 in __kernel_vsyscall ()
        No symbol table info available.
        #1  0xb7f2e566 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
        No symbol table info available.
        #2  0xb7f2ec18 in pthread_cond_wait@GLIBC_2.0 () from /lib/libpthread.so.0
        No symbol table info available.
        #3  0x062ff1de in Monitor::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #4  0x063cb525 in VMThread::execute ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #5  0x060dd073 in BiasedLocking::revoke_and_rebias ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #6  0x0636dda5 in ObjectSynchronizer::fast_enter ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #7  0x0620eaee in InterpreterRuntime::monitorenter ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #8  0xb5b2558a in ?? ()
        No symbol table info available.
        #9  0x08081800 in ?? ()
        No symbol table info available.
        #10 0xb54f3bf4 in ?? ()
        No symbol table info available.
        #11 0xb5b2555f in ?? ()
        No symbol table info available.
        #12 0xb4a3348d in ?? ()
        No symbol table info available.
        #13 0x6197c398 in ?? ()
        No symbol table info available.
        #14 0xb54f3bf4 in ?? ()
        No symbol table info available.
        #15 0x9430eac4 in ?? ()
        No symbol table info available.
        #16 0xb54f3c24 in ?? ()
        No symbol table info available.
        #17 0x94c3b4f0 in ?? ()
        No symbol table info available.
        #18 0x00000000 in ?? ()
        No symbol table info available.

        Thread 16 (Thread 0xb52adb90 (LWP 2401)):
        #0  0xffffe410 in __kernel_vsyscall ()
        No symbol table info available.
        #1  0xb7f3049e in sem_wait@GLIBC_2.0 () from /lib/libpthread.so.0
        No symbol table info available.
        #2  0x06311374 in check_pending_signals ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #3  0x0630e65d in os::signal_wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #4  0x0630b6b8 in signal_thread_entry ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #5  0x06391bbd in JavaThread::run ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #6  0x06311029 in java_start ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #7  0xb7f2a192 in start_thread () from /lib/libpthread.so.0
        No symbol table info available.
        #8  0xb7ea802e in clone () from /lib/libc.so.6
        No symbol table info available.

        Thread 15 (Thread 0xb50acb90 (LWP 2402)):
        #0  0xffffe410 in __kernel_vsyscall ()
        No symbol table info available.
        #1  0xb7f2e566 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
        No symbol table info available.
        #2  0xb7f2ec18 in pthread_cond_wait@GLIBC_2.0 () from /lib/libpthread.so.0
        No symbol table info available.
        #3  0x062ff1de in Monitor::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #4  0x0619d0df in CompileQueue::get ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #5  0x0619e844 in CompileBroker::compiler_thread_loop ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #6  0x06391bbd in JavaThread::run ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #7  0x06311029 in java_start ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #8  0xb7f2a192 in start_thread () from /lib/libpthread.so.0
        No symbol table info available.
        #9  0xb7ea802e in clone () from /lib/libc.so.6
        No symbol table info available.

        Thread 14 (Thread 0xb502bb90 (LWP 2403)):
        #0  0xffffe410 in __kernel_vsyscall ()
        No symbol table info available.
        #1  0xb7f2e566 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
        No symbol table info available.
        #2  0xb7f2ec18 in pthread_cond_wait@GLIBC_2.0 () from /lib/libpthread.so.0
        No symbol table info available.
        #3  0x062ff059 in Monitor::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #4  0x062e39c5 in LowMemoryDetector::low_memory_detector_thread_entry ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #5  0x06391bbd in JavaThread::run ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #6  0x06311029 in java_start ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #7  0xb7f2a192 in start_thread () from /lib/libpthread.so.0
        No symbol table info available.
        #8  0xb7ea802e in clone () from /lib/libc.so.6
        No symbol table info available.

        Thread 13 (Thread 0xb4e2ab90 (LWP 2404)):
        #0  0xffffe410 in __kernel_vsyscall ()
        No symbol table info available.
        #1  0xb7f2e7ec in pthread_cond_timedwait@@GLIBC_2.3.2 ()
           from /lib/libpthread.so.0
        No symbol table info available.
        #2  0xb7f2ec8f in pthread_cond_timedwait@GLIBC_2.0 () from /lib/libpthread.so.0
        No symbol table info available.
        #3  0x0630f161 in os::sleep ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #4  0x06390f0a in WatcherThread::run ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #5  0x06311029 in java_start ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #6  0xb7f2a192 in start_thread () from /lib/libpthread.so.0
        No symbol table info available.
        #7  0xb7ea802e in clone () from /lib/libc.so.6
        No symbol table info available.

        Thread 12 (Thread 0xb49ffb90 (LWP 2405)):
        #0  0xffffe410 in __kernel_vsyscall ()
        No symbol table info available.
        #1  0xb7f2e566 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
        No symbol table info available.
        #2  0xb7f2ec18 in pthread_cond_wait@GLIBC_2.0 () from /lib/libpthread.so.0
        No symbol table info available.
        #3  0x06310be9 in os::PlatformEvent::park ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #4  0x06370831 in ObjectMonitor::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #5  0x0636e162 in ObjectSynchronizer::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #6  0x0626e6c7 in JVM_MonitorWait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #7  0xb5b25e9d in ?? ()
        No symbol table info available.
        #8  0xb4a110f4 in ?? ()
        No symbol table info available.
        #9  0xb49fedf8 in ?? ()
        No symbol table info available.
        #10 0x00000000 in ?? ()
        No symbol table info available.

        Thread 11 (Thread 0xb47feb90 (LWP 2472)):
        #0  0xffffe410 in __kernel_vsyscall ()
        No symbol table info available.
        #1  0xb7f31248 in accept () from /lib/libpthread.so.0
        No symbol table info available.
        #2  0xb4b70357 in NET_Accept ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/libnet.so
        No symbol table info available.
        #3  0xb4b6ba59 in Java_java_net_PlainSocketImpl_socketAccept ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/libnet.so
        No symbol table info available.
        #4  0xb5b25e9d in ?? ()
        No symbol table info available.
        #5  0xb4a2ecf4 in ?? ()
        No symbol table info available.
        #6  0xb47fde50 in ?? ()
        No symbol table info available.
        #7  0xb47fde4c in ?? ()
        No symbol table info available.
        #8  0xb5b1e508 in ?? ()
        No symbol table info available.
        #9  0xb4a2ec00 in ?? ()
        No symbol table info available.
        #10 0x615daf98 in ?? ()
        No symbol table info available.
        #11 0x00000001 in ?? ()
        No symbol table info available.
        #12 0xb47fde1c in ?? ()
        No symbol table info available.
        #13 0x942d787c in ?? ()
        No symbol table info available.
        #14 0xb47fde50 in ?? ()
        No symbol table info available.
        #15 0x94bed608 in ?? ()
        No symbol table info available.
        #16 0x00000000 in ?? ()
        No symbol table info available.

        Thread 10 (Thread 0xb45fdb90 (LWP 2473)):
        #0  0xffffe410 in __kernel_vsyscall ()
        No symbol table info available.
        #1  0xb7f30c1e in __lll_mutex_lock_wait () from /lib/libpthread.so.0
        No symbol table info available.
        #2  0xb7f2ca58 in _L_mutex_lock_86 () from /lib/libpthread.so.0
        No symbol table info available.
        #3  0xb7f2c47d in pthread_mutex_lock () from /lib/libpthread.so.0
        No symbol table info available.
        #4  0x062fd844 in Mutex::lock_without_safepoint_check ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #5  0x06343727 in SafepointSynchronize::block ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #6  0x063707d9 in ObjectMonitor::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #7  0x0636e162 in ObjectSynchronizer::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #8  0x0626e6c7 in JVM_MonitorWait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #9  0xb5b25e9d in ?? ()
        No symbol table info available.
        #10 0xb4a2fcf4 in ?? ()
        No symbol table info available.
        #11 0xb45fcf0c in ?? ()
        No symbol table info available.
        #12 0x000007d0 in ?? ()
        No symbol table info available.
        #13 0x00000000 in ?? ()
        No symbol table info available.

        Thread 9 (Thread 0xb43fcb90 (LWP 2474)):
        #0  0xffffe410 in __kernel_vsyscall ()
        No symbol table info available.
        #1  0xb7f3205b in waitpid () from /lib/libpthread.so.0
        No symbol table info available.
        #2  0xb2494d07 in g_spawn_sync () from /usr/lib/libglib-2.0.so.0
        No symbol table info available.
        #3  0xb249503c in g_spawn_command_line_sync () from /usr/lib/libglib-2.0.so.0
        No symbol table info available.
        #4  0xb299d700 in ?? () from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
        No symbol table info available.
        #5  0xb299dbf2 in ?? () from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
        No symbol table info available.
        #6  0xb299de43 in google_breakpad::ExceptionHandler::InternalWriteMinidump ()
           from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
        No symbol table info available.
        #7  0xb299e42e in google_breakpad::ExceptionHandler::HandleException ()
           from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
        No symbol table info available.
        #8  
        No symbol table info available.
        #9  0xb5bf2bba in ?? ()
        No symbol table info available.
        #10 0xb5bbc528 in ?? ()
        No symbol table info available.
        #11 0x64631518 in ?? ()
        No symbol table info available.
        #12 0x63cb91d8 in ?? ()
        No symbol table info available.
        #13 0x00000022 in ?? ()
        No symbol table info available.
        #14 0xb5c14b04 in ?? ()
        No symbol table info available.
        #15 0xb43faaa0 in ?? ()
        No symbol table info available.
        #16 0x949e7240 in ?? ()
        No symbol table info available.
        #17 0xb43faac8 in ?? ()
        No symbol table info available.
        #18 0xb5c14fa2 in ?? ()
        No symbol table info available.
        #19 0x64629210 in ?? ()
        No symbol table info available.
        #20 0xb43faaa4 in ?? ()
        No symbol table info available.
        #21 0x614cc5a8 in ?? ()
        No symbol table info available.
        #22 0x64631518 in ?? ()
        No symbol table info available.
        #23 0x614cc500 in ?? ()
        No symbol table info available.
        #24 0x00354ea2 in ?? ()
        No symbol table info available.
        #25 0x00000022 in ?? ()
        No symbol table info available.
        #26 0x00000000 in ?? ()
        No symbol table info available.

        Thread 8 (Thread 0xb41fbb90 (LWP 2475)):
        #0  0xffffe410 in __kernel_vsyscall ()
        No symbol table info available.
        #1  0xb7f2e566 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
        No symbol table info available.
        #2  0xb7f2ec18 in pthread_cond_wait@GLIBC_2.0 () from /lib/libpthread.so.0
        No symbol table info available.
        #3  0x06310be9 in os::PlatformEvent::park ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #4  0x06370831 in ObjectMonitor::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #5  0x0636e162 in ObjectSynchronizer::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #6  0x0626e6c7 in JVM_MonitorWait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #7  0xb5b25e9d in ?? ()
        No symbol table info available.
        #8  0xb4a334f4 in ?? ()
        No symbol table info available.
        #9  0xb41fa520 in ?? ()
        No symbol table info available.
        #10 0x00000000 in ?? ()
        No symbol table info available.

        Thread 7 (Thread 0xb3d04b90 (LWP 2476)):
        #0  0xffffe410 in __kernel_vsyscall ()
        No symbol table info available.
        #1  0xb7f2e566 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
        No symbol table info available.
        #2  0xb7f2ec18 in pthread_cond_wait@GLIBC_2.0 () from /lib/libpthread.so.0
        No symbol table info available.
        #3  0x06310be9 in os::PlatformEvent::park ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #4  0x06370831 in ObjectMonitor::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #5  0x0636e162 in ObjectSynchronizer::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #6  0x0626e6c7 in JVM_MonitorWait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #7  0xb5b25e9d in ?? ()
        No symbol table info available.
        #8  0x082a68f4 in ?? ()
        No symbol table info available.
        #9  0xb3d03c5c in ?? ()
        No symbol table info available.
        #10 0x00000000 in ?? ()
        No symbol table info available.

        Thread 6 (Thread 0xb3a58b90 (LWP 2477)):
        #0  0xffffe410 in __kernel_vsyscall ()
        No symbol table info available.
        #1  0xb7f30c1e in __lll_mutex_lock_wait () from /lib/libpthread.so.0
        No symbol table info available.
        #2  0xb7f2ca58 in _L_mutex_lock_86 () from /lib/libpthread.so.0
        No symbol table info available.
        #3  0xb7f2c47d in pthread_mutex_lock () from /lib/libpthread.so.0
        No symbol table info available.
        #4  0x062fd844 in Mutex::lock_without_safepoint_check ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #5  0x06343727 in SafepointSynchronize::block ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #6  0x06393434 in JavaThread::check_safepoint_and_suspend_for_native_trans ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #7  0x06237041 in jni_CallStaticVoidMethod ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #8  0xb3eec652 in performPoll ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/xawt/libmawt.so
        No symbol table info available.
        #9  0xb3eec433 in waitForEvents ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/xawt/libmawt.so
        No symbol table info available.
        #10 0xb5b25e9d in ?? ()
        No symbol table info available.
        #11 0x0833acf4 in ?? ()
        No symbol table info available.
        #12 0xffffffff in ?? ()
        No symbol table info available.
        #13 0xffffffff in ?? ()
        No symbol table info available.
        #14 0xffffffff in ?? ()
        No symbol table info available.
        #15 0x00000000 in ?? ()
        No symbol table info available.

        Thread 5 (Thread 0xb3857b90 (LWP 2478)):
        #0  0xffffe410 in __kernel_vsyscall ()
        No symbol table info available.
        #1  0xb7f2e566 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
        No symbol table info available.
        #2  0xb7f2ec18 in pthread_cond_wait@GLIBC_2.0 () from /lib/libpthread.so.0
        No symbol table info available.
        #3  0x06310be9 in os::PlatformEvent::park ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #4  0x06370831 in ObjectMonitor::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #5  0x0636e162 in ObjectSynchronizer::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #6  0x0626e6c7 in JVM_MonitorWait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #7  0xb5b25e9d in ?? ()
        No symbol table info available.
        #8  0x0833bcf4 in ?? ()
        No symbol table info available.
        #9  0xb3856d8c in ?? ()
        No symbol table info available.
        #10 0x00000000 in ?? ()
        No symbol table info available.

        Thread 4 (Thread 0xb3656b90 (LWP 2479)):
        #0  0xffffe410 in __kernel_vsyscall ()
        No symbol table info available.
        #1  0xb7f2e566 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
        No symbol table info available.
        #2  0xb7f2ec18 in pthread_cond_wait@GLIBC_2.0 () from /lib/libpthread.so.0
        No symbol table info available.
        #3  0x06310be9 in os::PlatformEvent::park ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #4  0x06370831 in ObjectMonitor::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #5  0x0636e162 in ObjectSynchronizer::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #6  0x0626e6c7 in JVM_MonitorWait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #7  0xb5b25e9d in ?? ()
        No symbol table info available.
        #8  0x0833ccf4 in ?? ()
        No symbol table info available.
        #9  0xb3655cfc in ?? ()
        No symbol table info available.
        #10 0x00000000 in ?? ()
        No symbol table info available.

        Thread 3 (Thread 0xb2ba9b90 (LWP 2499)):
        #0  0xffffe410 in __kernel_vsyscall ()
        No symbol table info available.
        #1  0xb7f2e7ec in pthread_cond_timedwait@@GLIBC_2.3.2 ()
           from /lib/libpthread.so.0
        No symbol table info available.
        #2  0xb7f2ec8f in pthread_cond_timedwait@GLIBC_2.0 () from /lib/libpthread.so.0
        No symbol table info available.
        #3  0x06310d1e in os::PlatformEvent::park ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #4  0x063704ff in ObjectMonitor::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #5  0x0636e162 in ObjectSynchronizer::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #6  0x0626e6c7 in JVM_MonitorWait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #7  0xb5b25e9d in ?? ()
        No symbol table info available.
        #8  0x085188f4 in ?? ()
        No symbol table info available.
        #9  0xb2ba8ee0 in ?? ()
        No symbol table info available.
        #10 0x0000ea60 in ?? ()
        No symbol table info available.
        #11 0x00000000 in ?? ()
        No symbol table info available.

        Thread 2 (Thread 0xb1b0fb90 (LWP 2510)):
        #0  0xffffe410 in __kernel_vsyscall ()
        No symbol table info available.
        #1  0xb7f2e566 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
        No symbol table info available.
        #2  0xb7f2ec18 in pthread_cond_wait@GLIBC_2.0 () from /lib/libpthread.so.0
        No symbol table info available.
        #3  0x06310be9 in os::PlatformEvent::park ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #4  0x06370831 in ObjectMonitor::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #5  0x0636e162 in ObjectSynchronizer::wait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #6  0x0626e6c7 in JVM_MonitorWait ()
           from /opt/java/jdk1.6.0_04/jre/lib/i386/client/libjvm.so
        No symbol table info available.
        #7  0xb5b25e9d in ?? ()
        No symbol table info available.
        #8  0x08121cf4 in ?? ()
        No symbol table info available.
        #9  0xb1b0ecbc in ?? ()
        No symbol table info available.
        #10 0x00000000 in ?? ()
        No symbol table info available.

        Thread 1 (Thread 0xb7de36c0 (LWP 2395)):
        #0  0xffffe410 in __kernel_vsyscall ()
        No symbol table info available.
        #1  0xb7f2b575 in pthread_join () from /lib/libpthread.so.0
        No symbol table info available.
        #2  0x0804dce8 in ContinueInNewThread ()
        No symbol table info available.
        #3  0x080497f6 in main ()
        No symbol table info available.
        #0  0xffffe410 in __kernel_vsyscall ()
        The program is running.  Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]


        ----------- .xsession-errors (9766 sec old) ---------------------
        ** (gnome-cups-icon:3907): WARNING **: IPP request failed with status 1030
        ** (gnome-cups-icon:3907): WARNING **: IPP request failed with status 1030
        ** (gnome-cups-icon:3907): WARNING **: IPP request failed with status 1030
        ** (gnome-cups-icon:3907): WARNING **: IPP request failed with status 1030
        ** (gnome-cups-icon:3907): WARNING **: IPP request failed with status 1030
        ** (gnome-cups-icon:3907): WARNING **: IPP request failed with status 1030
        ** (gnome-cups-icon:3907): WARNING **: IPP request failed with status 1030
        ...Too much output, ignoring rest...
        --------------------------------------------------        
      

I tried uninstalling/installing Jdk6u4 a number of times - manually, RPMs, YaST etc. to no avail. Since I was unable to understand the bug report, I decided to uninstall bug-buddy in the hope of getting more meaningful information on the terminal. The moment I unistalled bug-buddy, I was able to run NetBeans using Java 6.

        root@abhiltlnx(~)#  zypper rm bug-buddy
        * Reading repository 'Main Repository (OSS)' cache
        * Reading repository 'Main Repository (NON-OSS)' cache
        * Reading repository 'openSUSE-10.3-DVD 10.3' cache
        * Reading installed packages [100%]


        The following package is going to be REMOVED:
          bug-buddy 

        After the operation, 2.0 M will be freed.
        Continue? [yes/no]: yes
        * Removing bug-buddy-2.20.0-5 [100%]
        root@abhiltlnx(~)#     
      

As it turned out bug-buddy wasn't much of a buddy in this case.

Saturday Feb 09, 2008

Installing openSolaris (SXDE 1/08) and openSUSE 10.3

After almost a year I decided to upgrade the Operating Systems on my laptop. The plan was to install the latest Solaris build - Solaris Express Developer Edition 1/08 (snv_79) and openSUSE 10.3 along with the pre-installed Windows XP. I managed to get hold of a USB hard disk to take a backup of my data, partitioned/formatted my disk and installed Win XP.

[Read More]

Wednesday Apr 11, 2007

Embedding images in OpenOffice text documents

Whenever I copy and paste some content (text with images) from a web page into a OpenOffice text file (.odt), I notice that the OpenOffice writer application doesn't respond for few seconds. I understand that it takes time to fetch/load/render the images that are part of the copied content in the document and it's the same with other office applications like MS Word.

But what I find really frustrating is that having done so (copy+paste+save), it still tries to access the images online everytime I scroll through the document. As a result of which the OpenOffice writer application becomes slow and does not respond for few seconds. Moreover, the images don't get displayed and I get a "Read-Error", if I open the document when I'm not connected to the Internet.

The problem in the above case is that OpenOffice stores only the "link" to the online image and not the image itself. So everytime you open the document, the text content gets loaded and the application tries to access the image resource online.

(Select an image, right-click and select Picture to see the link details.)

Now, this is bound to put off any avid MS Word user as the behaviour they are used to is that images get embedded as part of the document itself.

Well after hours of tweaking here and there, I found out that OpenOffice actually allows both linking as well as embedding images in a text document, the former being the default behaviour. So, if you have a document that works with images as links to online resources and you would like to embed them instead, just do the following:

(Go to the menubar and select Edit -> Links)
The "Edit Links" Dialog gets displayed that shows all the links (mostly images/graphics) in the current document.

Now select the links to the images you want to embed and click the "Break Link" button.

To check if the images are embedded parts of the document and not links.
(Select an image, right-click and select Picture)

Saturday Mar 24, 2007

FAT32 filenames in Linux

I have a multi-boot machine with Solaris, Linux & Windows installed. So my hard disk currently has all different sorts of filesystems.


      root@lnx(~)# fdisk -l
      
      Disk /dev/sda: 80.0 GB, 80026361856 bytes
      255 heads, 63 sectors/track, 9729 cylinders
      Units = cylinders of 16065 * 512 = 8225280 bytes
      
      Device Boot      Start         End      Blocks   Id  System
      /dev/sda1               1        1912    15358108+   7  HPFS/NTFS
      /dev/sda2            4086        8682    36925402+   f  W95 Ext'd (LBA)
      /dev/sda3            1913        4080    17414460   bf  Solaris
      /dev/sda4   *        8683        9729     8410027+  83  Linux
      /dev/sda5            4086        6635    20482843+   b  W95 FAT32
      /dev/sda6            6636        8420    14337981    b  W95 FAT32
      /dev/sda7            8421        8682     2104483+  82  Linux swap / Solaris        
      

When using Linux, I've been struggling to work with any NetBeans web application projects that were stored in my FAT32 partitions. Upon opening a web project, NetBeans would complain that WEB-INF folder is missing.

After a quick ls -l, I noticed that the WEB-INF folder appears as web-inf i.e. in lowercase. Well the reason behind this anomaly was the way the Windows FAT32 partitons were mounted on my system.

        root@lnx(~)# vi /etc/fstab 
        . . .
        /dev/sda5            /mnt/win_d/          vfat       users,gid=users,umask=0002,utf8=true 0 0
        /dev/sda6            /mnt/win_e/          vfat       users,gid=users,umask=0002,utf8=true 0 0
        . . .        
      

So I remounted the FAT32 partitions with the option shortname=mixed and everything became fine.

        root@lnx(~)# umount /mnt/win_d/
        root@lnx(~)# umount /mnt/win_e/
        root@lnx(~)# vi /etc/fstab 
        . . .
        /dev/sda5            /mnt/win_d/          vfat       users,gid=users,umask=0002,utf8=true,shortname=mixed 0 0
        /dev/sda6            /mnt/win_e/          vfat       users,gid=users,umask=0002,utf8=true,shortname=mixed 0 0
        . . .
        root@lnx(~)# mount -a
      
The WEB-INF folder now appears as it is (i.e. in uppercase). The default behaviour of a FAT32 mount uses shortname=lower, so any file/folder with a shortname i.e. less than 8 chars (excluding file extension) would appear in lowercase.

Saturday Mar 17, 2007

gnomesu dialog problem

For the last few days, I have been unable to invoke yast by clicking on the launcher icon . I soon realised that it held true for every applet that required root access for execution. Earlier, when I used to click on these launchers, the username/password window/dialog box would appear and if the user entered the correct password, the applet window ( yast2 in this case) would appear.

I've been too occupied with work offlate to look into this aberration. I stopped using the launchers and would directly invoke the applet from the terminal:

root@lnx:~ # yast2 &

Today I decided to look into the matter and found out that the cause of the problem was the username/password window/dialog box applet. I did some search online to find out its package name. The dialog applet is gnomesu and is part of the libgnomesu package. I tried invoking gnomesu from the terminal but got the following output:

root@lnx:~ # gnomesu

** (gnomesu:6922): CRITICAL **: No services for libgnomesu are available.

I decided to re-install/update libgnomesu to see if the problem still persists. I invoked yast2 from the command line and updated libgnomesu. Once installed, gnomesu worked fine. Now I'm able to invoke application requiring root access by clicking on the launcher icons.

Sunday Mar 04, 2007

Swing problem on Xgl and openSUSE/Linux

I installed NetBeans 5.5 on openSUSE 10.2 and found out that Swing applications are not rendered properly. The installer dialog itself appeared like an icon and I had to resize it. The IDE itself was either appearing as an icon or it would scale past the screen size. The "New Project" dialog (or any window/dialog for that matter) also displayed the same behaviour and were not appearing in the centre of the IDE. I created a simple swing GUI application and realized that the JOptionPane message dialog was also not appearing in the center. I checked if I was using a very old JDK and found that my default JDK was - Java 6 build 105.

Many hours later (sigh) I found out that Swing applications have rendering issues with Xgl.

Bug ID - 6429775: Xgl/Compiz/Java 1.5/Swing problem
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6429775

Everything worked fine once I disabled XGL. But having got used to the cool way of working using Xgl I just couldn't keep it disabled for long. Fortunately, this bug seems to have been fixed in Java 6 update 1. So I downloaded it and everything worked like a charm.

Thursday Mar 01, 2007

openSUSE 10.2 and Xgl

Last week I installed openSUSE 10.2 on my laptop and I'm very impressed with this linux distro. I have been planning to install linux on my laptop (along with Windows and Solaris) so that I could check the user experience of a Swing application project that I've been involved with.

I have been using Red Hat/Fedora for few years now but the recent buzz around other linux distros viz. Ubuntu, openSUSE, Mandriva etc. piqued my interest to try them out. The difficult part in a linux installation is deciding which linux to install. I discussed with few friends of mine - each one recommending the one they use. I did some reading on the web.. distrowatch is a very good resource. Finally I zeroed on openSUSE 10.2 .

The installation was very smooth.. a bit time consuming though. I really liked the admin/setup tool - yast (Yet Another Setup Tool).

openSUSE provides most of the applications one needs out of the box.

  • OpenOffice for office applications
  • Firefox as browser
  • Evolution as email client (which I replaced with Mozilla Thunderbird)
  • Gimp for graphics
  • Real Player and Totem for playing movies. I prefer VLC media player, so I installed it later.
  • Helix Banshee for playing MP3s and syncing with IPod. It's an excellent player although I'm struggling with the iPod syncing part due to the iPod Raid bug. Will look for the openSUSE fix later.

Configured Compiz/Xgl for the jazzy stuff :)

openSUSE has a very active community presence and have good documentation online viz. articles, blogs etc. Getting XGL to run required installing NVIDIA drivers and some tweaks here and there. I found the following resources very useful:

Using Xgl on SUSE Linux - http://en.opensuse.org/Using_Xgl_on_SUSE_Linux
Xgl Troubleshooting - http://en.opensuse.org/Xgl_Troubleshooting
Linux Display Driver - x86 - http://www.nvidia.com/object/linux_display_ia32_1.0-9755.html
Nvidia Installer HOWTO for SUSE LINUX users - http://www.suse.de/~sndirsch/nvidia-installer-HOWTO.html

Tuesday Aug 29, 2006

Minority Report UI - The Java way...

Well if you liked the cool UI in the movie "The Minority Report", you got to see this demo https://lg3d-core.dev.java.net/files/documents/1834/33274/gomonkey-divx-small.avi

Project Looking Glass is one cool Java application!

[Read More]


Archives
Feeds
Links
Blogs
Technorati
Referrers
Locations of visitors to this page




Valid HTML! Valid CSS!

Disclaimer: This is a personal weblog, I do not speak for my employer, Sun Microsystems.