I have tried installing and uninstalling everything i had about java, different JRE's and JDK's.
These are my current settings :

alexandru@alex-desktop:~/Programs/eclipse_Java$ java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
alexandru@alex-desktop:~/Programs/eclipse_Java$ echo $JAVA_HOME
/usr/lib/jvm/java-6-sun-1.6.0.20
alexandru@alex-desktop:~/Programs/eclipse_Java$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-6-sun-1.6.0.20/bin

This is the full error message when launching eclipse:

$ ./eclipse

** (Eclipse:11338): CRITICAL **: menu_proxy_module_load: assertion `dbusproxy != NULL' failed
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00ee4a8e, pid=11338, tid=3077797568
#
# JRE version: 6.0_20-b02
# Java VM: Java HotSpot(TM) Client VM (16.3-b01 mixed mode, sharing linux-x86 )
# Problematic frame:
# C  [libglib-2.0.so.0+0x3ea8e]  g_main_context_prepare+0x16e
#
# An error report file with more information is saved as:
# /home/alexandru/Programs/eclipse_Java/hs_err_pid11338.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted

I'm using Sun's java packages.
Please help! NetBeans seems to work fine but i know it has a different JDK folder. Not the system one.But it's the same version, from Sun.
Btw, NetBeans gives the same error message upon running a project, but doesn't fail

** (<unknown>:11708): CRITICAL **: menu_proxy_module_load: assertion `dbusproxy != NULL' failed

Are you sure you haven't by any chance mixed up the "eclipse" version, like 32 bit Eclipse on a 64bit JVM or vice versa ???
BTW which distro of Linux are you on ?
I've had nightmares trying to get my Eclipse run on Ubuntu 7.10 and 8.04, however since 9.04, there haven't been any hassles.

No, they're all 32 bit... as far as i know. Ubuntu 10.04 here.

Well one thing you can try is if you are using the eclipse version from Ubuntu repos, you could try using the one directly from eclipse.org, also the same suggestion for the JVM, try the self extracting version available from Sun(.bin not the rpm.bin) and see if you can get it to work.

I downloaded the .bin file. Extracted it. Copied the content of the extracted to folder to /../jvm/java-thingy/jre.Then i restarted the computer.
1. The problem persisted.
So i went to the same site and clicked on "verify java version". The browser asked me to install icedtea in order to "display the content of the page correctly".
2. It did find a JVM on my sistem. But now i'm back to OPenJDK 6_18.
3. My problem persists even with the OpenJdK!

I guess that means the problem is somewhere else. Maybe in:

# Problematic frame:
# C  [libglib-2.0.so.0+0x3ea8e]  g_main_context_prepare+0x16e

The file may be corrupter, What do you think? I can't find a package in the repos to reinstall this file.
Perhaps you can give me yours?

PS: my eclipse is downloaded from the official site, not from the repos.
I have a feeling that i'll be reinstalling my OS tonight...

I downloaded the .bin file. Extracted it. Copied the content of the extracted to folder to /../jvm/java-thingy/jre.Then i restarted the computer.

Yikes !!!, you shouldn't have overwritten that folder, a better option is to copy the extracted folder to some place like "/opt/" so that it will not come in the way of packages you install from the repo.

So i went to the same site and clicked on "verify java version". The browser asked me to install icedtea in order to "display the content of the page correctly".

That test just checks if you have the browser Java plug-in working, when you use the self extracting version of the jre, nothing is installed on your system, just some contents extracted, that is why it did not detect any JVM on your system and asked you to install iced-tea.

Well here is how eclipse is working for me:-
I copied the extracted folder of my JDK (jdk1.6.0_16) to /opt/
Added the following lines to my $HOME/.profile file

PATH=/opt/jdk1.6.0_16/bin:$PATH
export PATH

Logout and Login

After Login to check if your JDK/JRE is the one being used, open terminal and type which java , it should point to the one inside /opt/jdk1.6.0_16/bin.
Once you are sure the new JRE is being picked up, then run eclipse and check !!!

The file may be corrupter, What do you think? I can't find a package in the repos to reinstall this file.
Perhaps you can give me yours?

