Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Oct 2001 00:42:27 -0600 (MDT)
From:      "Geoffrey T. Falk" <gtf@cirp.org>
To:        freebsd-java@freebsd.org
Subject:   Re: Getting 1.3.1 to compile
Message-ID:  <200110180642.f9I6gSD24636@h24-67-76-240.cg.shawcable.net>
In-Reply-To: <20011018100803.C69143@jonc.itouch>

next in thread | previous in thread | raw e-mail | index | archive | help
--0-846930886-1003387350=:1255
Content-Type: TEXT/plain; CHARSET=US-ASCII

OK, I finally got it to compile. It was relatively a pain.

Here's all of what I had to do. I hope this experience benefits someone
else, because it *won't* work out of the box!:

0) Download the Linux 1.3.0 binaries and install into
/usr/local/linux-jdk1.3.0 as a bootstrap dist.

1) Extract the j2sdk-1_3_1-src.tar.gz that I downloaded from Sun.

2) Track down all the LongLinks and truncated filenames (because Sun
probably used their stupid legacy "tar" utility from Solaris to generate
the tarball, which can't handle long filenames) and restore them to
their proper locations. Attached is a script that will do this for you.

3) Tar up the resulting directory using gtar, and put it in the
distfiles directory, replacing the file "j2sdk-1_3_1-src.tar.gz".
Compute the new md5 hash, and install this hash in the file
/usr/ports/java/jdk13/distinfo so that it won't complain.

4) Update JDK_PATCHSET_VERSION in the Makefile to version 5 (since I
started with patchlevel 4). Put the patch file
(bsd-jdk131-patches-5.tar.gz) into /usr/ports/distfiles, and update the
md5 hash for this file as well.

5) remove the patches under /usr/ports/java/jdk13/files, since these
were relative to patchlevel 4 and had already been incorporated into the
patchlevel 5.

6) Set environment variables according to the instructions in the BUILD
file in the patchlevel 5.

7) setenv JDK13DIR /usr/local/linux-jdk1.3.0
   setenv PORTDIR /usr/ports
   
8) make; make install

After a lot of frustration, I was able to figure out what to do. It
would really help a lot of people if this all was taken care of
automatically...

Regards
Geoffrey



On 18 Oct, Jonathan Chen wrote:
> On Wed, Oct 17, 2001 at 02:48:29PM -0600, Geoffrey T. Falk wrote:
>> Sorry if this is a dumb question, but I was taught in school that there
>> is no such thing as a dumb question ;)
>> 
>> Where can I get a tarball for the jsdk1.3.1 that will actually compile
>> on FreeBSD 4.3?
>> 
>> I tried to build the linux port under /usr/ports/java/jdk13, but found
>> that the linux tarball from Sun had lots of files moved from their
>> original locations (due to path length restrictions?)---Shouldn't the
>> FreeBSD patch script be able to fix this?
> 
> What sort of errors are you getting? The port has been upgraded to
> patchlevel5 recently; which builds fine. Make sure you've got the latest
> version of the port.


--0-846930886-1003387350=:1255
Content-Type: TEXT/plain; CHARSET=US-ASCII
Content-Description: script to put files in the right place
Content-Disposition: attachment ; filename="FIXUP.csh"

cd /usr/ports/java/jdk13/work
mv ./j2sdk1.3.1/src/share/classes/com/sun/org/omg/CORBA/ValueDefPackage/FullValueDescriptionHelper.jav{,a}
mv ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/bdi/MethodNotFoundException.jav{,a}
mv ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/tty/VMNotConnectedException.jav{,a}
mv javax.sound.sampled.spi.FormatConversionProvider ./j2sdk1.3.1/src/share/classes/com/sun/media/sound/services/
mv ValueDescSeqHelper.java ./j2sdk1.3.1/src/share/classes/com/sun/org/omg/SendingContext/CodeBasePackage/
mv FontLookUpAppletOffscreen.* ./j2sdk1.3.1/src/share/test/java2d/MiscTests/FontLookUpAppletOffscreen/
mv ConcurrentThreadsText.java ./j2sdk1.3.1/src/share/test/java2d/MiscTests/RegTests/ConcurrentThreadsText/
mv AmbiguousMethodException.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/tty/
gtar --fast-read -xvzf /usr/ports/distfiles/j2sdk-1_3_1-src.tar.gz AmbiguousMethodException.java
AmbiguousMethodException.java
mv AmbiguousMethodException.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/bdi/
mv FrameIndexOutOfBoundsException.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/bdi/
mv ASCII_UCodeESC_CharStream.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/expr/
mv AccessWatchpointEventSet.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/event/
mv ConverterProgressListener.java ./j2sdk1.3.1/ext/plugin/src/share/converter/sun/plugin/converter/engine/
mv CurrentFrameChangedEvent.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/gui/
mv ExpressionParserConstants.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/expr/
mv ExpressionParserTokenManager.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/expr
mv LocationTriggerEventSet.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/event/
mv MalformedMemberNameException.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/tty/
gtar --fast-read -xvzf /usr/ports/distfiles/j2sdk-1_3_1-src.tar.gz MalformedMemberNameException.java
MalformedMemberNameException.java
mv MalformedMemberNameException.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/bdi/
mv ModificationWatchpointEventSet.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/event/
mv ModificationWatchpointSpec.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/tty/
gtar --fast-read -xvzf /usr/ports/distfiles/j2sdk-1_3_1-src.tar.gz ModificationWatchpointSpec.java
mv ModificationWatchpointSpec.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/bdi/
mv PatternReferenceTypeSpec.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/tty/
gtar --fast-read -xvzf /usr/ports/distfiles/j2sdk-1_3_1-src.tar.gz   PatternReferenceTypeSpec.java
PatternReferenceTypeSpec.java
mv PatternReferenceTypeSpec.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/bdi/
mv SingleLeafTreeSelectionModel.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/gui/
mv SourceNameReferenceTypeSpec.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/bdi/
mv TypeScriptOutputListener.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/gui/
mv VMLaunchFailureException.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/bdi/
mv VMNotInterruptedException.java ./j2sdk1.3.1/ext/jpda/src/share/classes/com/sun/tools/example/debug/bdi/

--0-846930886-1003387350=:1255--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




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