|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
Netbeans and jdk1.7.0_03
Hello,
I am an OpenBSD (5.7) newbie, so please be patient! Netbeans needs java jdk1.7.0_03 - Code:
> netbeans Error: JAVA_HOME is not defined correctly: /usr/java/jdk1.7.0_03 Unable to find /usr/java/jdk1.7.0_03/bin/java or it is not executable b) I've tried pkg_add for java, jdk, jdk1.7.0_03 with no packages added Where do I go from here? What should I do to resolve the Error (displayed above)? TIA, Matt Last edited by ocicat; 22nd July 2015 at 02:13 PM. Reason: Please use [code] & [/code] tags when posting command output. |
|
|||
Cynwulf,
Thanks for the quick response. As root I did: pkg_add netbeans (btw, I guess it did netbeans-6.9.1p5) I also did a pkg_delete netbeans and then another pkg_add with the same results. -Matt Last edited by mattthumper; 22nd July 2015 at 01:34 PM. |
|
|||
Run
Code:
$ javaPathHelper -h netbeans |
|
|||
Quote:
Also, the script you run when you type $ netbeans at the command line can be found here: http://cvsweb.openbsd.org/cgi-bin/cv...ype=text/plain |
|
|||
Quote:
Thanks for the response. Here's what I get: Code:
> javaPathHelper -h netbeans Error: JAVA_HOME is not defined correctly: /usr/java/jdk1.7.0_03 Unable to find /usr/java/jdk1.7.0_03/bin/java or it is not executable Last edited by ocicat; 22nd July 2015 at 02:11 PM. Reason: Please use [code] & [/code] tags when posting console output. |
|
|||
Thanks again for the replies.
pkg_info shows a jdk. Just not the one 'needed' by netbeans: Code:
. . . .iso-codes-3.57 lists of the country, language and currency iso names iso8879-1986p0 character entity sets from ISO 8879:1986 (SGML) jasper-1.900.1p2 reference implementation of JPEG-2000 javaPathHelper-0.3p1 helper script for launching java applications jbig2dec-0.11 decoder for JBIG2 monochrome hi-res image compression format jdk-1.7.0.71v0 Java2(TM) SE Dev Kit v1.7.0.71 jpeg-9a IJG's JPEG compression utilities json-c-0.12 JSON implementation in C json-glib-1.0.2 JSON parser for GLib-based libraries and applications kde-dev-scripts-4.14.3 KDE development helper scripts kde-shared-data-4.14.3 common run-time components for KDE3 and KDE4 kde3-locale-3.5.10p0 K Desktop Environment, locale data files kde4-kopete-sounds-4.14.3 notification sounds for Kopete kde4-langlist-4.14.3 list of languages supported by KDE kde4-locale-en_US-4.14.3 KDE en_US locale data kdelibs-3.5.10p34 K Desktop Environment, libraries lame-3.99.5 lame ain't an MP3 encoder lcms-1.18a color management library . . . Code:
# ls -lisa /usr/local/jdk-1.7.0 total 44584 25984 4 drwxr-xr-x 9 root root 512 Jul 21 18:48 . 2 4 drwxr-xr-x 13 root root 512 Jul 22 09:28 .. 26222 4 -r--r--r-- 1 root bin 1503 Mar 6 19:42 ASSEMBLY_EXCEPTION 26224 40 -r--r--r-- 1 root bin 19263 Mar 6 19:42 LICENSE 26226 340 -r--r--r-- 1 root bin 172252 Mar 6 19:42 THIRD_PARTY_README 25985 4 drwxr-xr-x 2 root root 1024 Jul 21 18:48 bin 26025 4 drwxr-xr-x 10 root root 512 Jul 21 18:48 demo 52265 4 drwxr-xr-x 3 root root 512 Jul 21 18:48 include 26118 4 drwxr-xr-x 4 root root 512 Jul 21 18:48 jre 26214 4 drwxr-xr-x 2 root root 512 Jul 21 18:48 lib 51968 4 drwxr-xr-x 4 root root 512 Jul 21 18:50 man 26507 4 -r--r--r-- 1 root bin 74 Mar 6 19:43 release 52011 4 drwxr-xr-x 7 root root 512 Jul 21 18:48 sample 26220 44160 -r--r--r-- 1 root bin 22593504 Mar 6 19:43 src.zip Thanks again. Any other pointers or tips will be appreciated. My head is kinda' sore from banging it against the OpenBSD wall. ; - ) Last edited by ocicat; 22nd July 2015 at 02:22 PM. Reason: Please use [code] & [/code] tags when posting console output. |
|
|||
Does this allow netbeans to launch?
Code:
$ PATH=/usr/local/jdk-1.7.0/bin:$PATH exec /usr/local/netbeans/bin/netbeans --jdkhome /usr/local/jdk-1.7.0 |
|
|||
Quote:
Thanks for all the help everyone. I can add these new things into my notes for future reference - and not have to ask for help for related issues - I hope! I'll set my $PATH and $JAVA_HOME (?) accordingly. |
|
|||
Quote:
Code:
If you want to use this package as your default system python, as root create symbolic links like so (overwriting any previous default): ln -sf /usr/local/bin/python2.7 /usr/local/bin/python ln -sf /usr/local/bin/python2.7-2to3 /usr/local/bin/2to3 ln -sf /usr/local/bin/python2.7-config /usr/local/bin/python-config ln -sf /usr/local/bin/pydoc2.7 /usr/local/bin/pydoc FWIW. |
|
|||
Quote:
The source of that problem though, I have no idea. Could be user error, a bad mirror, or a bad package. I don't have a 5.7-release machine nor the time to figure that out. It would be better if you did the following: Code:
$ cd ~ $ mkdir -p bin $ echo '#!/bin/sh' > bin/netbeans $ echo 'PATH=/usr/local/jdk-1.7.0/bin:$PATH exec /usr/local/netbeans/bin/netbeans --jdkhome /usr/local/jdk-1.7.0' >> bin/netbeans |
Tags |
java, java jdk, netbeans |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Netbeans running application problem. | bsdnewbie999 | Programming | 7 | 2nd November 2015 10:44 PM |
Java SE and Netbeans on OpenBSD? | SunSpyda | OpenBSD Packages and Ports | 7 | 17th May 2009 09:45 PM |
netbeans 6.0.1 not run | cuongvt | FreeBSD General | 5 | 6th June 2008 03:13 PM |
[java] netbeans 6.0.1 and applets not work | Mak-Di | FreeBSD General | 1 | 12th May 2008 06:04 PM |