Eclipse 1.8 Version Download Mac
2020年10月21日Download: http://gg.gg/moq05
*Eclipse 1.8 Version Download Mac Download
*Eclipse 1.8 Download
*Eclipse 1.8 Version Free Download
*Eclipse Download For Java 1.8
*Eclipse 1.8 Version Download Mac Os
In CS106A, we’ll be using Stanford’s customized version of Eclipse to build our programs. Eclipse is an enormously popular industrial-strength Java environment with many features. Fortunately, Eclipse is also open source -- anyone is free to change Eclipse to work the way they want. We have taken advantage of that freedom to install special Stanford features into Eclipse, tailoring it specifically for CS106A. This document gives instructions on how to get started using Stanford Eclipse. Please pay close attention to these instructions and do not skip steps!ContentsMac Installation |Windows Installation |Configuring Eclipse for CS106A |I need help!
It’s often simplest to download a version of Eclipse that will work with whatever Java you already have installed. To open ’Eclipse’ you need to install the legacy Java SE 6 runtime. On more recent versions of the Mac, if you don’t have a full JDK of an appropriately high version.
*When I run ’java -version’ is says that I am still using 1.6. How do I change this? According to java control panel I have 1.8. However when working in eclipse it is still using 1.6.065. I tried uninstalling and it was unsuccessful. My java virtual machine folder only contains 1.6.0.jdk. Do I need to move 1.8 to this folder?
*JDK for Mac ReadMe. This release of the JDK is a developer-only version. You can use it to create Java applications and includes the new JavaFX 2.2 client stack. This will cause Eclipse to use it as the default JRE for all new Java projects. Now, create a new project. For this verification, from the menu, select File - New.Installing Eclipse on a Mac
Stanford Eclipse will only work on Mac OS X version 10.6 or higher. If you don’t have that version of the operating system, you’ll need to either upgrade or do your class work in a public cluster.
*Download and install the Java SDK installer for Mac
*Download the Mac version of Eclipse
*Double-click on the file eclipse-mac.dmg to open the Eclipse disk image(You can delete eclipse-mac.dmg afterwards).
*Drag the Eclipse app into the Applications folder on your Mac.
*Drag the Eclipse icon from your Applications folder to your Dock to create a shortcut.
*Click on the icon in the dock to open Eclipse. If you see an error that says Eclipse ’can’t be opened because it is from an unidentified developer,’ right-click on the Eclipse icon and select ’open’ instead. You will be able to open Eclipse without right-clicking from now on.
*Skip to the instructions below to configure Eclipse for CS106A.
Installing Eclipse in Windows
Our version of Eclipse will run on Windows 7 (2009) or higher. In the very unlikely event you have an older version of Windows on your computer, you will need to either upgrade or do your class work in one of the public computer clusters. You can check your version of Windows using these instructions.
*Uninstall previous versions of the Java Runtime Environment (JRE). Before installing a new version of the JRE, we recommend that you remove any older copies that may be installed on your system.
* If you have Windows 7 or 8, do the following: Click on Start, then click on Control Panel, then select Programs and Features.
If you have Windows 10, do the following: Click on Start (the Windows icon in the lower left-hand corner), then click on Settings (the gear-shaped icon), then select Apps & Features.
*From the list of programs you see, uninstall any occurrences of Java/J2SE Runtime Environment, Java SDK, Java SE Development Kit or Java Update. Note that the exact program name may be slightly different or include a version number, but you generally want to remove anything that includes the text: Java/J2SE Runtime Environment, Java SDK, Java SE Development Kit or Java Update. To remove a program, click on the program name to highlight it and click the the Uninstall button.
*Download Eclipse.Save the downloaded file to somewhere on your hard drive. This may take a little while as the file is rather large.
*Unzip/extract the contents of the file by right-clicking on the folder you just downloaded, selecting the Extract All... option and typing C:Program Files as the location to extract the files to. Then continue following the steps in the extraction process.
*Create a shortcut to Eclipse on your Desktop for easy access — Open the C:Program Fileseclipse directory, and right-click and drag the eclipse.exe file (the Eclipse application) to your desktop and then select the option Create shortcut here.
Note: If you installed the 64 bit versions of the software, and find that you have issues running Eclipse, we recommend that you uninstall Eclipse by deleting the C:Program Fileseclipse directory and install the 32 bit versions of both: the JRE 32 bit version for Windows and Eclipse 32 bit version for Windows, in that order.
*Continue to the instructions below to configure Eclipse for CS106A.
Configuring Eclipse for CS106A (both Mac and Windows)
Once you have Eclipse installed on your computer, there are a few CS106A-specific changes you need to make so that you can access some special Stanford features, like submitting assignments. The following instructions apply to all operating systems, although the screenshots are from a Mac.
*Open Eclipse if you haven’t already. When you run Eclipse for the first time, you may get a screen that looks like this: A workspace is just a directory that Eclipse will use to place new projects in. In 106A you won’t have to make any new projects from scratch. We will always give you skeleton projects for your assignments, so you don’t need to worry about where the workspace is. The suggested location is fine. Click the Use this as the default and do not ask again checkbox, and then click OK.
*Once Eclipse has started, you can close the ’Welcome’ tab using the ’X’ in the top left.
*Click Help -> Install New Software.
*In the ’Work with’ text box, type https://web.stanford.edu/dept/cs_edu/eclipse/plugin and press Enter.
*Click ’Select All,’ then click Next.
*Click Next again.
*Click ’I accept the terms of the license agreement,’ then click Finish.
*Click OK when you see the warning about installing unsigned content.
*Click Yes when asked to restart Eclipse.
*After restarting, you should see a ’Stanford Menu’ in the top bar, as well as several new icons in your top toolbar area.
*Go to Eclipse -> Preferences to open the Preferences window. In the dropdowns on the left, expand Run/Debug, and click Perspectives. Set ’Open the associated perspective when an application suspends’ to Never, as shown below, and click Apply and Close.
* Now that you have Eclipse loaded and configured, your next step is to add a project to your workspace by importing a skeletal framework that we provide with each assignment called a starter project. Using starter projects makes your life much easier by allowing you to ignore the many details involved in creating a project from scratch. Every assignment will include a starter project for each problem, and your first task for each assignment will be to download the starter project from the class website and then import it into your workspace. The details for doing so are described in the handout ’Using Karel with Eclipse’.Having trouble with your installation?
Check out this doc for common Eclipse errors and issues / Troubleshooting, email the Head TA or stop by their Office Hours, or stop by the LaIR. During the first week, you can also stop by the Eclipse Setup Session on Wednesday 4/4/18 7-9 PM in the LaIR (first floor of Tresidder).Troubleshooting
*Q: Eclipse is showing an error in the Console ’Could not save C++ lib configuration file.’ Do I need to worry about this? A: No. This error should not affect the running of your programs, and you can ignore it.
*Q: Help! I don’t see the ’running person’, submit, import, etc. icons or the ’Stanford Menu’ in my Eclipse. A: This means the Stanford Plugin is not installed; please repeat the steps under ’Installing the CS106A plugin’ above.
*Q: My Eclipse window doesn’t look like the ones in the screenshots or in lecture. I’m missing some of the panels (e.g. the sidebar showing all my projects). Help! A: Click the ’Reset’ button in the Stanford Menu to reset to the default view. You may also be in Debugger mode instead of Editor mode; use the Stanford Menu to go back to Editor mode.
*Q: Eclipse is not letting me import a project. It gives me a warning at the top of the import window that ’Some projects cannot be imported’. A: This is because a project with that name is already imported into Eclipse. If you would like to import this project, you must first delete the existing project by right-clicking the project in the sidebar and selecting ’Delete’. You can then choose whether to delete the project from your computer as well, or just delete the project from Eclipse.
*Q: When I run a Karel program, it immediately crashes with an ’Unsupported Version Error’. A: This means Eclipse is using Java 9, which is not compatible with running your programs. See the solution to the following question about being unable to run programs.
*Q: When I click the running person icon to run programs, Eclipse gives me an error that it ’could not find any programs to run’, even though I have a project imported with programs. A: This means Eclipse is using Java 9, which is not compatible with running your programs. To change Eclipse to use Java 8 instead, follow these steps:
*Open Eclipse Preferences: On Mac: in the top toolbar, go to Eclipse -> Preferences. On Windows: in the top toolbar, go to Window -> Preferences.
*Change JRE version to 8: In the sidebar of the preferences window, expand the ’Java’ section. Click on ’Installed JREs’. If the checked option is a version of Java SE 9, instead check the box next to Java SE 8 [1.8.0_152]. Click ’Apply’ in the bottom right.
*Change Compiler version to 1.8: In the sidebar of the preferences window, click on ’Compiler’. If the ’Compiler compliance level’ is 9, change it to 1.8. Click ’Apply’ in the bottom right.
*Close the preferences window. You should be good to go!JDK for Mac ReadMe
This release of the JDK is a developer-only version. You can use it to create Java applications and includes the new JavaFX 2.2 client stack. The developer version however does not include a plugin to launch Java applications from the browser so applet and Web Start applications cannot use this JDK.To test if the JDK installed successfully you should do the following:
To test if the JDK installed successfully you should do the following: note: if you are installing JDK 7u5 the version listed will be 1.7.0_05 instead of 1.7.0_04
Switch to the Finder.
Choose Go -> Go To Folder... or type command-shift-G.
Type /Applications/Utilities into the dialog box. Click the Go button.
Find Java Preferences.app in the window and double-click it. You should see a window that looks like this:
You should see a JDK named ’Java 7 SE’, with version 1.7.0_04. Click and drag it to the top of the list.
Now, find Terminal.app in the window and double-click it.
Terminal.app opens. If a window does not open, choose Shell -> New Window -> <Default>
At the command prompt type:
java -version
and confirm you are running JDK 1.7.0_04.
To use this JDK with Netbeans, you need to add it as a platform in the Java Platform Manager
Launch NetBeans.app
Choose Tools -> Java Platforms
Click the Add Platform... button
Navigate to the JDK’s folder. Type ’/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents’ in the File field.
The directory chooser should show Home and MacOS, and Home should have an icon on it indicating it is a Java home directory.
Select the Home directory, and click Next.
If you want, assign a new name to the JDK. Click Finish.
Now, create a new project. For this verification, select ’Java Application’
Accept all of the default settings, and click Finish.
Next, right-click on the project name and choose Properties.Eclipse 1.8 Version Download Mac Download
In the Categories list, choose Libraries.
Next to Java Platforms, choose ’JDK 1.7’ (or the name of the JDK you entered earlier) from the popup.
If you want to use Java 7 language features, do the following:
*From the Categories list, choose Sources
*In the Source/Binary Format field choose ’JDK 7’.
Click OK.
Now, let’s make sure the new JDK is being used to run your code. Open ’JavaApplication.java’, and look for the main method.
Type or copy this line of code into Main.java
System.out.println(System.getProperty(’java.version’));
Save the file and from the main menu, choose Run -> Run Main Project.
Verify that 1.7.0_04 is sent to the Output pane.
http://netbeans.org/kb/docs/java/quickstart.html will also help you get started with using NetBeans.Eclipse 1.8 Download
To use this JDK with Eclipse
Launch Eclipse.app
Choose Eclipse -> Preferences
Choose Java -> Installed JREs
Click the ’Add...’ button
Choose ’MacOS X VM’ as the JRE type. Press Next.
In the ’JRE Home:’ field, type ’/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home’
You should see the system libraries in the list titled ’JRE system libraries:’
Give the JRE a name. The recommended name is “JDK 1.7”. Click Finish.
Check the checkbox next to the JRE entry you just created. This will cause Eclipse to use it as the default JRE for all new Java projects. Click OK.
Now, create a new project. For this verification, from the menu, select File -> New -> Java Project.
In the dialog that appears, enter a new name for your project. For this verification, type Test17Project
In the JRE section of the dialog, select ’Use default JRE (currently JDK 1.7)’.
Click Finish.Eclipse 1.8 Version Free Download
Now, create a Java class to run. From the menu, select File -> New -> Class.
Name the class Java17Test. Click the checkbox to create a stub for ’public static void main(String[] args)’
Click Finish.
Type or copy this line of code into Java17Test.java
System.out.println(System.getProperty(’java.version’))
Save the file and from the main menu, choose Run -> Run.
Verify that 1.7.0_04 is sent to the Console pane.
To use this JDK with IntelliJ IDEA 11 CE
Launch IntelliJ IDEA 11 CE.app
You should see the welcome screen with a number of options. Choose ’Create New Project’ from the QuickStart panel.
Choose ’Create project from scratch’. Click Next.
Provide a name for the project. Click Next.
Keep the default source directory. Click Next.
Your next step depends on whether or not you have run IDEA before. If not, follow these steps:
The Project SDK window appears. Click on the ‘Configure’ button on the right side.
Navigate to ’/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home’. Click Choose
In the Project SDK window, you should see ’1.7 (java version ’1.7.0_04’)’ listed. Click Next.
Leave the default settings on the next page. Click Finish.
You are now ready to use Java 7 for your development.
If you had already been using IDEA you need to add JDK 1.7 and select it for the project.
Press F4 to bring up the Project Settings window.
In the left column, choose ‘SDKs’.
At the top of the second column, click the + icon. From the popup that appears, choose ‘JSDK’.
Navigate to ’/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home”. Click Choose.
IDEA will name the SDK ‘1.7’. Verify that the Project Structure window looks like this.
Click OK. You are now ready to use Java 7 for your development.
You should see your project name listed in the top left. Double-click on it to expand it.
Right-click on the blue ’src’ folder and choose New -> Java Class.
The ’Create New Class’ dialog appears. Type ’Java17Test’ into the field labelled ’Name:’ and click OK.
Type or copy this block of code inside the Java17Test class in the Java17Test.java file: public static void main(String[] args) { System.out.println(System.getProperty(’java.version’)); }
Save the file and from the main menu, choose Run -> Run ’Java17Test’.
Verify that 1.7.0_04 is sent to the Run Java17Test pane.
To run a standard java program –including JavaFX programs- do the following
Make sure you followed the steps above to ensure that JDK 1.7.0 is installed correctly.
Locate the JAR file you want to run.
Type
java -jar <path to JAR file>Eclipse Download For Java 1.8
Alternatively, if you know that the JAR file can be run using java -jar, locate the file in the Finder and double-click it. The application should start normally.Eclipse 1.8 Version Download Mac Os
If you would like to use Java from your browser or through a webstart application you will need to wait for the consumer release on Mac. There is an early access preview available. We encourage you to try it and give us feedback so we can deliver the best possible experience for Mac users when we release the JRE for Mac.
Download: http://gg.gg/moq05
*Eclipse 1.8 Version Download Mac Download
*Eclipse 1.8 Download
*Eclipse 1.8 Version Free Download
*Eclipse Download For Java 1.8
*Eclipse 1.8 Version Download Mac Os
In CS106A, we’ll be using Stanford’s customized version of Eclipse to build our programs. Eclipse is an enormously popular industrial-strength Java environment with many features. Fortunately, Eclipse is also open source -- anyone is free to change Eclipse to work the way they want. We have taken advantage of that freedom to install special Stanford features into Eclipse, tailoring it specifically for CS106A. This document gives instructions on how to get started using Stanford Eclipse. Please pay close attention to these instructions and do not skip steps!ContentsMac Installation |Windows Installation |Configuring Eclipse for CS106A |I need help!
It’s often simplest to download a version of Eclipse that will work with whatever Java you already have installed. To open ’Eclipse’ you need to install the legacy Java SE 6 runtime. On more recent versions of the Mac, if you don’t have a full JDK of an appropriately high version.
*When I run ’java -version’ is says that I am still using 1.6. How do I change this? According to java control panel I have 1.8. However when working in eclipse it is still using 1.6.065. I tried uninstalling and it was unsuccessful. My java virtual machine folder only contains 1.6.0.jdk. Do I need to move 1.8 to this folder?
*JDK for Mac ReadMe. This release of the JDK is a developer-only version. You can use it to create Java applications and includes the new JavaFX 2.2 client stack. This will cause Eclipse to use it as the default JRE for all new Java projects. Now, create a new project. For this verification, from the menu, select File - New.Installing Eclipse on a Mac
Stanford Eclipse will only work on Mac OS X version 10.6 or higher. If you don’t have that version of the operating system, you’ll need to either upgrade or do your class work in a public cluster.
*Download and install the Java SDK installer for Mac
*Download the Mac version of Eclipse
*Double-click on the file eclipse-mac.dmg to open the Eclipse disk image(You can delete eclipse-mac.dmg afterwards).
*Drag the Eclipse app into the Applications folder on your Mac.
*Drag the Eclipse icon from your Applications folder to your Dock to create a shortcut.
*Click on the icon in the dock to open Eclipse. If you see an error that says Eclipse ’can’t be opened because it is from an unidentified developer,’ right-click on the Eclipse icon and select ’open’ instead. You will be able to open Eclipse without right-clicking from now on.
*Skip to the instructions below to configure Eclipse for CS106A.
Installing Eclipse in Windows
Our version of Eclipse will run on Windows 7 (2009) or higher. In the very unlikely event you have an older version of Windows on your computer, you will need to either upgrade or do your class work in one of the public computer clusters. You can check your version of Windows using these instructions.
*Uninstall previous versions of the Java Runtime Environment (JRE). Before installing a new version of the JRE, we recommend that you remove any older copies that may be installed on your system.
* If you have Windows 7 or 8, do the following: Click on Start, then click on Control Panel, then select Programs and Features.
If you have Windows 10, do the following: Click on Start (the Windows icon in the lower left-hand corner), then click on Settings (the gear-shaped icon), then select Apps & Features.
*From the list of programs you see, uninstall any occurrences of Java/J2SE Runtime Environment, Java SDK, Java SE Development Kit or Java Update. Note that the exact program name may be slightly different or include a version number, but you generally want to remove anything that includes the text: Java/J2SE Runtime Environment, Java SDK, Java SE Development Kit or Java Update. To remove a program, click on the program name to highlight it and click the the Uninstall button.
*Download Eclipse.Save the downloaded file to somewhere on your hard drive. This may take a little while as the file is rather large.
*Unzip/extract the contents of the file by right-clicking on the folder you just downloaded, selecting the Extract All... option and typing C:Program Files as the location to extract the files to. Then continue following the steps in the extraction process.
*Create a shortcut to Eclipse on your Desktop for easy access — Open the C:Program Fileseclipse directory, and right-click and drag the eclipse.exe file (the Eclipse application) to your desktop and then select the option Create shortcut here.
Note: If you installed the 64 bit versions of the software, and find that you have issues running Eclipse, we recommend that you uninstall Eclipse by deleting the C:Program Fileseclipse directory and install the 32 bit versions of both: the JRE 32 bit version for Windows and Eclipse 32 bit version for Windows, in that order.
*Continue to the instructions below to configure Eclipse for CS106A.
Configuring Eclipse for CS106A (both Mac and Windows)
Once you have Eclipse installed on your computer, there are a few CS106A-specific changes you need to make so that you can access some special Stanford features, like submitting assignments. The following instructions apply to all operating systems, although the screenshots are from a Mac.
*Open Eclipse if you haven’t already. When you run Eclipse for the first time, you may get a screen that looks like this: A workspace is just a directory that Eclipse will use to place new projects in. In 106A you won’t have to make any new projects from scratch. We will always give you skeleton projects for your assignments, so you don’t need to worry about where the workspace is. The suggested location is fine. Click the Use this as the default and do not ask again checkbox, and then click OK.
*Once Eclipse has started, you can close the ’Welcome’ tab using the ’X’ in the top left.
*Click Help -> Install New Software.
*In the ’Work with’ text box, type https://web.stanford.edu/dept/cs_edu/eclipse/plugin and press Enter.
*Click ’Select All,’ then click Next.
*Click Next again.
*Click ’I accept the terms of the license agreement,’ then click Finish.
*Click OK when you see the warning about installing unsigned content.
*Click Yes when asked to restart Eclipse.
*After restarting, you should see a ’Stanford Menu’ in the top bar, as well as several new icons in your top toolbar area.
*Go to Eclipse -> Preferences to open the Preferences window. In the dropdowns on the left, expand Run/Debug, and click Perspectives. Set ’Open the associated perspective when an application suspends’ to Never, as shown below, and click Apply and Close.
* Now that you have Eclipse loaded and configured, your next step is to add a project to your workspace by importing a skeletal framework that we provide with each assignment called a starter project. Using starter projects makes your life much easier by allowing you to ignore the many details involved in creating a project from scratch. Every assignment will include a starter project for each problem, and your first task for each assignment will be to download the starter project from the class website and then import it into your workspace. The details for doing so are described in the handout ’Using Karel with Eclipse’.Having trouble with your installation?
Check out this doc for common Eclipse errors and issues / Troubleshooting, email the Head TA or stop by their Office Hours, or stop by the LaIR. During the first week, you can also stop by the Eclipse Setup Session on Wednesday 4/4/18 7-9 PM in the LaIR (first floor of Tresidder).Troubleshooting
*Q: Eclipse is showing an error in the Console ’Could not save C++ lib configuration file.’ Do I need to worry about this? A: No. This error should not affect the running of your programs, and you can ignore it.
*Q: Help! I don’t see the ’running person’, submit, import, etc. icons or the ’Stanford Menu’ in my Eclipse. A: This means the Stanford Plugin is not installed; please repeat the steps under ’Installing the CS106A plugin’ above.
*Q: My Eclipse window doesn’t look like the ones in the screenshots or in lecture. I’m missing some of the panels (e.g. the sidebar showing all my projects). Help! A: Click the ’Reset’ button in the Stanford Menu to reset to the default view. You may also be in Debugger mode instead of Editor mode; use the Stanford Menu to go back to Editor mode.
*Q: Eclipse is not letting me import a project. It gives me a warning at the top of the import window that ’Some projects cannot be imported’. A: This is because a project with that name is already imported into Eclipse. If you would like to import this project, you must first delete the existing project by right-clicking the project in the sidebar and selecting ’Delete’. You can then choose whether to delete the project from your computer as well, or just delete the project from Eclipse.
*Q: When I run a Karel program, it immediately crashes with an ’Unsupported Version Error’. A: This means Eclipse is using Java 9, which is not compatible with running your programs. See the solution to the following question about being unable to run programs.
*Q: When I click the running person icon to run programs, Eclipse gives me an error that it ’could not find any programs to run’, even though I have a project imported with programs. A: This means Eclipse is using Java 9, which is not compatible with running your programs. To change Eclipse to use Java 8 instead, follow these steps:
*Open Eclipse Preferences: On Mac: in the top toolbar, go to Eclipse -> Preferences. On Windows: in the top toolbar, go to Window -> Preferences.
*Change JRE version to 8: In the sidebar of the preferences window, expand the ’Java’ section. Click on ’Installed JREs’. If the checked option is a version of Java SE 9, instead check the box next to Java SE 8 [1.8.0_152]. Click ’Apply’ in the bottom right.
*Change Compiler version to 1.8: In the sidebar of the preferences window, click on ’Compiler’. If the ’Compiler compliance level’ is 9, change it to 1.8. Click ’Apply’ in the bottom right.
*Close the preferences window. You should be good to go!JDK for Mac ReadMe
This release of the JDK is a developer-only version. You can use it to create Java applications and includes the new JavaFX 2.2 client stack. The developer version however does not include a plugin to launch Java applications from the browser so applet and Web Start applications cannot use this JDK.To test if the JDK installed successfully you should do the following:
To test if the JDK installed successfully you should do the following: note: if you are installing JDK 7u5 the version listed will be 1.7.0_05 instead of 1.7.0_04
Switch to the Finder.
Choose Go -> Go To Folder... or type command-shift-G.
Type /Applications/Utilities into the dialog box. Click the Go button.
Find Java Preferences.app in the window and double-click it. You should see a window that looks like this:
You should see a JDK named ’Java 7 SE’, with version 1.7.0_04. Click and drag it to the top of the list.
Now, find Terminal.app in the window and double-click it.
Terminal.app opens. If a window does not open, choose Shell -> New Window -> <Default>
At the command prompt type:
java -version
and confirm you are running JDK 1.7.0_04.
To use this JDK with Netbeans, you need to add it as a platform in the Java Platform Manager
Launch NetBeans.app
Choose Tools -> Java Platforms
Click the Add Platform... button
Navigate to the JDK’s folder. Type ’/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents’ in the File field.
The directory chooser should show Home and MacOS, and Home should have an icon on it indicating it is a Java home directory.
Select the Home directory, and click Next.
If you want, assign a new name to the JDK. Click Finish.
Now, create a new project. For this verification, select ’Java Application’
Accept all of the default settings, and click Finish.
Next, right-click on the project name and choose Properties.Eclipse 1.8 Version Download Mac Download
In the Categories list, choose Libraries.
Next to Java Platforms, choose ’JDK 1.7’ (or the name of the JDK you entered earlier) from the popup.
If you want to use Java 7 language features, do the following:
*From the Categories list, choose Sources
*In the Source/Binary Format field choose ’JDK 7’.
Click OK.
Now, let’s make sure the new JDK is being used to run your code. Open ’JavaApplication.java’, and look for the main method.
Type or copy this line of code into Main.java
System.out.println(System.getProperty(’java.version’));
Save the file and from the main menu, choose Run -> Run Main Project.
Verify that 1.7.0_04 is sent to the Output pane.
http://netbeans.org/kb/docs/java/quickstart.html will also help you get started with using NetBeans.Eclipse 1.8 Download
To use this JDK with Eclipse
Launch Eclipse.app
Choose Eclipse -> Preferences
Choose Java -> Installed JREs
Click the ’Add...’ button
Choose ’MacOS X VM’ as the JRE type. Press Next.
In the ’JRE Home:’ field, type ’/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home’
You should see the system libraries in the list titled ’JRE system libraries:’
Give the JRE a name. The recommended name is “JDK 1.7”. Click Finish.
Check the checkbox next to the JRE entry you just created. This will cause Eclipse to use it as the default JRE for all new Java projects. Click OK.
Now, create a new project. For this verification, from the menu, select File -> New -> Java Project.
In the dialog that appears, enter a new name for your project. For this verification, type Test17Project
In the JRE section of the dialog, select ’Use default JRE (currently JDK 1.7)’.
Click Finish.Eclipse 1.8 Version Free Download
Now, create a Java class to run. From the menu, select File -> New -> Class.
Name the class Java17Test. Click the checkbox to create a stub for ’public static void main(String[] args)’
Click Finish.
Type or copy this line of code into Java17Test.java
System.out.println(System.getProperty(’java.version’))
Save the file and from the main menu, choose Run -> Run.
Verify that 1.7.0_04 is sent to the Console pane.
To use this JDK with IntelliJ IDEA 11 CE
Launch IntelliJ IDEA 11 CE.app
You should see the welcome screen with a number of options. Choose ’Create New Project’ from the QuickStart panel.
Choose ’Create project from scratch’. Click Next.
Provide a name for the project. Click Next.
Keep the default source directory. Click Next.
Your next step depends on whether or not you have run IDEA before. If not, follow these steps:
The Project SDK window appears. Click on the ‘Configure’ button on the right side.
Navigate to ’/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home’. Click Choose
In the Project SDK window, you should see ’1.7 (java version ’1.7.0_04’)’ listed. Click Next.
Leave the default settings on the next page. Click Finish.
You are now ready to use Java 7 for your development.
If you had already been using IDEA you need to add JDK 1.7 and select it for the project.
Press F4 to bring up the Project Settings window.
In the left column, choose ‘SDKs’.
At the top of the second column, click the + icon. From the popup that appears, choose ‘JSDK’.
Navigate to ’/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home”. Click Choose.
IDEA will name the SDK ‘1.7’. Verify that the Project Structure window looks like this.
Click OK. You are now ready to use Java 7 for your development.
You should see your project name listed in the top left. Double-click on it to expand it.
Right-click on the blue ’src’ folder and choose New -> Java Class.
The ’Create New Class’ dialog appears. Type ’Java17Test’ into the field labelled ’Name:’ and click OK.
Type or copy this block of code inside the Java17Test class in the Java17Test.java file: public static void main(String[] args) { System.out.println(System.getProperty(’java.version’)); }
Save the file and from the main menu, choose Run -> Run ’Java17Test’.
Verify that 1.7.0_04 is sent to the Run Java17Test pane.
To run a standard java program –including JavaFX programs- do the following
Make sure you followed the steps above to ensure that JDK 1.7.0 is installed correctly.
Locate the JAR file you want to run.
Type
java -jar <path to JAR file>Eclipse Download For Java 1.8
Alternatively, if you know that the JAR file can be run using java -jar, locate the file in the Finder and double-click it. The application should start normally.Eclipse 1.8 Version Download Mac Os
If you would like to use Java from your browser or through a webstart application you will need to wait for the consumer release on Mac. There is an early access preview available. We encourage you to try it and give us feedback so we can deliver the best possible experience for Mac users when we release the JRE for Mac.
Download: http://gg.gg/moq05
コメント