Even if I could get hold of that package on my system it wouldn't be much use, since I am on 64bits here.

Also if you don't mind can you post your hardware specs.

I copied the extracted folder of my JDK (jdk1.6.0_16) to /opt/

JDK? The .bin file gave me a JRE folder. Not jdk. Does JDK contains JRE (and i need to download a JDK) or the other way around? ... i'll get a JDK while you reply.

[EDIT]
Ok, nevermind. I read this at sun's site:
What Java Do I Need? You must have a copy of the JRE (Java Runtime Environment) on your system to run Java applications and applets. To develop Java applications and applets, you need the JDK (Java Development Kit), which includes the JRE.

I did as you said.
"which java" gave me the right JDK.
"java -version" did the same.
I tried running eclipse before and after logout/login.
In 1st case: gave me the same error.
2nd case: it reverted to OpenJDK, leaving me with the same error.

[EDIT]
Ok, now i have uninstalled ANY JDK/JRE from my system via synaptic. Running eclipse said i can't do it without a JDK. Good!
I wrote:

PATH=/opt/jdk1.6.0_20/bin:$PATH
export PATH

Then ran eclipse and i got my initial fatal error!

PS: I'll be installing another OS in the virtualBox so i can get the libglib.2.0 file. Btw, having a 64bit system, doesn't it give you a headache with other programs/installations? Are we out of the times when there was a lack of software support for the 64 bit OSes? :)
My specs: AMD 2.2GHZ, 1GB RAM(667mhz), 120GB HDD, NVIDIA 7xxx, MSI motherboard 1000MHZ

