*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have been trying for a couple of days to install a java-dk, unfortunatelly without success. Installing sun-jdk from /usr/ports/java required to download j2sdk-source, which required something else to be instaled and so on. Searching the net i found some other instructions for blackdown; "cd /usr/ports/java/linux-blackdown*" and "make install clean". Blackdown was downloaded and installed, however "javac", "java" , etc couldn't be executed. I go in /usr/local/blackdown*/bin where all java* are placed, but nothing can be executed! I downloaded also "j2sdk-1_4_2_06-linux-i586.bin" and installed in .../compat/linux/usr/share, where nothing could be executed either! I I have installed FreeBSD with linux binary compatibility; do i have to enable it or something?
Please help.
1) If you are a java developper, you care about the version of java
* Installing linux jdk to build a native jdk after
Download the jdk from sun
cd /usr/ports/linux-sun-jdk1.4
make install clean
* build the native jdk to get mozilla plugin working
cd /usr/ports/jdk1.4
* add java to the path
setenv PATH ${PATH}:/usr/local/linux-sun-jdk1.4.2/bin
* get the dependencies
make install clean
(it will tell you what you need to download, put it in distfiles)
* again
cd /usr/ports/jdk1.4
make install clean(put java in your path as done above setenv)
2) if you are just a end user
install diablo-jdk from ports or with sysinstall if you find the binary package
As I said above, the problem is that Sun's "off-the-shelf" Java Runtime (JRE) is targeted for Linux, not FreeBSD. MRCheek's suggestion #1 could work; your idea of downloading Blackdown could also work.
But please do yourself a favor, look at http://www.freebsd.org/java/, and decide which (of several) alternative solutions would work best for you.
2) if you are just a end user
install diablo-jdk from ports or with sysinstall if you find the binary package [/B]
I tried to install it, but it requires freebsd 5 or an earlier version. I installed the freebsd 4 compatibility package, but the same problem appeared. In freebsd.org/ports there some required ports, that are for older versions of freebsd 5. Do i have to install them first , as i read somewhere, or will i cause more problems
Java is different to install than Linux, but does work for Linux compatibility or native. Follow what these folks say and do some reading... as I see you didn't do. The Linux Java doesn't go in .../compat/linux/usr/share. Remove it. You should put the Linux Java 'bin' in /usr/ports/distfiles and then do the Linux Java install. Linux Java should end up in /usr/local/linux-sun-jdk1.4.2 and will put a link in /usr/local/bin/
Do this;
# cd /usr/ports/java/linux-sun-jdk14/
# make
Then read what it says.
Because of license issues, the Linux Java is used to build the native Java. After that, you can remove Linux Java.
Linux Java works ok in FreeBSD. You do need native Java for Mozilla though.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.