Re: java jdk14 install - cannot find file

2004-07-30 Thread Matthew Seaman
On Fri, Jul 30, 2004 at 11:00:23AM +0800, Peter Ryan wrote:

 as part of the jdk14 install, i have to
 download the file j2sdk-1_4_2_04-linux-i586.bin
 from the sun web site and put it into the
 /usr/ports/distfiles folder.
 I did that - no problem.
 I can see the file listed in the right place.
 
 When i do the Make, it aborts with an error.
 It cannot find the file I just downloaded.

The distfiles the java/jdk14 port is looking for are:

% make -V DISTFILES
j2sdk-1_4_2-src-scsl.zip j2sdk-1_4_2-bin-scsl.zip bsd-jdk14-patches-6.tar.gz

The first two of those should come from Sun's website, and the third
from the eyesbeyond.com site.

What you've got is the distfile for the java/linux-sun-jdk14 port,
which is required to bootstrap building the native java/jdk14 port.
(You only need the java/linux-sun-jdk14 port the first time you build
java/jdk14: after that you can use it to rebuild itself: just set
NATIVE_BOOTSTRAP=yes in the make(1) argument list)

Actually, you haven't got quite the right distfile even now. It should
be:

% make -V DISTFILES
j2sdk-1_4_2_05-linux-i586.bin

(ie Patch level 05 rather than 04).  Re-cvsup to make sure your ports
tree is up to date, then:

# cd /usr/ports/java/linux-sun-jdk14
# make install

Assuming you'ld already got linux compatability mode enabled -- if you
didn't before, it will be installed as a dependency.  You may well
need to reboot around this point to get that working properly.

# cd ../jdk14
# make install

and follow the instructions it prints out about how to get hold of the
source code.  Once you've got the native JDK installed, you can, if
you wish, delete linux-sun-jdk14, but having it installed does no real
harm other than taking up diskspace.

Yes, it is inordinately complicated to install a native JDK from
source.  Blame Sun -- it's their licensing restrictions that mean this
whole rigmarole is required.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgppmhn3yXoQI.pgp
Description: PGP signature


RE: java jdk14 install - cannot find file

2004-07-30 Thread Peter Ryan
Thanks a lot Mathew,

I have the 3 files you first mentioned,
and, yes, I have the linux compatabilty set.

I will try the cvsup and see if that sorts things out.

I'm glad to hear others find this java installation
far from simple.

Many thanks
Peter

  
  When i do the Make, it aborts with an error.
  It cannot find the file I just downloaded.
 
 The distfiles the java/jdk14 port is looking for are:
 
 % make -V DISTFILES
 j2sdk-1_4_2-src-scsl.zip j2sdk-1_4_2-bin-scsl.zip 
 bsd-jdk14-patches-6.tar.gz
 
 The first two of those should come from Sun's website, and 
 the third from the eyesbeyond.com site.
 
 What you've got is the distfile for the java/linux-sun-jdk14 
 port, which is required to bootstrap building the native 
 java/jdk14 port.
 (You only need the java/linux-sun-jdk14 port the first time you build
 java/jdk14: after that you can use it to rebuild itself: just 
 set NATIVE_BOOTSTRAP=yes in the make(1) argument list)
 
 Actually, you haven't got quite the right distfile even now. It should
 be:
 
 % make -V DISTFILES
 j2sdk-1_4_2_05-linux-i586.bin
 
 (ie Patch level 05 rather than 04).  Re-cvsup to make sure 
 your ports tree is up to date, then:
 
 # cd /usr/ports/java/linux-sun-jdk14
 # make install
 
 Assuming you'ld already got linux compatability mode enabled 
 -- if you didn't before, it will be installed as a 
 dependency.  You may well need to reboot around this point to 
 get that working properly.
 
 # cd ../jdk14
 # make install
 
 and follow the instructions it prints out about how to get 
 hold of the source code.  Once you've got the native JDK 
 installed, you can, if you wish, delete linux-sun-jdk14, but 
 having it installed does no real harm other than taking up diskspace.
 
 Yes, it is inordinately complicated to install a native JDK 
 from source.  Blame Sun -- it's their licensing restrictions 
 that mean this whole rigmarole is required.
 
   Cheers,
 
   Matthew
 
 -- 
 Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
   Savill Way
 PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
 Tel: +44 1628 476614  Bucks., 
 SL7 1TH UK
 


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: java jdk14 install - cannot find file

