Forums | MacLife

You are not logged in.

#1 2008-06-13 12:18 pm

Mainwar
Yankee
From: Chipping Sodbury, UK.
Registered: 2003-09-23
Posts: 679
Website

XCode Java 1.6

Hi,

I thought I'd see if I could resurrect my limited Java skills last night using XCode - I never used Xcode to any great length, so it's still a little odd to me. The first problem I came across was the 64 bit JVM problem, which I duly installed on my Mac Mini (10.5.3 Intel 64 bit). After editing the plist file for the little app (well, class then) I was making, I eventually cleared some of the weird error messages.

What I get now in the console is this:

Code:

[JavaAppLauncher] A 64-bit JVM is available for 1.6.0
[JavaAppLauncher] and it is the only version available
[JavaAppLauncher] Application wants to use 64-bit JVM

...which all looks sort of happy to me? Also, if I check the "About" section of the app, it states that it is running on JVM 1.6.0_05, which all seems happy enough.

BUT - the app isn't working - it won't even print out the initial test message I put in there. Now, I realise this is most likely due to some serious rust in my code, but what is odd is this:

[1] The app builds and "runs" with no problems whatsoever, other than the messages in the console. However, even if I deliberately add a mistake into the source, XCode claims the build has succeeded with no errors - I can leave off a closing brace, for example, and it seems perfectly happy.

[2] I bit the bullet and downloaded Eclipse, copied the class into it, and it spotted the errors. Also, when I compiled and ran it in Eclipse, it at least got to printing out my test message before throwing an exception (definitely a result of rust in my code).

Does anyone have any idea what the problem might be here? I"d really like to get into XCode if at all possible, but I remember the complications being one of the reasons I didn't go into it in any great detail before.

Could any answers be made in idiot speak please - very limited skills here wink


When in doubt, ask yourself, WWJD - What Would Jehannum Do?

Offline

 

#2 2008-06-17 4:38 pm

Antonio
Now with more cowbell!
From: San Francisco, CA
Registered: 2007-01-16
Posts: 520

Re: XCode Java 1.6

What sort of application are you building?
I wish I could help you out more, but I've never used XCode for Java. I typically use Smultron, then build in the Terminal with Ant.
I've never encountered a problem like this before.


“The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents.”
--HP Lovecraft, The Call Of Cthulhu

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson