View Single Post
  #8   (View Single Post)  
Old 17th May 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,319
Default

Quote:
Originally Posted by SunSpyda View Post
So, is the build process for Java SE reasonably simple?
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:
It seems pretty hit and miss to me when I have used it before...
Building the JDK's is a bit more involved because certain files need to be manually downloaded due to licensing issues. What these files are, & where they can be obtained can be found in /usr/ports/devel/jdk/1.5/Makefile. Or you can wait until you issue the following:

# 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:
That seems to imply that I only need to build if I want a earlier version.
Again, there is a difference between run-time dependencies & build dependencies. If all you want to do is run JDK 1.7, the package is available. However, many of the collateral Java tools have either run-time or build dependencies on earlier JDK versions.

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:
Bear in mind I have no idea how to use the ports system...
This is why it is imperative for you to study Section 15 of the FAQ. Building ports is not meant for casual users.

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:
What is the URL for the ports?
The ports tree has to be installed first. This is covered in Section 15.3.2:

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.
Reply With Quote