2004-07-29 Thread Malcolm Kay
On Friday 30 July 2004 12:30, Peter Ryan wrote:
 Hi,

 as part of the jdk14 install, i have to
 download the file j2sdk-1_4_2_04-linux-i586.bin
 from the sun web site and put it into the
 /usr/ports/distfiles folder.
 I did that - no problem.
 I can see the file listed in the right place.

 When i do the Make, it aborts with an error.
 It cannot find the file I just downloaded.

 I highlight and copy the file name in the error
 message.

 Using KDE find files, i paste the filename into
 the search field, and the file is found in the
 distfiles folder !!

 If I do a whereis on the Konsole and it is not
 found. I cd'd to /usr/ports/distfiles and typed
 whereis j2sdk-1_4_2_04-linux-i586.bin
 and i get j2sdk-1_4_2_04-linux-i586.bin: back.
 I assume this means it is not found.


whereis does not find files in the general sense;
just executables in PATH and man pages in manpath
and sources in some ?standard place?.

The j2sdk-1_4_2_04-linux-i586.bin: response is just 
the header declaring what you asked - any results
follow this with complete paths.

The usual command for finding files is 'locate'
but this depends on a data base that is only updated
once a week by default and then only if your machine
in running at the appropriate time.
You could use
  $ find / -name j2sdk-1_4_2_04-linux-i586.bin
but with the search directed to the entire system 
you can expect that this might take almost 
forever. Much quicker would be
  $ find /usr/ports/distfiles -name j2sdk-1_4_2_04-linux-i586.bin

 I looked at the permissions of the file.
 they were rw-r--r--. I changed it to
 rwxr-xr-x. Didnt make any difference.

 The only other thing i noticed was that the
 file is a .bin, and the file type is listed
 as a shell script.

What file type? You mean 
  $ file j2sdk-1_4_2_04-linux-i586.bin
responds with script?
It probably is and should be a Bourne shell script;
take a look inside and make sure it is the required 
file and not just a URL of the true file. This 
sometimes happens.

Failing that check very-very carefully that the file 
name in distfiles is exactly the same as that asked 
for by make. 

Malcolm

 i am really stuck. I am very new to this and
 cant see what is wrong.

 Can anyone help.

 Thanks
 Peter
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: java jdk14 install - cannot find file

2004-07-29 Thread Peter Ryan
Thanks Malcolm,

To make sure my eyes were not
playing tricks, I was careful to 
do the KDE Find Files
using a copypaste of the file
name in the error message - and
it was found exactly where I put it,
ie in /usr/ports/distfiles, which is
where it is supposed to be

The file is about 34MB, so is not
just a header, but anyway, the error
message says ... doesn't seem to exist.

Thanks very much for the advice on 
finding files in the Konsole.

I used the find /usr/ports/distfiles -name
version from the Konsole, and it also found
the file. (I pasted the file name from the
error message to the end of the find 
command - so I dont think there is any spelling
error)

This is baffling.

Thanks again
Peter


--- Malcolm Kay [EMAIL PROTECTED] wrote:

 On Friday 30 July 2004 12:30, Peter Ryan wrote:
  Hi,
 
  as part of the jdk14 install, i have to
  download the file j2sdk-1_4_2_04-linux-i586.bin
  from the sun web site and put it into the
  /usr/ports/distfiles folder.
  I did that - no problem.
  I can see the file listed in the right place.
 
  When i do the Make, it aborts with an error.
  It cannot find the file I just downloaded.
 
  I highlight and copy the file name in the error
  message.
 
  Using KDE find files, i paste the filename into
  the search field, and the file is found in the
  distfiles folder !!
 
  If I do a whereis on the Konsole and it is not
  found. I cd'd to /usr/ports/distfiles and typed
  whereis j2sdk-1_4_2_04-linux-i586.bin
  and i get j2sdk-1_4_2_04-linux-i586.bin: back.
  I assume this means it is not found.
 
 
 whereis does not find files in the general sense;
 just executables in PATH and man pages in manpath
 and sources in some ?standard place?.
 
 The j2sdk-1_4_2_04-linux-i586.bin: response is just 
 the header declaring what you asked - any results
 follow this with complete paths.
 
 The usual command for finding files is 'locate'
 but this depends on a data base that is only updated
 once a week by default and then only if your machine
 in running at the appropriate time.
 You could use
   $ find / -name j2sdk-1_4_2_04-linux-i586.bin
 but with the search directed to the entire system 
 you can expect that this might take almost 
 forever. Much quicker would be
   $ find /usr/ports/distfiles -name j2sdk-1_4_2_04-linux-i586.bin
 
  I looked at the permissions of the file.
  they were rw-r--r--. I changed it to
  rwxr-xr-x. Didnt make any difference.
 
  The only other thing i noticed was that the
  file is a .bin, and the file type is listed
  as a shell script.
 
 What file type? You mean 
   $ file j2sdk-1_4_2_04-linux-i586.bin
 responds with script?
 It probably is and should be a Bourne shell script;
 take a look inside and make sure it is the required 
 file and not just a URL of the true file. This 
 sometimes happens.
 
 Failing that check very-very carefully that the file 
 name in distfiles is exactly the same as that asked 
 for by make. 
 
 Malcolm
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]