Editing
Tutorials/Setting up a server
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Installing Java === Due to performance and crash issue with OpenJDK and ''Minecraft'' server, we will install Oracle JRE made for linux. Before installing this JRE, you have to install the linux binary compatibility on FreeBSD, you can follow this [http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu-lbc-install.html documentation].<br> Jave requires some information about the proc. You have to mount linprocfs, type: <syntaxhighlight lang="sh"> kldload linprocfs mount -t linprocfs linprocfs /compat/linux/proc </syntaxhighlight> and add this line to <code>/etc/fstab</code>: <pre> linprocfs /compat/linux/proc linprocfs rw 0 0 </pre> The Oracle JRE has a dependency marked as forbidden and the installation will fail. Go to <code>/usr/ports/textproc/linux-f10-expat2.0.1/</code> and in the Makefile remove the line which starts with <code>FORBIDDEN=</code>. Next you have to manually get the linux tarball due to licence issue (like `jre-7u65-linux-i586.tar.gz') from java official web site and copy the file to <code>/usr/ports/distfiles</code>. Then to install the JRE, go to <code>/usr/ports/java/linux-sun-jre17/</code> and run <code>make install distclean</code>. ''Note: The previous version of this part, tested on FreeBSD 9.2 amd64, was explained like this: You may have to set JRE_UPDATE_VERSION variable in your Makefile to the actual number (e.g. 45 like in this example) and run 'make install NO_CHECKSUM=1'.'' Try running <code>java -version</code>. You may end up with a message that it cannot find <code>libjli.so</code>. One way to fix it is to add your java paths to the search explicitly. Make a symlink: <syntaxhighlight lang="sh"> ln -s /usr/local/linux-sun-jre1.7.0/lib/i386 /compat/linux/usr/lib/java </syntaxhighlight> And in <code>/compat/linux/etc/ld.so.conf.d/java.conf</code> add: <pre> /usr/lib/java /usr/lib/java/jli </pre> Run <code>/compat/linux/sbin/ldconfig</code>. Now <code>java -version</code> should work.
Summary:
Please note that all contributions to Kiiw may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Kiiw:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information