Deleted JavaVM.framework, how to restore?












4














I accidentally deleted /System/Library/Frameworks/JavaVM.framework, and now i can't use any command like java, javac, etc.. even if i have java installed. So someone know how to restore this folder (no, i do not have time machine configured)? Or know to do some workarounds to java keep working again on command line?



Thanks a lot!










share|improve this question















migrated from stackoverflow.com Oct 17 '12 at 3:42


This question came from our site for professional and enthusiast programmers.




















    4














    I accidentally deleted /System/Library/Frameworks/JavaVM.framework, and now i can't use any command like java, javac, etc.. even if i have java installed. So someone know how to restore this folder (no, i do not have time machine configured)? Or know to do some workarounds to java keep working again on command line?



    Thanks a lot!










    share|improve this question















    migrated from stackoverflow.com Oct 17 '12 at 3:42


    This question came from our site for professional and enthusiast programmers.


















      4












      4








      4


      1





      I accidentally deleted /System/Library/Frameworks/JavaVM.framework, and now i can't use any command like java, javac, etc.. even if i have java installed. So someone know how to restore this folder (no, i do not have time machine configured)? Or know to do some workarounds to java keep working again on command line?



      Thanks a lot!










      share|improve this question















      I accidentally deleted /System/Library/Frameworks/JavaVM.framework, and now i can't use any command like java, javac, etc.. even if i have java installed. So someone know how to restore this folder (no, i do not have time machine configured)? Or know to do some workarounds to java keep working again on command line?



      Thanks a lot!







      macos java






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 23 '16 at 20:35









      Hennes

      58.8k792141




      58.8k792141










      asked Oct 17 '12 at 1:46









      lcsrinaldi

      2113




      2113




      migrated from stackoverflow.com Oct 17 '12 at 3:42


      This question came from our site for professional and enthusiast programmers.






      migrated from stackoverflow.com Oct 17 '12 at 3:42


      This question came from our site for professional and enthusiast programmers.
























          3 Answers
          3






          active

          oldest

          votes


















          2














          I accidentally deleted JavaVM.framework as well. After some googling I came across this great answer to a similar question on StackOverflow. Thanks to that answer I was successful in restoring the framework from the JavaDeveloper dmg you can find at the Apple Developer site (it is probably available elsewhere, but direct from the source seemed like a good way to go).






          share|improve this answer























          • I reinstalled all my OS because i couldn't find any solutions for my problem. But i will keep this in mind, thanks for the answer.
            – lcsrinaldi
            Jan 18 '13 at 18:46



















          1














          You need to reinstall jdk for mac os.
          http://www.wikihow.com/Install-the-JDK-(Java-Development-Kit)-on-Mac-OS-X



          The download package is java_for_os_x rather than jdk-macosx from oracle website.






          share|improve this answer





























            -1














            Try deleting contents in /Library/Java/JavaVirtualMachines and re-installing java






            share|improve this answer

















            • 1




              Doesn't work :(
              – lcsrinaldi
              Oct 17 '12 at 12:28











            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f488757%2fdeleted-javavm-framework-how-to-restore%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            I accidentally deleted JavaVM.framework as well. After some googling I came across this great answer to a similar question on StackOverflow. Thanks to that answer I was successful in restoring the framework from the JavaDeveloper dmg you can find at the Apple Developer site (it is probably available elsewhere, but direct from the source seemed like a good way to go).






            share|improve this answer























            • I reinstalled all my OS because i couldn't find any solutions for my problem. But i will keep this in mind, thanks for the answer.
              – lcsrinaldi
              Jan 18 '13 at 18:46
















            2














            I accidentally deleted JavaVM.framework as well. After some googling I came across this great answer to a similar question on StackOverflow. Thanks to that answer I was successful in restoring the framework from the JavaDeveloper dmg you can find at the Apple Developer site (it is probably available elsewhere, but direct from the source seemed like a good way to go).






            share|improve this answer























            • I reinstalled all my OS because i couldn't find any solutions for my problem. But i will keep this in mind, thanks for the answer.
              – lcsrinaldi
              Jan 18 '13 at 18:46














            2












            2








            2






            I accidentally deleted JavaVM.framework as well. After some googling I came across this great answer to a similar question on StackOverflow. Thanks to that answer I was successful in restoring the framework from the JavaDeveloper dmg you can find at the Apple Developer site (it is probably available elsewhere, but direct from the source seemed like a good way to go).






            share|improve this answer














            I accidentally deleted JavaVM.framework as well. After some googling I came across this great answer to a similar question on StackOverflow. Thanks to that answer I was successful in restoring the framework from the JavaDeveloper dmg you can find at the Apple Developer site (it is probably available elsewhere, but direct from the source seemed like a good way to go).







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited May 23 '17 at 12:41









            Community

            1




            1










            answered Jan 12 '13 at 20:26









            Ryan Wersal

            1407




            1407












            • I reinstalled all my OS because i couldn't find any solutions for my problem. But i will keep this in mind, thanks for the answer.
              – lcsrinaldi
              Jan 18 '13 at 18:46


















            • I reinstalled all my OS because i couldn't find any solutions for my problem. But i will keep this in mind, thanks for the answer.
              – lcsrinaldi
              Jan 18 '13 at 18:46
















            I reinstalled all my OS because i couldn't find any solutions for my problem. But i will keep this in mind, thanks for the answer.
            – lcsrinaldi
            Jan 18 '13 at 18:46




            I reinstalled all my OS because i couldn't find any solutions for my problem. But i will keep this in mind, thanks for the answer.
            – lcsrinaldi
            Jan 18 '13 at 18:46













            1














            You need to reinstall jdk for mac os.
            http://www.wikihow.com/Install-the-JDK-(Java-Development-Kit)-on-Mac-OS-X



            The download package is java_for_os_x rather than jdk-macosx from oracle website.






            share|improve this answer


























              1














              You need to reinstall jdk for mac os.
              http://www.wikihow.com/Install-the-JDK-(Java-Development-Kit)-on-Mac-OS-X



              The download package is java_for_os_x rather than jdk-macosx from oracle website.






              share|improve this answer
























                1












                1








                1






                You need to reinstall jdk for mac os.
                http://www.wikihow.com/Install-the-JDK-(Java-Development-Kit)-on-Mac-OS-X



                The download package is java_for_os_x rather than jdk-macosx from oracle website.






                share|improve this answer












                You need to reinstall jdk for mac os.
                http://www.wikihow.com/Install-the-JDK-(Java-Development-Kit)-on-Mac-OS-X



                The download package is java_for_os_x rather than jdk-macosx from oracle website.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 20 '14 at 6:31









                user301698

                111




                111























                    -1














                    Try deleting contents in /Library/Java/JavaVirtualMachines and re-installing java






                    share|improve this answer

















                    • 1




                      Doesn't work :(
                      – lcsrinaldi
                      Oct 17 '12 at 12:28
















                    -1














                    Try deleting contents in /Library/Java/JavaVirtualMachines and re-installing java






                    share|improve this answer

















                    • 1




                      Doesn't work :(
                      – lcsrinaldi
                      Oct 17 '12 at 12:28














                    -1












                    -1








                    -1






                    Try deleting contents in /Library/Java/JavaVirtualMachines and re-installing java






                    share|improve this answer












                    Try deleting contents in /Library/Java/JavaVirtualMachines and re-installing java







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Oct 17 '12 at 2:33







                    sasankad















                    • 1




                      Doesn't work :(
                      – lcsrinaldi
                      Oct 17 '12 at 12:28














                    • 1




                      Doesn't work :(
                      – lcsrinaldi
                      Oct 17 '12 at 12:28








                    1




                    1




                    Doesn't work :(
                    – lcsrinaldi
                    Oct 17 '12 at 12:28




                    Doesn't work :(
                    – lcsrinaldi
                    Oct 17 '12 at 12:28


















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f488757%2fdeleted-javavm-framework-how-to-restore%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Plaza Victoria

                    In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

                    How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...