We help IT Professionals succeed at work.

How To Install JDK On FreeBSD 6.1

Ruf asked
Last Modified: 2013-11-22
I've been trying to install JDK on my FreeBSD 6.1 box. When I try building it using /usr/ports/java/jdk15 it requests me to download the files manually. I've done so accordingly and downloaded three files namely

1: jdk-1_5_0-bin-scsl.zip
2: jdk-1_5_0-src-scsl.zip
3: bsd-jdk15-patches-4.tar.bz2

and placed them in /usr/ports/distfiles. After this, I am not sure how to proceed. I tried building Java again using /usr/ports/java/jdk15, but it still throws up error requesting us to place the file "bsd-jdk15-patches-4.tar.bz2" into /usr/ports/distfiles.

Can anyone help in the right approach? I tried various other options like unzipping the files and the patch, but still I couldn't get anywhere.

Thanks in advance

Watch Question

This one is on us!
(Get your first solution completely free - no credit card required)


Very much... 744 is set on all the three files... and I've ensured they are the same files which BSD wanted. In fact there weren't too many choices either on the website from where it was downloaded, especially the BSD patch which was the only download.
The error it throws up is this...

===>  jdk-1.5.0p2_6 :
 Due to licensing restrictions, certain files must be fetched manually.

 Please download the patchset, bsd-jdk15-patches-2.tar.bz2, from

 Please place the downloaded file(s) in /usr/ports/distfiles
 and restart the build.

.*** Error code 1

Stop in /usr/ports/java/jdk15.

Earlier, it mentioned the JDK files too, but that disappeared after placing them into /usr/ports/distfiles. Any thought why its not able to see the patch file...?



Oops! I couldn't be more careless...! The third file (BSD Patch) has a numeric different... The build is asking for patchlevel 2 and I had downloaded the latest patchlevel (4).
I downloaded the correct version and its working fine now... Thanks Terref for suggesting such a thing which made me take another look...



You're welcome :)

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.