HT204036: Get Java for your Mac

Learn about Get Java for your Mac
Apar_Parmar

Q: i want to use eclipse software for c programming. i have downloaded the software. the software is giving me one pop up dialog that you need JVM 1.7 for this software.. so give me some solutions for it.?

i am having mac yosemite installed on my mac.. i want to use eclipse as a programming software. when i am trying to use this, one pop up window comes and show me that "you need JVM 1.7 to run this application". can anyone tell me , what can i do to solve this problem?

MacBook, Mac OS X (10.6.8)

Posted on Oct 5, 2015 10:51 PM

Close

Q: i want to use eclipse software for c programming. i have downloaded the software. the software is giving me one pop up dialog that ... more

  • All replies
  • Helpful answers

  • by Wayne Contello,

    Wayne Contello Wayne Contello Oct 6, 2015 6:02 AM in response to Apar_Parmar
    Level 6 (19,017 points)
    iWork
    Oct 6, 2015 6:02 AM in response to Apar_Parmar

    Google can help you locate the Java installer you need.

     

    Have you considered installing XCode from the App Store?  This IDE (Integrated Design Environment) allows you to program in C, C++, Object C, Objective C++, Switf, and others)

  • by hokanst,

    hokanst hokanst Oct 6, 2015 10:38 AM in response to Apar_Parmar
    Level 2 (300 points)
    Oct 6, 2015 10:38 AM in response to Apar_Parmar

    You need a newer version of  the JVM (Java Virtual Machine) Apple only supplies Java 1.6 you'll need to go to the Oracle site to get a more current version. The JRE (Java Runtime Environment) is probably the version you'll want to install, this is the plain JVM without the java developer tools.

     

    Be aware that the installer may install unwanted junk apps/browser toolbars/... if you fail to uncheck certain installer check-boxes.

  • by Apar_Parmar,

    Apar_Parmar Apar_Parmar Oct 6, 2015 10:37 AM in response to Wayne Contello
    Level 1 (4 points)
    Oct 6, 2015 10:37 AM in response to Wayne Contello

    can you please give me steps"how can i write and compile my c program into Xcode?"

  • by Wayne Contello,

    Wayne Contello Wayne Contello Oct 7, 2015 11:57 AM in response to Apar_Parmar
    Level 6 (19,017 points)
    iWork
    Oct 7, 2015 11:57 AM in response to Apar_Parmar

    1) Launch XCode

    2) Select the menu item "File > New > Project..."

    Screen Shot 2015-10-07 at 1.44.08 PM.png

    3) Select the type of project.  For now select "OS X > Application > Command Line Tool", then click "Next"

    Screen Shot 2015-10-07 at 1.44.52 PM.png

    4) Now give you project a name, then click "Next"

    Screen Shot 2015-10-07 at 1.45.06 PM.png

     

    4) Now select where to store the project.  I chose the Desktop for this example.  You can choose where you like, then click the button "Create"

    Screen Shot 2015-10-07 at 1.46.14 PM.png

     

    5) Now compile the example:

    Screen Shot 2015-10-07 at 1.51.55 PM.png

     

    6) You may have to activate the built-in console to see the program output.  Select the menu item "View > Debug Area > Activate Console":

    Screen Shot 2015-10-07 at 1.56.04 PM.png

     

    Now make changes as needed to your program and compile, then run again