Showing posts with label Eclipse. Show all posts
Showing posts with label Eclipse. Show all posts

Thursday, November 03, 2011

How to stop Datanucleus Enhancer Console Output from stealing focus in Eclipse


How to stop Datanucleus Enhancer Console Output from stealing focus in Eclipse

You might find that when using the Datanucleus Enhancer that every time you make a change to your project that requires a build to occur that the Datanucleus Enhancer will run.  When this happens Eclipse will change focus to the console window (which can be annoying if you already have another tab selected like ‘Development Mode’).

To change this setting you only need to go into Eclipse Preferences and make a couple of changes.

Open Eclipse Preferences and search for ‘Console’:

Uncheck the option ‘Show when program writes to standard out’.  You can also choose to not allow the Eclipse console from stealing focus when errors are written to the console by unchecking the ‘Show when program writes to standard error’ if you choose.

References:

Thursday, August 25, 2011

How to Modify eclipse.ini settings in Mac OS X

How to Modify eclipse.ini settings in Mac OS X

Right click on your Eclipse icon and choose the option ‘Show Package Contents’


Open ‘Contents’ and then ‘MacOS’.  Then you should be able to select eclipse.ini and open it with your favorite text editor.



You can then edit things like the JVM version and your memory settings

Here is a link with more ideas on making Eclipse run great on OS X

How to setup open JDK on Mac OS X in Eclipse

How to setup open JDK on Mac OS X in Eclipse

Open Eclipse preferences and go to the installed JREs

Click the ‘Add...’ a new one, and browse to the base of the JDK,  in this example /Library/Java/JavaVirtualMachines.  You will see an error message that you have not selected a target that is a JDK root.

Manually type in the last part of the JRE home (/1.7.0.jdk/Contents/home).
How do you know the final part of the path?  The 1.7.0.jdk is the file name of the JDK. The rest of the path can be found by right clicking on the 1.7.0.jdk in finder and select ‘Show package Contents’ then go find the home folder


You should probably see something like this when you Show the Package Contents:

Finally You should be able to give you JDK a name and click the ‘Finish’ button

Tuesday, November 30, 2010

Setup environment variables in Mac OS when using Eclipse

While trying to get Eclipse Ant builds working on Mac OS I found that I needed to setup environment variables.  Normally in Linux and Windows I knew how to do this, however things are a little different on the Mac.
Using help from this link I was able to add the appropriate variables that I needed to run my Ant builds in Eclipse.
Basically from a terminal you would use the following command:
sudo vi /etc/launchd.conf


Then add add entries as necessary:

setenv GWT_HOME /Users/hathaway3/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.2.1.0_2.1.0.v201010280102/gwt-2.1.0

setenv GWT_INCUBATOR /Users/hathaway3/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.2.1.0_2.1.0.v201010280102/gwt-2.1.0


The only bad thing is that you must reboot after making these changes.

iPod Touch Deals