![]() |
|
FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Hi all
I just still not understand difference between jdk16 and jdk diablo 1.6. And in which case should I use one over another one? And Which one are you prefer? thanks and regards, |
|
|||
![]()
Hello,
I installed eclipse 3.3 but when I launch it, it crashes. I searched a bit and it seems, eclipse doesn't work with the diablo jdk on freebsd 7. The solution is to build a native jdk16, but I couldn't find how to build it. If I go in the /usr/ports/java/jdk16 directory and do a 'make install clean' it always installs the diablo jdk16. $> java -version java version "1.6.0_07" Diablo Java(TM) SE Runtime Environment (build 1.6.0_07-b02) Diablo Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode, sharing) I also tried the linux-sun-jdk which installed without errors, but didn't work at all (I have the linux compatibility enabled). If anyone has a solution, I'd appreciate it. I guess I simply need to add an option, but I'm new to freebsd and so far my search hasn't been successful. |
|
||||
![]()
If you get a crash message on eclipse start up about being unable to find a suitable JVM, set JAVA_HOME or call /usr/local/eclipse/eclipse directly.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
||||
![]()
Interesting advice, Terry... I wish I'd had it before I went off upgrading boatloads of ports (as other resources I found via googling suggested)... in the end, eclipse worked just fine, but it took a lot more effort than just setting an env var...
![]() |
|
||||
![]()
Perhaps post it for the next sap ;-)
I've tested Eclipse on a few systems, but found getting it into a usable *and* updated state to painful to bother with under FreeBSD.
__________________
My Journal Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''. |
|
||||
![]() Quote:
I even hacked the other plugin ports to work with it, since it installs to /usr/local/eclipse-devel (so you must create a symlink to it from /usr/local/eclipse for the other plugin ports to install.) I also got subclipse installed just fine externally, since there isn't even a port for that. |
|
||||
![]()
For others having problems with diablo/JDK, I'll explain.
Building java is a chicken-and-egg problem. The java build process requires java. Although this sounds strange, it is a normal procedure - most C/C++ compilers are written in C/C++. So you need a copy of java installed to build and install java. Here is where it gets tricky. Sun, the company that holds copyrights on the java code, refuses to allow distribution of pre-compiled java binaries that have not been through their rigorous and expensive testing. While this is meant to provide a uniform java experience, it tends to provide for a uniformly annoying java experience. So, I guess it succeeds! It means that you cannot just go and grab the current JDK16 build from your nearest FreeBSD package mirror, because Sun says we cannot provide it for you. Enter the FreeBSD Foundation. They funded the work to produce patchsets to allow java to build on FreeBSD, and funded the testing to get Sun's stamp of approval on the resultant binaries. Those binaries are the diablo ports. If you install diablo, you are getting a copy of the Sun-approved binaries. The downside of this testing process rapidly becomes apparent. See, diablo has bugs, like all software. Normally, we'd just throw a patch in the /files directory of the port, rebuild, and the regular ports building cluster would throw a new fixed binary onto the mirrors. But we cannot do that. In order to distribute the fixed binary, we'd have to get it re-certified by Sun. So the certification procedure just ensures that a broken build (even a very slightly broken build) must remain there, causing problems. So, the procedure is: 1. Get diablo. 2. Use diablo to build jdk16 (after manually fetching the source files, so you can click the "I agree" button. You have to agree to something, I'm not sure what. It's all thoroughly meaningless, but all part of that uniform java experience I talked about.) 3. Uninstall the broken diablo, which we never wanted in the first place. The solution will come when Sun finally releases java under a truly Open Source license. (It will probably be GPLish, which we will have to grin and bear.) Then getting java will be a matter of a simple pkg_add command, like it should have always been. Bitter? Not me.
__________________
The only dumb question is a question not asked. The only dumb answer is an answer not given. |
![]() |
Tags |
diablo, java, jdk |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Striking difference between the Linux community and BSD | windependence | Off-Topic | 79 | 6th December 2010 02:04 AM |
What's the difference between these two memory modules? | Carpetsmoker | General Hardware | 2 | 25th November 2008 03:13 PM |
Diablo 3 | Business_woman | Off-Topic | 29 | 23rd July 2008 04:31 PM |
Difference between chpass and pw | disappearedng | FreeBSD General | 9 | 7th July 2008 11:12 PM |