FreeNAS-8.3.1 Minecraft Server
I just did this yesterday, though there is probably a more correct way.
Code:
##Get into the jail as su
##Install openjdk7
pkg_add -r openjdk7
#Verify it's working
/usr/local/bin/java -version
##Install minecraft server
mkdir /usr/local/minecraft_server
#Pull the server into the folder
#Verify the server can work
/usr/local/bin/java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
*This is mainly from memory and incomplete
I installed bash, tmux and vim usign 'pkg_add -r' command.
I'm running the server in a tmux window and there are alot of other bits that need to be ironed out.
My server is pretty lightly used, but i haven't seen much of an increase resource usage. I'm pretty sure a jail upgrade will kill this setup. Later on i'll use mount points to keep the server from being destroyed by the upgrade.
Also, this probably goes against the idea of pbi installs into the jail, but having the pkg_add opens a world of possibilities for this server. Ths use of pkg_add should be a bit more publicized.