With the 3.6 (aka, Helios) release of Eclipse, there is now support for opening files from the operating system command line or file browser directly into Eclipse. This has been a long-standing feature request (one of the oldest requests to ever have been implemented, in fact) and many people are happy to have it. Here is a quick tutorial on utilizing this feature under Mac OS X to associate .java files so that they open in Eclipse upon double-click from Finder. Although this demonstrates using .java files, you can do the same for any other file type; as long as your installation of Eclipse has an editor to handle that file type, it should work just fine.
![Download Download](/uploads/1/3/4/0/134052147/580910534.jpg)
- Just to re-iterate, you have to have Eclipse Helios (version 3.6 of the platform) in order to take advantage of this feature. If you don't already have it, go get it.
- In Finder, locate a .java file that you'd like to open in Eclipse; right-click (or Control+click if that's the way you roll) and select Get Info
- In the Info dialog, under the 'Open with:' section, click the drop-down list and select Other..
- Here comes the only tricky part about this process.
In the resulting Finder dialog to select an application, navigate to where Eclipse is installed. You'll see Eclipse.app listed but chances are, it's disabled; you can't select it. You just have to enable it using the Enable: drop-down list at the bottom of the window, as shown here:
Once you do that, you'll be able to select Eclipse.app. - Before clicking the Add button, decide if you want to select the 'Always Open With' option (checkbox). Then click Add.
- Back in the 'Info' dialog, you can use the Change All.. button to associate all .java files with Eclipse. Even if you don't do it now, you an always come back to this dialog and do it later.
After installing the Eclipse SDK in a directory, you can start the Workbenchby running the Eclipse executable included with the release (you also need at least a JDK6 or JRE 6, not included with the Eclipse SDK). On Windows, the executable file is called eclipse.exe,and is located in the
eclipse
sub-directory of the install. Ifinstalled at c:eclipse-SDK-4.4-win32
, the executable is c:eclipse-SDK-4.4-win32eclipseeclipse.exe
.Note: Set-up on most other operating environments is analogous. Specialinstructions for Mac OS X are listed below.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. 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.
Allocating enough memory and solving OutOfMemoryErrors
By default, Eclipse will allocate up to 384 megabytes of Java heap memory. This shouldbe ample for all typical development tasks. However, depending on the JREthat you are running, the number of additional plug-ins you are using, andthe number of files you will be working with, you could conceivably have to increase this amount. Eclipse allows you to pass arguments directly to the Java VM using the
-vmargs
command line argument, which must follow all other Eclipse specific arguments.Thus, to increase the available heap memory, you would typically use:eclipse -vmargs -Xmx<memory size>
Ms excel for mac free.with the
<memory size>
value set to greater than'384M' (384 megabytes -- the default). When using an Oracle JRE, you may also need to increase the size of the permanentgeneration memory. https://newcricket768.weebly.com/desktop-publishing-software-for-mac.html. The default maximum is 64 megabytes, but more maybe needed depending on your plug-in configuration and use. When the VM runsout of permanent generation memory, it may crash or hang during class loading.The maximum permanent generation size is increased using the -XX:MaxPermSize=<memory size> argument:
eclipse -vmargs -XX:MaxPermSize=<memory size>
Eclipse Ide For Mac
This argument may not be available for all VM versions and platforms; consult your VM documentationfor more details.
Note that setting memory sizes to be larger than the amount of available physicalmemory on your machine will cause Java to 'thrash' as it copies objectsback and forth to virtual memory, which will severely degrade your performance.
Selecting a workspace
When the Workbench is launched, the first thing you see is a dialog that allows you to select where the workspace will be located. Theworkspace is the directory where your work will be stored.If you do not specify otherwise, Eclipse creates the workspace in youruser directory.This workspace directory is used as the default content area for your projectsas well as for holding any required metadata. For shared or multi-workspaceinstalls you must explicitly specify the location for your workspace using thedialog (or via the '
-data
' command line argument).Specifying the Java virtual machine
Here is a typical Eclipse command line:
eclipse -vm c:jdk7u45jrebinjavaw
Tip: It's generally a good idea to explicitly specify which Java VM touse when running Eclipse. This is achieved with the '
-vm
'command line argument as illustrated above. If you don't use '-vm
',Eclipse will look on the O/S path. When you install other Java-based products,they may change your path and could result in a different Java VM being usedwhen you next launch Eclipse.To create a Windows shortcut to an installed Eclipse:
- Navigate to
eclipse.exe
in Windows Explorer and use Create Shortcut on the content menu. - Select the shortcut and edit its Properties. In the Target: field append the command line arguments.
Opening this shortcut launches Eclipse. (You can drag the shortcut to the Windows Desktop if you want to keep it in easy reach.)
Eclipse For Java Developers
Mac OS X
On Mac OS X, you start Eclipse by double clicking the Eclipse application. If you need to pass arguments to Eclipse, you'll have to edit the
eclipse.ini
fileinside the Eclipse application bundle: select the Eclipse application bundle icon while holding down the Control Key.This will present you with a popup menu. Select 'Show Package Contents' in the popup menu.Locate eclipse.ini
file in the Contents/MacOS
sub-folder and open it with your favorite text editor to edit the command line options.On MacOS X you can only launch a UI program more than once if you have separatecopies of the program on disk. The reason for this behavior is that every UIapplication on Mac can open multiple documents, so typically there is no needto open a program twice. Since Eclipse cannot open more than one workspace, this means you have to makea copy of the Eclipse install if you want to open more then one workspace atthe same time (bug 139319).
If you need to launch Eclipse from the command line, you can use the symbolic link 'eclipse' in thetop-level eclipse folder. It refers to the eclipse executable inside the application bundle and takesthe same arguments as 'eclipse.exe' on other platforms.
On Mac OS X 10.4 and later, you may notice a slow down when working with significantnumbers of resources if you allow Spotlight to index your workspace. Web design apps for mac. To prevent this, startSystem Preferences, select the Spotlight icon, then the Privacy tab, then click the Add button('+') and find your workspace directory in the dialog that appears.
Eclipse Java Mac Os High Sierra
Shared Install
![Download Download](/uploads/1/3/4/0/134052147/580910534.jpg)
Eclipse Mac Javadoc Shortcut
The startup speed of a shared install can be improved if proper cache information is stored in the shared install area. To achieve this, after unzipping Eclipse distribution, run Eclipse once with the '-initialize' option from an account that has a write access to the install directory.
The Eclipse executable and the platform itself offer a number of execution options of interest to people developing or debugging parts of Eclipse. This is a list of the commonly used options, for a full list see the Eclipse runtime options page in the Platform Plug-in Developer Guide. The general form of running the Eclipse executable is:
Command | Description | Since |
---|---|---|
Defines the processor architecture on which the Eclipse platform is running. The Eclipse platform ordinarily computes the optimal setting using the prevailing value of Java os.arch property. If specified here, this is the value that the Eclipse platform uses. The value specified here is available to plug-ins as Platform.getOSArch(). Example values: 'x86', 'sparc', 'PA-RISC', 'ppc'. | 2.0 | |
The application to run. Applications are declared by plug-ins supplying extensions to the org.eclipse.core.runtime.applications extension point. This argument is typically not needed. If specified, the value overrides the value supplied by the configuration. If not specified, the Eclipse Workbench is run. | 1.0 | |
Cleans cached data used by the OSGi framework and Eclipse runtime. Try to run Eclipse once with this option if you observe startup errors after install, update, or using a shared configuration. | 3.0 | |
The location for the Eclipse Platform configuration file, expressed as a URL. The configuration file determines the location of the Eclipse platform, the set of available plug-ins, and the primary feature. Note that relative URLs are not allowed. The configuration file is written to this location when the Eclipse platform is installed or updated. | 2.0 | |
Mirrors the Eclipse platform's error log to the console used to run Eclipse. Handy when combined with -debug . | 1.0 | |
The path of the workspace on which to run the Eclipse platform. The workspace location is also the default location for projects. Relative paths are interpreted relative to the directory that Eclipse was started from. | 1.0 | |
Puts the platform in debug mode and loads the debug options from the file at the given location, if specified. This file indicates which debug points are available for a plug-in and whether or not they are enabled. If a file location is not given, the platform looks in the directory that eclipse was started from for a file called '.options'. Both URLs and file system paths are allowed as file locations. | 1.0 | |
Puts the platform in development mode. The optional classpath entries (a comma separated list) are added to the runtime classpath of each plug-in. For example, when the workspace contains plug-ins being developed, specifying -dev bin adds a classpath entry for each plug-in project's directory named bin , allowing freshly generated class files to be found there. Redundant or non-existent classpath entries are eliminated. | 1.0 | |
Initializes the configuration being run. All runtime related data structures and caches are refreshed. Handy with shared installs: running Eclipse once with this option from an account with write privileges will improve startup performance. | 3.0 | |
The location of the authorization database (or 'key ring' file) on disk. This argument must be used in conjunction with the -password option. Relative paths are interpreted relative to the directory that Eclipse was started from. | 1.0 | |
Defines the name of the locale on which the Eclipse platform is running. The Eclipse platform ordinarily computes the optimal setting automatically. If specified here, this is the value that the Eclipse platform uses. The value specified here is available to plug-ins as Platform.getNL(). Example values: 'en_US' and 'fr_FR_EURO'. | 2.0 | |
Runs the platform without putting up the splash screen. | 1.0 | |
Defines the operating system on which the Eclipse platform is running. The Eclipse platform ordinarily computes the optimal setting using the prevailing value of Java os.name property. If specified here, this is the value that the Eclipse platform uses. The value specified here is available to plug-ins as Platform.getOS(), and used to resolve occurrences of the $os$ variable in paths mentioned in the plug-in manifest file. Example values: 'win32', 'linux', 'hpux', 'solaris', 'aix'. | 1.0 | |
The password for the authorization database. Used in conjunction with the -keyring option. | 1.0 | |
The perspective to open in the active workbench window on startup. If this parameter is not specified, the perspective that was active on shutdown will be opened. | 1.0 | |
The location of a properties file containing default settings for plug-in preferences. These default settings override default settings specified in the primary feature. Relative paths are interpreted relative to the directory that eclipse was started from. | 2.0 | |
The ID of the product to run. The product gives the launched instance of Eclipse its personality, and determines the product customization information used. This replaces -feature, which is still supported for compatibility. | 3.0 | |
Option for performing a global refresh of the workspace on startup. This will reconcile any changes that were made in the file system since the platform was last run. | 1.0 | |
Option for displaying the location of the workspace in the window title bar. In release 2.0 this option only worked in conjunction with the -data command line argument. In 3.2, an optional workspace name argument was added that displays the provided name in the window title bar instead of the location of the workspace. | 2.0 | |
The location of Java Runtime Environment (JRE) to use to run the Eclipse platform. If not specified, the launcher will attempt to find a JRE. It will first look for a directory called jre as a sibling of the Eclipse executable, and then look on the operating system path. Relative paths are interpreted relative to the directory that eclipse was started from. | 1.0 | |
When passed to the Eclipse, this option is used to customize the operation of the Java VM used to run Eclipse. If specified, this option must come at the end of the command line. The given arguments are dependent on VM that is being run. | 1.0 |
Eclipse Mac Java 6
All arguments following (but not including) the -vmargs entry are passeddirectly through to the indicated Java VM as virtual machine arguments (that is,before the class to run). Note: If an Eclipse startup argument, such as -data,is provided after the Java vm arguments (-vmargs), Eclipse will not start and you will receive a 'JVM terminated. Exit code=1' error.