101ac FreeBSD Java Support - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > General

General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

Reply
 
Thread Tools Display Modes
  #1  
Old August 4th, 2010, 05:53
gibbs gibbs is offline
Junior Member
 
Join Date: Aug 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default FreeBSD Java Support

hi all,

I'm looking to tinker around with a new OS in my spare time and am still trying to decide between FreeBSD and Linux. I've looked at a few comparisons online but the one posted on the freebsd website is ten years old. Also, many of them seem to go over the head of a standard Windows user. Perhaps someone could point me in the direction of a "general overview" that would be beginner friendly. (I guess we will see how true the "BSD-elitist" claims are by the responses to this post.)

In any case, is there any reason why Java is not officially supported for FreeBSD? I see there is a JRE available for download but it makes no guarantees about it working properly claiming that most "major bugs" have been fixed. As a java developer, this is something that concerns me.

thanks for your time.
Reply With Quote
  #2  
Old August 4th, 2010, 06:21
vermaden's Avatar
vermaden vermaden is offline
Giant Locked
 
Join Date: Nov 2008
Location: pl_PL.lodz
Posts: 2,192
Thanks: 59
Thanked 633 Times in 349 Posts
Default

Quote:
Originally Posted by gibbs View Post
hi all,

I'm looking to tinker around with a new OS in my spare time and am still trying to decide between FreeBSD and Linux. I've looked at a few comparisons online but the one posted on the freebsd website is ten years old. Also, many of them seem to go over the head of a standard Windows user. Perhaps someone could point me in the direction of a "general overview" that would be beginner friendly. (I guess we will see how true the "BSD-elitist" claims are by the responses to this post.)
Start with the Handbook mate: http://freebsd.org/handbook/

Quote:
Originally Posted by gibbs View Post
In any case, is there any reason why Java is not officially supported for FreeBSD? I see there is a JRE available for download but it makes no guarantees about it working properly claiming that most "major bugs" have been fixed. As a java developer, this is something that concerns me.
You can build the Java from Ports, there are several versions available:
Code:
% cat /usr/ports/java/openjdk6/pkg-descr             
OpenJDK is an open-source implementation of the Java Platform, Standard Edition.

The version has all of Sun's bug fixes up to JDK 6 Release 11 and should be
the runtime equivelent to JDK6 Release 11.

Much of the OpenJDK code is licensed under the GPL version 2 with the
Classpath exception. The Java Hotspot virtual machine source code is
licensed under the GPL version 2 only.

OpenJDK 6 should supercede the java/jdk16 port at some point in time.

WWW: http://openjdk.java.net/
Code:
% ls /usr/ports/java | grep jre
diablo-jre15/
diablo-jre16/
linux-sun-jre15/
linux-sun-jre16/

% ls /usr/ports/java | grep jdk
diablo-jdk15/
diablo-jdk16/
jdk13/
jdk13-doc/
jdk14/
jdk14-doc/
jdk15/
jdk15-doc/
jdk16/
jdk16-doc/
linux-blackdown-jdk14/
linux-sun-jdk13/
linux-sun-jdk14/
linux-sun-jdk15/
linux-sun-jdk16/
openjdk6/
openjdk7/
... but I can not tell You how it works, I do not use Java.
__________________
Religions, worst damnation of mankind.
"FreeBSD has always been the operating system that GNU/Linux should have been." Frank Pohlmann, IBM
http://vermaden.blogspot.com
Reply With Quote
  #3  
Old August 4th, 2010, 06:56
gilinko's Avatar
gilinko gilinko is offline
Member
 
Join Date: Nov 2008
Location: SV_se
Posts: 416
Thanks: 1
Thanked 54 Times in 51 Posts
Default

If you haven't used any other OS than Windows, then you are in for quite a steep learning curve with FreeBSD. FreeBSD has no "default GUI", only pure console so if that is going to be a problem I suggest that you start with either PC-BSD which is a FreeBSD derivative(ie based on FreeBSD) or if that's still to technical then I would suggest one of the extremely user friendly Linux distributions like Ubuntu or Fedora.

