Feeds:
Posts
Comments

Archive for the ‘Java’ Category

Mac OS X Lion doesn’t include a Java runtime environment on the default installation.
However Apple has immediately released Java as a separate download.

The first package of Java for Lion can be found on the following link: http://support.apple.com/kb/DL1421

The download size is 62.53MB and installs Java SE version 1.6.0_26.

Advertisements

Read Full Post »

Java for Mac OS X 10.6 Update 5 delivers improved compatibility, security, and reliability by updating Java SE 6 to 1.6.0_26. Please quit any web browsers and Java applications before installing this update.

See http://support.apple.com/kb/HT4593 for more details about this update.
See http://support.apple.com/kb/HT1222 for information about the security content of this update.

Read Full Post »

Java for Mac OS X 10.6 Update 2 delivers improved compatibility, security, and reliability by updating Java SE 6 to 1.6.0_20.

Please quit any web browsers and Java applications before installing this update.

For more details on this update, please visit this website: http://support.apple.com/kb/HT4141

For information on the security content of this update, please visit this website: http://support.apple.com/kb/HT1222

Update via the “Software Update…” on your Mac!

Read Full Post »

Eclipse is an excellent IDE, however some of its preferences may not be that straight-forward.

On one of my recent Java projects I had to work with a character encoding other than the default ANSI encoding.
Thus, I managed to set up the database connection properly to use the required UTF-8 encoding, as well as handle the returned data correctly as UTF-8 in the Java code.
When I tried to output some of the data, for logging purposes, in the console, the output couldn’t not be read correctly. The first thought was to double-check the source code, connection properties etc, and despite the fact that everything looked just fine, the console output still was unreadable.

After spending some time trying to find a relevant option in Eclipse, I stumbled upon the “Common” tab in the Configurations panel. And indeed this is where I found the answer to the encoding problem!

Here is what you have got to do if you are having a similar issue:

(Current setup is Eclipse Galileo – 3.5 on Mac OS X Snow Leopard)

Go to Run -> Run Configurations…


Create or select an existing configuration for your project, and switch to the “Common” tab.


Choose you preferred Console Encoding as shown on the image above!

Read Full Post »

Recently I had to setup a Java app on my Mac, which was running from the Terminal, and needed the JAVA_HOME variable set.

Here’s what had to be done:

– Start the Terminal app.
– Create/Edit ~/.bash_profile file.
Note: I first tried creating and using the ~/.bashrc file, but that didn’t work (Mac OS 10.6.2), while ~/.bash_profile worked as expected.

Therefore,

$ vi ~/.bash_profile

… and paste the following (make it a single line):

export JAVA_HOME=/System/Library/Frameworks/
JavaVM.framework/Versions/CurrentJDK/Home

… save and exit vi.

Restart Terminal app just to be sure that it worked, and try accessing it by typing:

$ echo $JAVA_HOME

If you see the correct JAVA path, then it is all done!

Read Full Post »

Java for Mac OS X 10.6 Update 1 delivers improved compatibility, security, and reliability by updating Java SE 6 to 1.6.0_17.

Please quit and relaunch any web browsers and Java applications after installing this update.

For more details on this update, please visit this website: http://support.apple.com/kb/HT3892

For information on the security content of this update, please visit this website: http://support.apple.com/kb/HT1222

Read Full Post »

This release is Windows 7 support-ready and includes support for Internet Explorer 8, Windows Server 2008 SP2, and Windows Vista SP2. New features include the G1 garbage collector, plus performance and security enhancements.

Release Notes
Download

Read Full Post »

Older Posts »