Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jul 2005 15:53:58 -0500
From:      "Andrew L. Gould" <algould@datawok.com>
To:        freebsd-questions@freebsd.org
Cc:        Armando Richard <armandrix2000@yahoo.com.br>
Subject:   Re: Sorry... newbie
Message-ID:  <200507191553.58037.algould@datawok.com>
In-Reply-To: <42DD609B.6050508@yahoo.com.br>
References:  <42DD609B.6050508@yahoo.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 19 July 2005 03:20 pm, Armando Richard wrote:
> Hope find at least 1 patient person to answer this...
>
> I'm used to operate well systems in Linux and "R"windows and trying
> from 2 days FreeBSD..
>
> I've very very very novice questions and couldn't find any help in
> literature i've been read (from more than a week). Also this is the
> forum looking more like...
>
> there is anybody who can give some directions??
>
> - for now my main doubt is in java virtual machine:
>
> 	-- sources links that points to nowhere.
> 	-- ports descriptions saying only about what i will get after.
> 	-- messages like that in my terminal:
>
> # cd '/usr/ports/java/jdk13'
> # ls
> Makefile        files           pkg-message     scripts
> distinfo        pkg-descr       pkg-plist
> # make
> printf: missing format character
> ===>  jdk-1.3.1p9_4 is*** Error code 1
>
> Stop in /usr/ports/java/jdk13.
> # pkg_add jdk13
> pkg_add: can't stat package file 'jdk13'
> # pkg_add jdk-1.3
> pkg_add: can't stat package file 'jdk-1.3'
> # pkg_add jdk
> pkg_add: can't stat package file 'jdk'
> #
>
> or
>
> # pkg_add -r jdk
> Error: FTP Unable to get
> ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5.4-release/Lat
>est/jdk.tbz: File unavailable (e.g., file not found, no access)
> pkg_add: unable to fetch
> 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5.4-release/La
>test/jdk.tbz' by URL
> # pkg_add -r jdk13
> Error: FTP Unable to get
> ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5.4-release/Lat
>est/jdk13.tbz: File unavailable (e.g., file not found, no access)
> pkg_add: unable to fetch
> 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5.4-release/La
>test/jdk13.tbz' by URL
> #
>
> 	-- nothing about development kits and thousands of tools, just a
> simple plugin in my browser (mozilla, can be other if it isn't good)
> wich works.
>
> Sorry if i bore you, just loosed.. my last chance is here...
>
> tx

You're confusing the process of installing ports from binary packages 
vs. source code.  pkg_add is used to install binary packages.  Binary 
packages are not available for Java for FreeBSD 5*.  You'll have to 
build java from source code.  Since FreeBSD is not allowed to 
distribute the source code, you'll have to download the source code 
manually into /usr/ports/distfiles/.  Then go back to your ports 
directory and install the port:

     cd /usr/ports/java/jdk13/
     make install

If you haven't downloaded the source code, the installation process will 
stop and tell you where to get the appropriate files.

You can get more information regarding Java on FreeBSD from:
http://www.freebsd.org/java/

Best of luck,

Andrew Gould



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507191553.58037.algould>