Open the file to edit now:. Installing Java this way allows you to customize your software build but it takes much longer than installing via packages. The package names correspond with the release of Java that they provide.
For example, to install OpenJDK 7 JDK, openjdk7 , run this command substitute the highlighted port name with the one that you want to install :.
You will see a series of prompts asking for the options and libraries that you wish to build your Java port and its dependencies with. You may accept the defaults or customize it to your needs.
After you answer all of the prompts, the OpenJDK port and its dependencies will be built and installed. Software Engineer DigitalOcean. Where would you like to share this to? Twitter Reddit Hacker News Facebook. Share link Tutorial share link. Sign Up. DigitalOcean home. Community Control Panel.
Hacktoberfest Contribute to Open Source. By Mitchell Anicas Published on January 14, Introduction Java is a popular software platform that allows you to run Java applications and applets.
For example, to install OpenJDK 7 JDK, openjdk , run this command substitute the highlighted package name with the one that you want to install : sudo pkg install openjdk Enter y at the confirmation prompt. This installs OpenJDK and the packages it depends on.
Lastly, you will want to rehash to be sure that you can use your new Java binaries immediately: rehash The OpenJDK package that you selected is now installed and ready to be used! Lastly, you will want to rehash to be sure that you can use your new Java binaries immediately: rehash The OpenJDK port that you selected is now installed and ready to be used! You can find more information on this Wiki.
The best thing you can do is download the latest release, install it, and try all your favorite Java applications. If you find an application that does not work, or crashes, here are the steps you should follow before reporting it:.
Try it on a different platform. If you have access to a reference platform, try it there. Narrow down the problem. If it is your own code, narrow down the bug to the offending code. Otherwise, determine the steps required to reproduce the problem. Notify the JDK porting team. Send email to freebsd-java FreeBSD. Be sure to include the steps you have followed.
0コメント