In general, my suggestion would be to start running the open variants of the software that you currently use in you existing environment. Like Eclipse for java, pidgin for IM, Firefox/Opera for Web, Thunderbird for email, OpenOffice for all that it can do, VLC for media and so on. This will make the change to another OS easier when you have the same applications on both platforms.

Also if you just what to "try it out", I suggest that you download VirtualBox and install anything you want to try first in that virtual environment as it will not compromise you current OS(usually by accident).

In the end, you will come to a point where it's all or nothing and how well you survive that is all down to how much you have prepared.

Last edited by gilinko; August 4th, 2010 at 07:01.
Reply With Quote
  #4  
Old August 4th, 2010, 07:20
SirDice's Avatar
SirDice SirDice is online now
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,703
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

Quote:
Originally Posted by gibbs View Post
In any case, is there any reason why Java is not officially supported for FreeBSD?
Actually, you're wrong about this. Java is officially supported.

http://www.freebsd.org/java/
http://www.freebsdfoundation.org/downloads/java.shtml
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #5  
Old August 4th, 2010, 07:47
olav's Avatar
olav olav is offline
Member
 
Join Date: Apr 2010
Location: Norway, Stavanger
Posts: 344
Thanks: 27
Thanked 23 Times in 22 Posts
Default

Java on FreeBSD isn't working 100% properly. Try a framework like Grails and see all the error messages that occur
Reply With Quote
  #6  
Old August 4th, 2010, 20:24
aragon aragon is offline
Giant Locked
 
Join Date: Nov 2008
Location: Cape Town, South Africa
Posts: 2,031
Thanks: 68
Thanked 253 Times in 203 Posts
Default

Quote:
Originally Posted by olav View Post
Java on FreeBSD isn't working 100% properly. Try a framework like Grails and see all the error messages that occur
Are you sure that's because of java, or because grails expects linuxisms to exist?

Java works fine for me. The only headache with it right now is no NPAPI plugin for firefox 3.6 yet.
Reply With Quote
  #7  
Old August 4th, 2010, 23:44
plamaiziere plamaiziere is offline
Member
 
Join Date: Jan 2009
Location: Rennes, France
Posts: 174
Thanks: 1
Thanked 39 Times in 29 Posts
Default

Quote:
Originally Posted by gibbs View Post
hi all,

In any case, is there any reason why Java is not officially supported for FreeBSD? I see there is a JRE available for download but it makes no guarantees about it working properly claiming that most "major bugs" have been fixed. As a java developer, this is something that concerns me.

thanks for your time.
I'm working on a (small) Java project since 6 months using OpenJDK16, Maven and Netbeans 6.8 for the IDE and as far I can see it works fine. The only problem found is if OpenJDK is built with ipv6, svn support in netbeans does not work anymore. I'm not sure if this is a problem in FreeBSD or Netbeans.

A known problem is that there is not support for profiling with Netbeans in FreeBSD, and there is a warning when you start netbeans.That's all.

Of course this is not enough to say that Java works fine on FreeBSD, but at least it works for me.

If you want to use Eclipse, it does not work well on FreeBSD. I don't know why.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
java.nio problem in freebsd topclimber Installing & Upgrading 3 March 30th, 2010 15:12
Java Plugin FreeBSD 8.0 amd64 shepper Installation and Maintenance of FreeBSD Ports or Packages 4 December 8th, 2009 05:29
[Solved] Problem with a linux program using java (on FreeBSD) cell Installation and Maintenance of FreeBSD Ports or Packages 10 July 25th, 2009 20:12
HOWTO: SAPGUI for Java on FreeBSD elgrande Howtos & FAQs (Moderated) 1 March 13th, 2009 10:31
Unable to locate files for java java/jdk16 adamk Installation and Maintenance of FreeBSD Ports or Packages 8 February 24th, 2009 20:47


All times are GMT +1. The time now is 12:53.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0