> Hi all,
> 
> There seems to be a problem with the instructions for installing the 
> binary version of OpenJDK. The initial installation is OK, but then I 
> come to set the CLASSPATH and PATH env variables. From BLFS Version
2013-06-05:
> 
> export CLASSPATH=.:/usr/share/java &&
> export PATH="$PATH:/opt/OpenJDK-1.7.0.9-bin/bin
> 
> Here the second statement fails, as far as I can see because it has no 
> terminating " ?

I believe so.

> If I add " at the end of the line, it appears to work. But when I then 
> try to install JUnit, specifically update the CLASSPATH:
> 
> export CLASSPATH=$CLASSPATH:\
>    /usr/share/junit-4.10/junit-4.10.jar:/usr/share/junit-4.10
> 
> This instruction to fails, saying that it is "not a valid identifier".

This is because it is trying to include spaces in the PATH variable, I
think. This should work:

export
CLASSPATH=$CLASSPATH:/usr/share/junit-4.10/junit-4.10.jar:/usr/share/junit-4
.10

This also might work:

export CLASSPATH=$CLASSPATH:\
/usr/share/junit-4.10/junit-4.10.jar:/usr/share/junit-4.10

> Can any of you help me whith what the PATH and CLASSPATH variables 
> should be set to ?

Notice that newest icedtea is 2.4.0, so, the binary openjdk in the book,
probably built with 2.3.3 is too old. It would be safer to build it from the
source. I have used OpenJDK-1.7.0.9 to successfully bootstrap a 64bit build
of OpenJDK-1.7.0.21-2.3.9, in "LFS7.3" svn but icedtea used was 2.3.9.

Only when writing this, I noticed that 2.4.0 was released, so up to date
version should be OpenJDK-1.7.40-2.4.0. Similar convention is used in
Debian, Ubuntu and ArchLinux, instead of the one in the book, as sometimes,
icedtea is upgraded, but not openjdk, so both versions are relevant, now.
Newest was updated yesterday in ArchLinux, but not yet in Debian/Ubuntu.

Have not checked Junit, Apache-ant newest versions, believe used the ones in
the book for my newest 64bit machine.

--
[]s,
Fernando
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Thanks a lot, Fernando, now it works ! Have installed Apache Ant, am now
starting to compile from source.

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to