Archive for September, 2005
Java 5 Setup on OS X [update]
I promised to write an article ’bout getting Java 5 to work on Mac OS X. I needed this in preparation for my programming courses at university. So, first of all I found out that Java 5 is actually not 5.0 but 1.5, confusing, he?
So to begin with, you need OS X Tiger, it is reported to work work on Panther, too, but that requires a little configuration of the installer package with Pacifist. Let’s move, time is money… hehe. First of all you need to download Java 5 Beta from the Apple website. Follow the installer:
Now you go to /Applications/Utilities/Java/J2SE 5.0 in Finder and start Java Preferences. From within there you make some necessary changes. Change “Use version:” to J2SE 5.0 and at runtime settings drag J2SE 5.0 to be above J2SE 1.4.2. That’s it. Click Save at the bottom of the window and quit.
You’re ready to use Java 1.5 on your Mac, but wait, where is the compiler? Well, I can tell you, it resides in /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/javac. Nice, is’nt it? If you want to work with XCode you can change the compiler – as well as the executable path for every project to match Java 5 Binarys.
I found this annoying and decided to take a XCode template and set it up to use Java 1.5. It’s pretty simple! Just get an existing Java Template from /Library/Application Support/Apple/Developer Tools/Project Templates/Java. I took the Java Tool folder and copied it over to my Desktop. Now i opened it in XCode and let XCode update it.
Following this article from Apple you change the following:
Update: There is a problem with the new template, indeed it seems that XCode 2.1 does not update the -jar argument (projectnameasidentifier).jar. Yaw Anokwa commented on this and was able to create an XCode template which fixes this issue. You can download it from here. Follow the instructions.txt in the archive.
Thanks to Yaw Anokwa for pointing this out.
Target Settings:
Double click the target to edit and provide /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/javac as the value for the JAVA_COMPILER build setting. Change the Target VM Version and Source Version in the Java Compiler Setting to use 1.5.
(To do this select ‘Default’ to show configuration at the top left of the window. Then select Expert View, then Java Compiler Settings.)Executable Settings:
Double click the executable named java and enter /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/java as the Executable Path in the General tab of Executable info.
![]()
Now you are almost finished. To have a better sorting in the Templates window of XCode i created a new folder in the Project Templates Directory named ‘Java 5′. Now i again copy the new template from my Desktop over to the Java 5 folder.
Now you create a new project in XCode you will find our Java 5 Tool template. You can do that with all the other Java templates if you want.
‘Back to Life’ – or: study, new directions and life changes
Posted by cordney* in development, life, Q, study on September 24, 2005
Some of you readers and QemuX users may have wondered about the fact that nothing happened in the past few month… I want to tell you why:
I’ve been working at a German parcel service for a few hours daily to earn some money and you know, I also got a bit lazy. The thing is that I had to arrange my own life, I needed the time. I also thought about the future of QemuX in consideration to new circumstances: Apple’s Intel switch, perspectives for QemuX regarding my programming skills, competition with other apps, other projects I wanted to participate in… Now I settled down here where I am now, taking new steps in life, I can make some things clearer.
Life: Finishing my Abitur in 2003 I knew that I wanted to study at university. Directions were unclear for a long time, social work was considered, computer stuff, helping third world… You know, there is a time in life for a young man, where one asks himself: “Well, what is my task, what is my destiny in this system?” – And I don’t mean system stands for capitalism, society, social state, I think of destiny in a greater system, in a bigger context… man, it’s hard to describe.
Well, one would think helping the third world as a development aid worker would be the, let’s say ,’best’. My opinion about this changed in the last 2 years – I have another plan, but that’s secret… You will see. Something in society has to change, we have to built up a fair world, that’s not the way we can go on. We all should have learned from the past 2000 years and more… but we didn’t. Unfortunately. But things will change, for sure…
From October on I will study IT-Security at Ruhr-University Bochum. I think this can take me to a new direction- it’s interesting, powerful, responsible. Of course it’s a 600 kilometres move away from home, my first own flat, living alone… Thank god I have a family that supports me, my mom, my lil sis, my brother, my lovely grandparents…
Now I already live here in Bochum for about two weeks and I feel pretty comfortable! I visit a mathematics preparation course now from monday til’ friday and it’s quite cool, despite the fact that I feel a little lost, cause the topics are really hard.
In preparation to my courses and lectures I already bought some books: “Basics of electrical engineering” and “Java 5: First steps in programming”, in German, of course. Setting up Java 5 (which is not 5.0 but 1.5, crazy, he?) on OS X will be covered in another article later.
I hope you are now up-to-date and will read on here in my blog. I promise that I will from now on post a few more articles here.
So far, yours, cordney*





