FreeBSD java installation help!

horst leitenmueller horst.leitenmueller at liwest.at
Fri Jun 21 06:29:54 UTC 2013


Hi,

you can install only the xorg libraries then not all dependencies will be loaded, but you always have to keep care what pkg is installing which dependencies.. ; i'm doing this inside of jails if not fitting i can drop it easily

// install xorg libs
cd /usr/ports/x11/xorg-libraries
make install

and then install the openjdk (i have installed 6) 
i have build it and not install via .tbz

and running java (jboss) headless afterwards -Djava.awt.headless=true as startup param

i have it running on freebsd 8.3

br horst

On Jun 20, 2013, at 9:29 AM, Ronald Klop <ronald-freebsd8 at klop.yi.org> wrote:

> On Wed, 19 Jun 2013 23:02:36 +0200, Heiner Strauß <heiner_ej at yahoo.de> wrote:
> 
>> 
>> Am 19.06.2013 um 21:28 schrieb Kavitha H Yogaraj <ykavitha at uw.edu>:
>> 
>>> Hi there,
>>> 
>>> I'm a newbie to FreeBSD, have no idea how to install java in FreeBSD OS.
>>> In the resources available online, its said that fresh ports need to be
>>> used, some other also say that it didn't worked.
>>> 
>> 
>> Hi,
>> you only need to compile and install the right port. For JDK 6 it is openjdk6, it will work. Please proceed as described in the handbook. Don't use parallel make jobs, it will fail with openjdk.
>> 
>>> Could you please help me out in installing Java -headless (X11) in FreeBsd?
>>> 
>> 
>> Building headless is an art of its own, you have to ask the openjdk people, it is not supported through the FreeBSD port system at the moment, at least not for JDK6. Maybe it is easier to build headless with JDK 7. Please inform us if you find a solution for headless, I'm very interested.
>> Greetings.
> 
> You can always run it as 'java -Dsystem.headless=true' or something like that. (Google remembers this better than I do.)
> But, yes, you will have half X installed as dependecies.
> 
> Ronald.
> _______________________________________________
> freebsd-java at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "freebsd-java-unsubscribe at freebsd.org"



More information about the freebsd-java mailing list