Announcement: Upgrade to macOS Mojave

With features like Dark Mode, Stacks, and four new built-in apps, macOS Mojave helps you get more out of every click. 
Find out how to upgrade to macOS Mojave > https://support.apple.com/macos/mojave

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Question:

Question: home folder moved - need help asap

Hi,


I was attempting to remedy a problem with CS6 and Java by following a set of instructions from this website:


https://oliverdowling.com.au/2015/10/09/oracles-jdk-8-on-mac-os-x-el-capitan/


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

cd 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.


Best,

Abram

Posted on

Reply
Question marked as Solved
Answer:
Answer:

Have you a suitable backup to restore from ?.


Is the command list above copied from the website, or from your Terminal history ?


If the former, enter this Terminal command : history 30

change 30 to a larger number if the output doesn't go back far enough. Copy the results.


echo $HOME should show where the computer thinks your home folder is now


ls -elO /Users should show a list including available home folders in the usual place.


If, understandably, you are reluctant to use Terminal; or if $HOME gives a clue about the likely location of your (intact, hopefully) old Home folder, it can be viewed/changed in System Preferences - Users & Groups - click the lock to make changes (enter an admin name/passwd)- select your user name, then ctrl-click it & choose Advanced Options… but don't rush right into altering it.

Posted on

Page content loaded

Question marked as Solved

Nov 12, 2017 4:10 PM in response to A.P. Fischer In response to A.P. Fischer

Have you a suitable backup to restore from ?.


Is the command list above copied from the website, or from your Terminal history ?


If the former, enter this Terminal command : history 30

change 30 to a larger number if the output doesn't go back far enough. Copy the results.


echo $HOME should show where the computer thinks your home folder is now


ls -elO /Users should show a list including available home folders in the usual place.


If, understandably, you are reluctant to use Terminal; or if $HOME gives a clue about the likely location of your (intact, hopefully) old Home folder, it can be viewed/changed in System Preferences - Users & Groups - click the lock to make changes (enter an admin name/passwd)- select your user name, then ctrl-click it & choose Advanced Options… but don't rush right into altering it.

Nov 12, 2017 4:10 PM

Reply Helpful
User profile for user: A.P. Fischer

Question: home folder moved - need help asap