Fixing Eclipse Corruption
Fixing Eclipse Corruption
Ask for permission to change their password and change it to whatever you want
Logon to vmware horizon with their name and password
Open their vm (if they have multiple it doesn't matter which. The error originates in their user profile)
Go to their workspace folder (usually P:username\workspace and delete .metadata folder
Start eclipse
Go to File -> Import
Select General -> Import existing projects into workspace
Select the first option Select Root Directory and click the browse button next to it and select their workplace folder (might be worth ticking search for nested projects
This should list all the projects in the folder. Just click finished
Close the welcome tab
Select Window -> Open Persepective -> Other
Select SQL Explorer
In the connections tab on the top left click on the first icon in the row which is create new connection profile.
Enter PR_SAIL in the name box and click add/edit drivers
In the box that opens expand SQL Explorer, select JDBC Drivers and select IBM DB2 Universal JDBC Driver and click the edit button
Click on the Extra Class Path tab
Click on Add Jars and navigate to C:\Program Files\IBM\ISWShared\plugins\com.ibm.datatools.db2.2.1.503.v20121002_1809\driver (if that particular select the next closest
Clock on db2jcc.jar and click open
Repeat 17 and add db2jcc4.jar
Click on List Drivers and in the now populated Driver Class Name drop down box select COM.ibm.db20s390.sqlj.jdbc.DB2SQLJDriver (or similar if using a different version)
Make sure IBM DB2 Universal JDBC Driver is still selected (it should also now be ticked)
Click ok
Select the IBM driver from the drop down box and replace the url with the following
Jdbc:db2://sail.chi.swan.ac.uk:50070/PR_SAIL
Enter the user's username and password which you used to logon to the machine (omit the chi). Tick Auto Logon
Click ok
Double click on the new PR_SAIL connection and make sure that it connects ok.
Logoff. Tell them to go to https://portal.sail.ukserp.ac.uk/requestnewpassword (or if a different ukserp replace sail with that serps name. They will need their yubikey during this process.
Ask them to logon to eclipse. Check all is ok and right click on the PR_SAIL connection in the Connections tab.
Tell them to select edit connection profile and to update the password in the dialog box that opens with the one they just selected using the above link.
Done