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, September 01, 2011

Tomcat 6 availability issue in Hyperic

I have recently started using Hyperic to monitor services on several servers and ran into a problem with two different servers where I needed to monitor Tomcat 6.0 availability on a Windows 2003 platform. Turns out the problem was the service query to find the process in Windows was not able to find the Tomcat process like it should have. Thanks to the support forum question and answer below I was able to fix my problem.  Basically I had to change the process.query in Hyperic for the Tomcat service to be Pid.Service.eq=Service name (in this case Tomcat6).







Support Forums : Tomcat 6 availability issue ...

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

iPod Touch Deals