Question: home folder moved - need help asap
I was attempting to remedy a problem with CS6 and Java by following a set of instructions from this website:
However, when I entered in the terminal commands as instructed, I came across a major problem, which was that my home folder has been moved and I have no idea how to get it back to where it was! Any help would be much appreciated, all my files have disappeared and my desktop folder is now gone. If it helps, the following code is what I used in Terminal:
cd `ls -1d /Library/Java/JavaVirtualMachines/jdk1.8.*.jdk | sort -rn -t _ -k 1.42 -k 2 | head -1`
sudo defaults write "`pwd`/Contents/Info.plist" JavaVM -dict-add 'JVMCapabilities' '<array><string>JNI</string><string>BundledApp</string><string>CommandLine</str ing></array>'
sudo chmod 0664 Contents/Info.plist
sudo plutil -convert xml1 Contents/Info.plist
sudo mkdir -p Contents/Home/bundle/Libraries
sudo ln -s ../../jre/lib/server/libjvm.dylib libserver.dylib
echo "export JAVA_HOME=\`/usr/libexec/java_home\`" >> ~/.bash_profile
chmod u+x ~/.bash_profile
This shows me how serious messing with Terminal can be.
Hope you can help.