alex-desktop              
    description: Desktop Computer
    product: MS-7310
    vendor: MSI
    version: 10
    serial: To Be Filled By O.E.M.
    width: 32 bits
    capabilities: smbios-2.5 dmi-2.5
    configuration: chassis=desktop
  *-core
       description: Motherboard
       product: MS-7310
       vendor: MSI
       physical id: 0
       version: 10
       serial: To be filled by O.E.M.
       slot: To Be Filled By O.E.M.
     *-firmware
          description: BIOS
          vendor: American Megatrends Inc.
          physical id: 0
          version: V1.7 (05/16/2007)
          size: 64KiB
          capacity: 448KiB
          capabilities: isa pci pnp apm upgrade shadowing escd cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb ls120boot zipboot biosbootspecification
     *-cpu
          description: CPU
          product: AMD Athlon(tm) 64 Processor 3500+
          vendor: Advanced Micro Devices [AMD]
          physical id: 3
          bus info: cpu@0
          version: 15.15.2
          serial: To Be Filled By O.E.M.
          slot: CPU 1
          size: 1GHz
          capacity: 1GHz
          width: 64 bits
          clock: 200MHz
          capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt rdtscp x86-64 3dnowext 3dnow up extd_apicid pni cx16 lahf_lm svm extapic cr8_legacy cpufreq
        *-cache:0
             description: L1 cache
             physical id: 5
             slot: L1-Cache
             size: 128KiB
             capacity: 128KiB
             capabilities: pipeline-burst internal varies data
        *-cache:1
             description: L2 cache
             physical id: 6
             slot: L2-Cache
             size: 512KiB
             capacity: 512KiB
             capabilities: pipeline-burst internal varies unified
     *-memory:0
          description: System Memory
          physical id: 29
          slot: System board or motherboard
          size: 1GiB
        *-bank:0
             description: DIMM DDR2 Synchronous 333 MHz (3.0 ns)
             product: PartNum0
             vendor: Manufacturer0
             physical id: 0
             serial: SerNum0
             slot: DIMM0
             size: 1GiB
             width: 64 bits
             clock: 333MHz (3.0ns)
        *-bank:1
             description: DIMM [empty]
             product: PartNum1
             vendor: Manufacturer1
             physical id: 1
             serial: SerNum1
             slot: DIMM1
     *-memory:1 UNCLAIMED
          description: Memory controller
          product: CK804 Memory Controller
          vendor: nVidia Corporation
          physical id: 4
          bus info: pci@0000:00:00.0
          version: a4
          width: 32 bits
          clock: 66MHz (15.2ns)
          capabilities: ht bus_master cap_list
          configuration: latency=0
     *-isa
          description: ISA bridge
          product: CK804 ISA Bridge
          vendor: nVidia Corporation
          physical id: 1
          bus info: pci@0000:00:01.0
          version: f1
          width: 32 bits
          clock: 66MHz
          capabilities: isa bus_master
          configuration: latency=0
     *-serial
          description: SMBus
          product: CK804 SMBus
          vendor: nVidia Corporation
          physical id: 1.1
          bus info: pci@0000:00:01.1
          version: a2
          width: 32 bits
          clock: 66MHz
          capabilities: pm cap_list
          configuration: driver=nForce2_smbus latency=0 maxlatency=1 mingnt=3
          resources: irq:11 ioport:ec00(size=32) ioport:5000(size=64) ioport:6000(size=64)
     *-usb:0
          description: USB Controller
          product: CK804 USB Controller
          vendor: nVidia Corporation
          physical id: 2
          bus info: pci@0000:00:02.0
          version: a2
          width: 32 bits
          clock: 66MHz
          capabilities: pm bus_master cap_list
          configuration: driver=ohci_hcd latency=0 maxlatency=1 mingnt=3
          resources: irq:20 memory:fbfff000-fbffffff
     *-usb:1
          description: USB Controller
          product: CK804 USB Controller
          vendor: nVidia Corporation
          physical id: 2.1
          bus info: pci@0000:00:02.1
          version: a4
          width: 32 bits
          clock: 66MHz
          capabilities: debug pm bus_master cap_list
          configuration: driver=ehci_hcd latency=0 maxlatency=1 mingnt=3
          resources: irq:21 memory:fbffec00-fbffecff
     *-multimedia
          description: Multimedia audio controller
          product: CK804 AC'97 Audio Controller
          vendor: nVidia Corporation
          physical id: 5
          bus info: pci@0000:00:04.0
          version: a2
          width: 32 bits
          clock: 66MHz
          capabilities: pm bus_master cap_list
          configuration: driver=Intel ICH latency=0 maxlatency=5 mingnt=2
          resources: irq:22 ioport:e400(size=256) ioport:e000(size=256) memory:fbffd000-fbffdfff
     *-ide:0
          description: IDE interface
          product: CK804 IDE
          vendor: nVidia Corporation
          physical id: 6
          bus info: pci@0000:00:06.0
          logical name: scsi0
          version: f3
          width: 32 bits
          clock: 66MHz
          capabilities: ide pm bus_master cap_list emulated
          configuration: driver=pata_amd latency=0 maxlatency=1 mingnt=3
          resources: irq:0 ioport:1f0(size=8) ioport:3f6 ioport:170(size=8) ioport:376 ioport:ffa0(size=16)
        *-cdrom
             description: DVD writer
             product: DVD RW AD-5170A
             vendor: Optiarc
             physical id: 0.0.0
             bus info: scsi@0:0.0.0
             logical name: /dev/cdrom
             logical name: /dev/cdrw
             logical name: /dev/dvd
             logical name: /dev/dvdrw
             logical name: /dev/scd0
             logical name: /dev/sr0
             version: 1.11
             serial: [Optiarc DVD RW AD-5170A 1.11 Jul19,2006
             capabilities: removable audio cd-r cd-rw dvd dvd-r
             configuration: ansiversion=5 status=nodisc
     *-ide:1
          description: IDE interface
          product: CK804 Serial ATA Controller
          vendor: nVidia Corporation
          physical id: 7
          bus info: pci@0000:00:07.0
          logical name: scsi2
          version: f3
          width: 32 bits
          clock: 66MHz
          capabilities: ide pm bus_master cap_list emulated
          configuration: driver=sata_nv latency=0 maxlatency=1 mingnt=3
          resources: irq:23 ioport:dc00(size=8) ioport:d880(size=4) ioport:d800(size=8) ioport:d480(size=4) ioport:d400(size=16) memory:fbffc000-fbffcfff
        *-disk
             description: ATA Disk
             product: ST3120811AS
             vendor: Seagate
             physical id: 0.0.0
             bus info: scsi@2:0.0.0
             logical name: /dev/sda
             version: 3.AA
             serial: 6PT0AHRJ
             size: 111GiB (120GB)
             capabilities: partitioned partitioned:dos
             configuration: ansiversion=5 signature=0b490b48
           *-volume:0
                description: Windows NTFS volume
                physical id: 1
                bus info: scsi@2:0.0.0,1
                logical name: /dev/sda1
                version: 3.1
                serial: 0873-d729
                size: 98MiB
                capacity: 100MiB
                capabilities: primary bootable ntfs initialized
                configuration: clustersize=4096 created=2009-09-01 09:00:05 filesystem=ntfs label=System Reserved state=clean
           *-volume:1
                description: Windows NTFS volume
                physical id: 2
                bus info: scsi@2:0.0.0,2
                logical name: /dev/sda2
                version: 3.1
                serial: a6a51a99-5ce2-a04f-8eef-0d756a07d9c7
                size: 15GiB
                capacity: 15GiB
                capabilities: primary ntfs initialized
                configuration: clustersize=4096 created=2009-08-31 22:34:47 filesystem=ntfs state=clean
           *-volume:2
                description: Windows NTFS volume
                physical id: 3
                bus info: scsi@2:0.0.0,3
                logical name: /dev/sda3
                version: 3.1
                serial: d2d7eb39-9da8-3048-852f-c7ad035ec53c
                size: 19GiB
                capacity: 19GiB
                capabilities: primary ntfs initialized
                configuration: clustersize=4096 created=2009-09-01 09:01:14 filesystem=ntfs state=clean
           *-volume:3
                description: Extended partition
                physical id: 4
                bus info: scsi@2:0.0.0,4
                logical name: /dev/sda4
                size: 77GiB
                capacity: 77GiB
                capabilities: primary extended partitioned partitioned:extended
              *-logicalvolume:0
                   description: Linux filesystem partition
                   physical id: 5
                   logical name: /dev/sda5
                   logical name: /
                   capacity: 9559MiB
                   configuration: mount.fstype=ext4 mount.options=rw,relatime,errors=remount-ro,barrier=1,data=ordered state=mounted
              *-logicalvolume:1
                   description: Linux swap / Solaris partition
                   physical id: 6
                   logical name: /dev/sda6
                   capacity: 1429MiB
                   capabilities: nofs
              *-logicalvolume:2
                   description: Linux filesystem partition
                   physical id: 7
                   logical name: /dev/sda7
                   logical name: /home
                   capacity: 66GiB
                   configuration: mount.fstype=ext4 mount.options=rw,relatime,barrier=1,data=ordered state=mounted
     *-ide:2
          description: IDE interface
          product: CK804 Serial ATA Controller
          vendor: nVidia Corporation
          physical id: 8
          bus info: pci@0000:00:08.0
          version: f3
          width: 32 bits
          clock: 66MHz
          capabilities: ide pm bus_master cap_list
          configuration: driver=sata_nv latency=0 maxlatency=1 mingnt=3
          resources: irq:22 ioport:d080(size=8) ioport:d000(size=4) ioport:cc00(size=8) ioport:c880(size=4) ioport:c800(size=16) memory:fbffb000-fbffbfff
     *-pci:0
          description: PCI bridge
          product: CK804 PCI Bridge
          vendor: nVidia Corporation
          physical id: 9
          bus info: pci@0000:00:09.0
          version: f2
          width: 32 bits
          clock: 66MHz
          capabilities: pci bus_master
     *-bridge
          description: Ethernet interface
          product: CK804 Ethernet Controller
          vendor: nVidia Corporation
          physical id: a
          bus info: pci@0000:00:0a.0
          logical name: eth0
          version: f3
          serial: 00:19:db:b5:c5:73
          size: 100000000
          capacity: 1000000000
          width: 32 bits
          clock: 66MHz
          capabilities: bridge pm bus_master cap_list ethernet physical mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
          configuration: autonegotiation=on broadcast=yes driver=forcedeth driverversion=0.64 duplex=full ip=192.168.1.100 latency=0 link=yes maxlatency=20 mingnt=1 multicast=yes port=MII speed=100MB/s
          resources: irq:23 memory:fbffa000-fbffafff ioport:c480(size=8)
     *-pci:1
          description: PCI bridge
          product: CK804 PCIE Bridge
          vendor: nVidia Corporation
          physical id: b
          bus info: pci@0000:00:0b.0
          version: f3
          width: 32 bits
          clock: 33MHz
          capabilities: pci pm msi ht pciexpress bus_master cap_list
          configuration: driver=pcieport
          resources: irq:24
     *-pci:2
          description: PCI bridge
          product: CK804 PCIE Bridge
          vendor: nVidia Corporation
          physical id: c
          bus info: pci@0000:00:0c.0
          version: f3
          width: 32 bits
          clock: 33MHz
          capabilities: pci pm msi ht pciexpress bus_master cap_list
          configuration: driver=pcieport
          resources: irq:25
     *-pci:3
          description: PCI bridge
          product: CK804 PCIE Bridge
          vendor: nVidia Corporation
          physical id: d
          bus info: pci@0000:00:0d.0
          version: f3
          width: 32 bits
          clock: 33MHz
          capabilities: pci pm msi ht pciexpress bus_master cap_list
          configuration: driver=pcieport
          resources: irq:26
     *-pci:4
          description: PCI bridge
          product: CK804 PCIE Bridge
          vendor: nVidia Corporation
          physical id: e
          bus info: pci@0000:00:0e.0
          version: a3
          width: 32 bits
          clock: 33MHz
          capabilities: pci pm msi ht pciexpress bus_master cap_list
          configuration: driver=pcieport
          resources: irq:27 memory:fc000000-febfffff ioport:d0000000(size=268435456)
        *-display
             description: VGA compatible controller
             product: G72 [GeForce 7300 SE/7200 GS]
             vendor: nVidia Corporation
             physical id: 0
             bus info: pci@0000:05:00.0
             version: a1
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi pciexpress bus_master cap_list rom
             configuration: driver=nvidia latency=0
             resources: irq:19 memory:fd000000-fdffffff memory:d0000000-dfffffff(prefetchable) memory:fc000000-fcffffff memory:febe0000-febfffff(prefetchable)
     *-pci:5
          description: Host bridge
          product: K8 [Athlon64/Opteron] HyperTransport Technology Configuration
          vendor: Advanced Micro Devices [AMD]
          physical id: 100
          bus info: pci@0000:00:18.0
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:6
          description: Host bridge
          product: K8 [Athlon64/Opteron] Address Map
          vendor: Advanced Micro Devices [AMD]
          physical id: 101
          bus info: pci@0000:00:18.1
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:7
          description: Host bridge
          product: K8 [Athlon64/Opteron] DRAM Controller
          vendor: Advanced Micro Devices [AMD]
          physical id: 102
          bus info: pci@0000:00:18.2
          version: 00
          width: 32 bits
          clock: 33MHz
     *-pci:8
          description: Host bridge
          product: K8 [Athlon64/Opteron] Miscellaneous Control
          vendor: Advanced Micro Devices [AMD]
          physical id: 103
          bus info: pci@0000:00:18.3
          version: 00
          width: 32 bits
          clock: 33MHz
          configuration: driver=k8temp
          resources: irq:0
  *-network DISABLED
       description: Ethernet interface
       physical id: 1
       logical name: vboxnet0
       serial: 0a:00:27:00:00:00
       capabilities: ethernet physical
       configuration: broadcast=yes multicast=yes

Hm, it looks like this is a bug rather than a corrupt file issue. (i've reinstalled the liglib file via synaptic and got no good results.)

Here seems to be your problem bro:-

*-cpu
description: CPU
product: AMD Athlon(tm) 64 Processor 3500+
vendor: Advanced Micro Devices [AMD]

You are using a 32bit OS and corresponding libraries on a 64bit hardware. Although I don't *think* it should be a problem, if you are going for a complete reinstall (or just installing in VirtualBox) I suggest going for 64bit Ubuntu and trying it out.

Done a clean install of ubuntu 10.04. Installed the Sun JDK instead of OpenJDK and i'm all good to go. Took a 32 bit system because ubuntu's site recommended such and after some research i came to the conclusion that i would have more advantages this way.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.