CLASSPATH error after configuring JAVA Environment
I'm installing BLFS 8.4
After configuring JAVA Environment (binary), when I reboot the system a message is being displayed: -su: ${AUTO_CLASSPATH_DIR}: invalid variable name. -su: ${AUTO_CLASSPATH_DIR}: invalid variable name. echo $CLASSPATH shows "." I have set: AUTO_CLASSPATH_DIR=/usr/share/java JAVA_HOME=/opt/jdk as per the book. All the certificates are displayed properly. Please help. Thank you. |
Have you checked things?
Code:
echo $AUTO_CLASSPATH_DIR && ls -lha /usr/share/java |
Quote:
|
http://www.linuxfromscratch.org/blfs...ojdk-conf.html
Here is the link of the section for commands to configure JAVA Environment |
Why such an old version? LFS is at 10.0 now
|
Quote:
I have a very old laptop and I want to study linux. Please help me with my problem! |
Quote:
|
Quote:
|
Quote:
It only displays those two messages are written in the previous comments and nothing else. What I do not understand is why /usr/share/java directory is not being created after the variable has been set whereas JAVA_HOME is working fine! |
Quote:
|
Quote:
Code:
cat > /etc/profile.d/openjdk.sh << "EOF" This should be correct, I double checked what I typed from the BLFS book. |
/usr/share/java is not created automatically, create it when you need to put jar files in it
|
Quote:
With other words: when you run this script it will first remove itself and recreate it again. Which is obviously not ok. But I guess the first and last line are not part of the actual script. most probably pathappend and pathprepend will not work properly on empty/missing directories. |
Quote:
|
Quote:
So creating these variables are not enough, those directories must be created before invoking pathappend. |
All times are GMT -5. The time now is 06:21 AM. |