Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jan 2010 10:51:36 GMT
From:      Andrew <andrew@flarn.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/142931: java/openjdk6 does not include /usr/local/lib in java.library.path
Message-ID:  <201001181051.o0IApatl025474@www.freebsd.org>
Resent-Message-ID: <201001181100.o0IB0HFP038517@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         142931
>Category:       ports
>Synopsis:       java/openjdk6 does not include /usr/local/lib in java.library.path
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 18 11:00:17 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Andrew
>Release:        8.0-STABLE
>Organization:
>Environment:
FreeBSD XXXXXX 8.0-STABLE FreeBSD 8.0-STABLE #5: Wed Jan  6 11:21:44 UTC 2010     root@XXXXXX:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
When attempting to use eclipse with the subclipse plugin and javahl library I encountered an error "Unable to load default SVN client". This error did not occur using the diablo jdk.

Comparing the installation details, configuration tab I noticed the diablo jdk (java/diablo-jdk16) includes /usr/local/lib in java.library.path, but openjdk6 (ports/openjdk6) does not. This is obviously where the subversion java (java/subversion-java) port installs the javahl libraries.

Adding -Djava.library.path=/usr/local/lib to the vmargs for starting eclipse fixed this issue.
>How-To-Repeat:

>Fix:
I'm afraid I don't have a patch, but it seems ${LOCALBASE}/lib should be in java.library.path by default?

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001181051.o0IApatl025474>