From owner-freebsd-questions@FreeBSD.ORG Mon May 12 00:43:44 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D369106564A for ; Mon, 12 May 2008 00:43:44 +0000 (UTC) (envelope-from LukeD@pobox.com) Received: from sasl.smtp.pobox.com (a-sasl-fastnet.sasl.smtp.pobox.com [207.106.133.19]) by mx1.freebsd.org (Postfix) with ESMTP id 1FCF98FC14 for ; Mon, 12 May 2008 00:43:43 +0000 (UTC) (envelope-from LukeD@pobox.com) Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id A4EFF4A23; Sun, 11 May 2008 20:43:42 -0400 (EDT) Received: from lukas.is-a-geek.org (pool-71-113-78-181.sttlwa.dsl-w.verizon.net [71.113.78.181]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id C45B94A21; Sun, 11 May 2008 20:43:40 -0400 (EDT) Date: Sun, 11 May 2008 17:43:32 -0700 (PDT) From: Luke Dean X-X-Sender: lukas@border.lukas.is-a-geek.org To: cuongvt In-Reply-To: <17179367.post@talk.nabble.com> Message-ID: <20080511172106.N57861@border.lukas.is-a-geek.org> References: <17179367.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Pobox-Relay-ID: 787B1F5A-1FBC-11DD-AE62-80001473D85F-96347044!a-sasl-fastnet.pobox.com Cc: freebsd-questions@freebsd.org Subject: Re: netbeans 6.0.1 not run X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Luke Dean List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2008 00:43:44 -0000 On Sun, 11 May 2008, cuongvt wrote: > > Hi all! > > full explanation: > FreeBSD 7.0-RELEASE (i386) > uid=1001(mak) gid=0(wheel) groups=0(wheel),69(network) > > installed: > jdk-1.6.0.3p4_1 > diablo-jdk-1.5.0.07.01_10 > javavmwrapper-2.3.2 > > I'm using zsh so I set JAVA_HOME and PATH of java into in my .zshrc. > java -version: > java 16 jdku3p1 etc etc > > Then I insralled netbeans from ports, firstly it warned: > JAVA_HOME should not be defined. > > So i removed JAVA_HOME and PATH of java into in my .zshrc, reboot and > reinstalled netbeans. > Installation went fine. > > When I try run netbeans: > mak@lo0:~>netbeans > XIO: fatal IO error 0 (Unknown error: 0) on X server ":0.0" > after 0 requests (0 known processed) with 0 events remaining. This is exactly the same error message I get whenever I attempt to run any graphical java application on FreeBSD 7 using the diablo port. Between the diablo binaries and my Nvidia drivers, I'm relying on so many different compatibility layers and hacks that it's just too much. Installing jdk-1.6 and forcing my java applications to point to /usr/local/jdk1.6.0 instead of /usr/local/diablo* fixed the problem for me. So, I suspect that netbeans is still looking at the diablo java. Maybe there's a configuration option somewhere? If netbeans copies the java engine or contains its own, then I bet it's using diablo because that's the dependency that the port lists. I've not used netbeans on FreeBSD, so I don't know. > > Any ideas? > P/S:All pkgs were installed via ports* > -- > View this message in context: http://www.nabble.com/netbeans-6.0.1-not-run-tp17179367p17179367.html > Sent from the freebsd-questions mailing list archive at Nabble.com.