Showing posts with label mac. Show all posts
Showing posts with label mac. Show all posts

Tuesday, November 26, 2013

How to increase JBoss Developer Studio or Eclipse font size in Mac OSX

I typically use JBoss Developer Studio since it has all of the JBoss plugins already installed.  All of the plugins are available for plain Eclipse, but it's nice to have them already packaged together.

I recently downloaded the Mac version, and the font sizes on a Mac are tiny.

This Mac OSX Hints post contains the instructions for Eclipse.

It is a little different for JBoss Developer Studio :

  • locate the "JBoss Developer Studio.app" located in <>/studio/JBoss Developer Studio.app
  • "control" + click on the "JBoss Developer Studio.app" and choose "Show Package Contents"
  • this will open a folder "Contents"
  • open Contents/MacOS/jbdevstudio.ini
  • remove the line, "-Dorg.eclipse.swt.internal.carbon.smallFonts"
  • restart JBDS
Happy coding!

Tuesday, April 28, 2009

Where is the site-packages directory on Mac OSX?

/Library/Python/2.5/site-packages

Running :
 python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"

As suggested in the Django documentation displays the directory.

Monday, February 16, 2009

illegal character: \64 when running Eclipse on Mac OSX

I develop on a Mac. We use Luntbuild to automate our builds.

We added our new project into Luntbuild this morning. Luntbuild kicked this back :
[package name]/ChannelDetails.java:24: illegal character: \64
compile [ javac ] @Entity
Nice.

Our team has used OS X, Ubuntu, XP and Vista. We had not encountered this problem before.

Why wouldn't Eclipse just standardize on one character encoding?

The solution is to change the encoding by right clicking on the project and choose Properties -> Resource.

There are panels for "Text file encoding" and "New text file delimiter."

Wednesday, February 4, 2009

NetBeans 6.5 and svn+ssh on a Mac

I've been playing with NetBeans occaisonally. I couldn't stand it a couple of years ago. However, after Sun's Tech Days in Atlanta I decided to give it a try.

Besides, I wanted to verify a clean checkout, build, test cycle.

We use svn over ssh at work. It was a headache to get this running with NetBeans. I didn't completely succeed either.

This post has a nice tutorial from a Rails perspective. I started here. I was able to checkout fine. But when I right clicked -> Subversion -> Update I got an error stating that ssh_askpass couldn't be found.

I did some digging around. This post is a great discussion about Leopard and ssh.

I checked out this tutorial from the NetBeans site. I was pretty annoyed that I hadn't found an answer so I clicked the update button. It worked.

I can't reproduce the error now. Right clicking the project and running an update has worked since I updated from the button.

So in the event that you hit this post while having the same problems, run an update from the button.

Tuesday, November 25, 2008

OSX and JAVA_HOME

Trying to use seam-gen on my new MacBook Pro I got the following error :

The JAVA_HOME environment variable is not set
Please point it to a valid JDK installation

So I ran :

JAVA_HOME=/Library/Java/Home

This article from Apple's site suggested that the home should always point to that symlink. Unfortunately I got the same error.

Running :

java -version

showed only a JRE :

java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)

Running :

$JAVA_HOME/bin/java -version

showed the same thing. So where is this JDK that Apple speaks of?  Its there.  The only thing that I was missing was :

export JAVA_HOME

Oops.

Friday, November 21, 2008

Dashboard wouldn't start

I got a new MacBook Pro at work.  I'm completely happy about that!

Dashboard quit working.  It might not have ever worked, but I think it did.  After installing a new widget it wouldn't start.

I typed :   defaults write com.apple.dashboard mcx-disabled -boolean NO
Followed by : killall Dock

Dashboard worked fine after that.

I found the answer here.