Re: CLASSPATH is not recommended by openjdk
| Newsgroups | gmane.linux.lfs.beyond.devel |
|---|---|
| Message-ID | <[email protected]> |
On 11/12/24 09:19, Zhang Wen ([email protected] via blfs-dev Mailing List) wrote: > When looking through the log of openjdk package, I found a warning > message in the configure output, which is like "CLASSPATH is set in > the environment. This will be ignored. Use --with-classpath instead". > > I wonder if it is "do something right" if we fix this kind of warning > messages, or we can pick the word "If it is not broken, do not change > it". Which do you prefer? > > Hi Zhang, I just made a commit (1b743b0d701e81d32fd73cd670e95a9174cb9542) to unset CLASSPATH prior to running configure! This is very similar to the build system not liking having JAVA_HOME set, and it makes sense since CLASSPATH (which contains user-supplied class files) will get precedence over the ones built into OpenJDK. That could potentially cause problems with the build system, so it makes sense that it's ignored by configure. I updated the text describing why we unset JAVA_HOME to also mention CLASSPATH. Thank you for the report! - Doug -- http://lists.linuxfromscratch.org/sympa/info/blfs-dev Unsubscribe: See the above information page