14 Replies Latest reply: Jan 18, 2012 11:32 AM by baltwo
Richard Brigg Level 1 Level 1 (30 points)

I have a program that requires Java Runtime.

At first it would not run, so I suspected the program at fault.

I installed the program on another MacBookPro with same 10.7.2 setup and latest Java for Lion (Java SE6 v 1.6.0_29-b11-402)

The program runs fine.

So I reinstalled 10.7.2 and manually installed Java with update on the first MacBookPro, still does not run the program.

GOING NUTS HERE!!!!

Everything I can see on the two macs is the same, but the program hangs up while loading for some reason, just cant work out why, but I am sure it is Java related.

Everything the same , both macs connected to same network, all software the same, reinstalled the program I am trying to boot several times already.

HELP

  • softwater Level 5 Level 5 (5,370 points)

    Did you look at the settings in Java Preferences.app in Applications > Utilities yet? In particular, make sure the 'Enabled' box is checked.

  • Richard Brigg Level 1 Level 1 (30 points)

    Yes, have done that. Interestingly, the MBP that is running the program no problem has this checkbox un-ticked!

    I have matched just about every setting I can see between the two machines.

    Still no luck! I have reistalled ALL software, including OSX, the faulty machine is the later MBP, dont know what else to do?

  • Barney-15E Level 8 Level 8 (39,695 points)

    Have you checked if any other Java program will run?

    Can you at least check the version at the command line and get a response (java -verson)

  • Richard Brigg Level 1 Level 1 (30 points)

    Yes, all those checks seem to be positive. The program I am trying to run just hangs during loading??
    From these screens it seems that Java is OK?????
    I have reinstalled the particular program MANY times from the same disk image that was successfully running on the other MBP.
    Screen Shot 2012-01-17 at 7.42.42 AM.png
    Screen Shot 2012-01-17 at 7.50.04 AM.png

  • Richard Brigg Level 1 Level 1 (30 points)

    BREAKTHROUGH !!!!

    I reloaded the app I am trying to run onto the problem MBP but under a different user.

    IT WORKS FINE!!!!!

    Why is it not working under my user name, I even created a new Admin user, installed the app, runs fine.

    This allows me to at least have the app on the MBP iI want it on, but I really want it running on my main user account.

    What could be the problem????

    ANYONE,,,, HELP

  • baltwo Level 9 Level 9 (61,805 points)

    Most likely corruption in that account. Since the issue is specific to your original user account, you can proceed in two ways. One is to log into your new account, make a list of the preference files (plists) located in /username/Library/Preferences/, including any in the ByHost subfolder, log back into the original account, move everything on that other account's list from the original account's Preferences folder into a newly created folder on the Desktop, log out and back in, and see if the problem goes away. If so, you can copy the ones in the Desktop folder (one at time) back into /Preferences/, restart, and see if the problem returns. If so, you've identified the corrupt/conflicting one. Continue with all of them until isolating the bad ones. That'll save you the trouble of resetting preferences.

     

    The second way is much more detailed and I'll not burden you with the steps unless the above doesn't fix the issue.

  • Richard Brigg Level 1 Level 1 (30 points)

    But if I am removing all the Pref files from the "Bad" user folder, that are the same as from the "good" users folder,  then logging back in to the "bad" user, wont the corrupted file still be there? I am a little confused.

  • Richard Brigg Level 1 Level 1 (30 points)

    Tried as you suggested (I think?), but same result, program does not load.

  • baltwo Level 9 Level 9 (61,805 points)

    Richard Brigg wrote:

    But if I am removing all the Pref files from the "Bad" user folder, that are the same as from the "good" users folder,  then logging back in to the "bad" user, wont the corrupted file still be there? I am a little confused.

    The old and new user prefs don't mess with each other. When you log back into the bad user account and run the apps that are associated with the removed ones, default ones are created. If the problem persists, then you'll have to remove other ones from the bad user account, sort of playing guessing games, trying to isolate the corrupted or conflicting ones. An alternative is to move all of them into a Desktop folder, log out and back in, and resetting all defaults. On my machine I have over 500 of those and resetting everything would take forever.

  • Richard Brigg Level 1 Level 1 (30 points)

    Tried your instructions first, no luck, so next I removed the WHOLE Preferences folder to the desktop on the "bad" user and logged back in. So ALL the pteferences are now new. Reinstalled the app, still the same, wont load past welcome screen. So must be something other that a Preferences problem, What do you think??

  • baltwo Level 9 Level 9 (61,805 points)

    If it works in the new account, then it's definitely something amiss in your account. Return the prefs to your Preferences folder and try the second way:

     

    While logged into the newly created admin account, backup the bad account's folder, delete the bad account, selecting the save data option (which stores the data in /Users/Deleted Users/ as a disk image), recreate the bad account using the same username/password combo, log out and back into the recreated original account. If the problem's solved, open the saved data dmg file in /Users/Deleted Users/, open the /Library/Preferences/ folder from the saved data, open the current /Users/restored account/Library/Preferences/ folder, and slowly copy plist files from the saved data folder to the current one that don't exist in it. Log out and back in to ensure there's no conflict and things still work correctly. Resolving conflicts or identifying corrupt plist files is a laborious process. Good luck.

  • Richard Brigg Level 1 Level 1 (30 points)

    Thanks Baltwo, will give it a go and let you know the outcome.

  • Richard Brigg Level 1 Level 1 (30 points)

    Problem solved, but not by your soluttion above.

    Like I said before, I removed the entire Pref folder and re-logged in, problem still persisted, so it is not a Preference issue.

    But you got me thinking, it must be something else in the user home folder.

    I found a folder called Java, that did not exist on the "good" user. It contained 3 files in an "Ext" subfolder dating back to 2003/4.

    I removed the entire folder, logged back in, problem fixed!!

    Thanks Baltwo for all the help and suggestions, happy now.

  • baltwo Level 9 Level 9 (61,805 points)

    thumbsup.gif