|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
Java SE and Netbeans on OpenBSD?
OK, I know that this is a sort of thing I could have Googled, but I really want to double check this with knowledgeable people. Answers seem reasonably sparse and varying on Google.
I wasn't sure whether to place this in the Programming or OpenBSD section, so sorry if it's in the wrong place... I want to install all the Java SE development tools, including the compiler, JAR archiver, APIs, etc, etc. I also want to get the Netbeans IDE, because developing Java apps on the CLI was complete FUD last time I tried. I spotted both the Java compiler and Netbeans on the i386 4.4 package collection. I couldn't see Java SE though. If I were to install Netbeans, would OpenBSD install the rest of Java SE as a dependency, or will I have to get it manually? If I were to get it manually, which package would contain the APIs, Compilers, JAR archivers etc all as one? Any help would be awesome... Thanks EDIT - I spotted JDK there. But isn't that older than Java SE, or are they just using the old name? |
|
|||
Quote:
Quote:
http://openbsd.org/faq/faq8.html#Programming If you are interested, here is how this can be determined:
|
|
|||
JDK is AFAIK a generic name for Sun's Java Development kits. The latest one might be based on Java SE.
|
|
|||
I saw 1.7... wouldn't Netbeans work work this? I'll use Java without an IDE if I must, but because Java is such a messy language at times, an IDE is useful, to deal with all the little bits and bobs (Unfortunate, but true).
If I got 1.7 off the package system, then separately installed Netbeans, is it a possibility it would detect Java SE 1.7, and work with it, yet not require 1.5, because I installed them independently? If not, could I update to a bleeding edge version of Netbeans that might support 1.7? OK, another question, is there another IDE that supports 1.7 on OpenBSD, and can be installed as a package? I looked at Eclipse, but it didn't say what version of Java SE is required. I must admit, because OpenBSD's package system is so flawless and has had everything I wanted, I haven't actually built anything for a while. I'll take a look at miscATopenbsd, thanks for the advice. If it really becomes difficult to get an IDE running, I'll write a script that automates the Java CLI development process. |
|
|||
I don't use NetBeans, but I would assume yes. I highly doubt that NetBeans is rewritten with the release of each version of the JDK, & it would not surprise me that portions exist which rely on older editions of the JDK. In fact, if you were to build JDK 1.7, it requires JDK 1.5 as a dependency. The point here is that Sun imports legacy code in all JDK's. It is only due to licensing issues that 1.7 is available as a standalone package.
From a software development standpoint, it doesn't make sense to continually rewrite everything from scratch. Quote:
Quote:
Quote:
Code:
This port requires package(s) "hicolor-icon-theme-0.10p4 javaPathHelper-0.3 jpeg-6bp4 tiff-3.8.2p3 glitz-0.5.6p1 jasper-1.900.1p0 libiconv-1.13 openmotif-2.3.0p0 jdk-1.5.0.16p0 gettext-0.17p0 sqlite3-3.6.13p0 pcre-7.9 glib2-2.18.4p3 atk-1.24.0 desktop-file-utils-0.15 png-1.2.35 cairo-1.8.6p1 pango-1.22.4p0 gtk+2-2.14.7p0 swt-3.2.2p1 nspr-4.7.3p0 nss-3.12p0 xulrunner-1.8.1.19p1 swt-browser-3.2.2p0" to run. It is unfortunate that licensing issues have added a cumbersome element to installing & configuring Java on OpenBSD, but that is the way that it is. In the future, this will become less of an issue -- assuming that the licensing stays as it is now. Last edited by ocicat; 17th May 2009 at 08:24 PM. |
|
|||
Thanks a lot for the help. Sorry if the questions seemed a bit dumb or repeated :P
So, is the build process for Java SE reasonably simple? It seems pretty hit and miss to me when I have used it before... I have built somethings using make, and it's worked, but other times it's failed, and it's took ages to fix. Probably inexperience on my behalf. As I said below, my building experience in OpenBSD is limited, because unlike the Linuxes (What I used before), the package system actually works.. and it works well, so building hasn't been needed. So this is what is says in one of the links you gave me.... Code:
Sun JDK - only 1.7 as a package; for older version see build instructions below. Bear in mind I have no idea how to use the ports system... I only worked the basics of the packaging system. So I'm reading info/man pages about it at the moment, as well as reading the provided links. What is the URL for the ports? Packages have a URL you can go to, but I can't find one for ports. It mentions something called CVS. Is there a FTP-download-off-page system like there is with the packages, or does it use a completely different system? This is the page I go to for my package downloads... I then take the URL for the package I want and give it to pkg_add which deals with it for me. Code:
http://www.openbsd.org/4.4_packages/i386.html Thanks a lot for the help... |
|
||||
You will save yourself time & grief by familiarizing yourself with all of Section 15 of the FAQ upfront:
http://openbsd.org/faq/faq15.html Quote:
# cd /usr/ports/devel/jdk/1.5 # make install ...& if the necessary files aren't found in /usr/ports/distfiles, make will display the same information again. Quote:
If your question is about my earlier statement about JDK 1.7 depending upon JDK 1.5, I was referring to building JDK 1.7. I was attempting to emphasize that newer versions of the JDK still have ties to earlier versions either overtly or in more subtle ways. Quote:
I will also mention that depending upon your system (meaning hardware...), building JDK 1.5 will take nearly a day depending upon what supporting packages have already been installed. Quote:
http://openbsd.org/faq/faq15.html#PortsFetch Since you have OpenBSD 4.4, be sure to download pub/OpenBSD/4.4/ports.tar.gz if you don't have the appropriate tar file via the official CD set or obtained when 4.4 was installed. If you accidentally install a different version of the ports tree, this can lead to subtle & odd build & execution errors. It is highly important to ensure that the ports tree installed matches the version of OpenBSD installed. This is discussed in Section 15.4.1: http://openbsd.org/faq/faq15.html#NoFun If you have further questions, don't hesitate about replying, but study Section 15 first. Good luck. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Netbeans running application problem. | bsdnewbie999 | Programming | 7 | 2nd November 2015 10:44 PM |
Java JDK | Oko | OpenBSD Packages and Ports | 10 | 13th July 2008 07:39 PM |
FBSD & Java | DarkEnergy | FreeBSD General | 2 | 4th July 2008 03:50 AM |
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 |