New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

X code 3.2


Post Reply New Thread Subscribe

 
Thread Tools
outlawg13

 
Member Since: Feb 29, 2012
Posts: 14
outlawg13 is on a distinguished road

outlawg13 is offline
I have Java Version for X code 3.2. I opened the file go to organizer then click on the + symbol did the file helloworld.java and now it gave me this error!

[javac] Compiling 4 source files to /Users/nari/Documents/Hello_world/HelloWorld/bin


[javac] /Users/nari/Documents/Hello_world/HelloWorld/src/HelloWorld.java:1: package java.until does not exist


[javac] import java.until.*;


[javac] ^


[javac] 1 error


BUILD FAILED


/Users/nari/Documents/Hello_world/HelloWorld/build.xml:40: Compile failed; see the compiler error output for details.


Total time: 3 seconds


Command /var/folders/MM/MM86yNIHEHy9wTLlU0Xc1k+++TI/-Tmp-/4D50449A1591504900C53766 failed with exit code 1
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,656
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is online now
Moved to the development forum.

Change the first line to "java.util" (it says java.until right now).

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Personal Twitter
QUOTE Thanks
outlawg13

 
Member Since: Feb 29, 2012
Posts: 14
outlawg13 is on a distinguished road

outlawg13 is offline
fixed and now
[Session started at 2012-06-19 17:38:08 -0700.]
Buildfile: build.xml does not exist!
Build failed

The Debugger has exited with status 1.The Debugger has exited with status 1.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,656
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is online now
Evidently build.xml doesn't exist. How are you building this? Are you trying to use ANT?

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Personal Twitter
QUOTE Thanks
outlawg13

 
Member Since: Feb 29, 2012
Posts: 14
outlawg13 is on a distinguished road

outlawg13 is offline
So my question is this

How can I create the Java file in Xcode? I wanted the "HelloWorld" to be outputed into the
QUOTE Thanks
outlawg13

 
Member Since: Feb 29, 2012
Posts: 14
outlawg13 is on a distinguished road

outlawg13 is offline
oops Outputed into the Console...
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,656
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is online now
As I asked before, are you trying to build this with ANT? ANT requires a build.xml file which Xcode seems to be complaining about.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Personal Twitter
QUOTE Thanks
outlawg13

 
Member Since: Feb 29, 2012
Posts: 14
outlawg13 is on a distinguished road

outlawg13 is offline
Quote:
Originally Posted by vansmith View Post
As I asked before, are you trying to build this with ANT? ANT requires a build.xml file which Xcode seems to be complaining about.
No I am not on that level yet. I want to start a java file on X code and do a simple hello world before I do my other programming homework.
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 17,656
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is online now
Xcode isn't really designed to do Java (not anymore at least) - it's truly designed to do Objective-C/C/C++ programming for OS X and iOS. However, if you decide to stick with it, you can take a look here. Otherwise, you might want to consider migrating to a more Java friendly IDE like Eclipse or Netbeans.

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Personal Twitter
QUOTE Thanks

Post Reply New Thread Subscribe


« Xcode 4: Add Build Carbon Resources Build Phase | Wait in applescript. »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Finder won't start laurag OS X - Operating System 5 04-13-2012 05:46 PM
How do I add a tracking code to my iWeb page? Rikki Web Design and Hosting 6 10-08-2010 09:54 PM
Malicious code .... how much of a risk taker are you ? McBie Schweb's Lounge 4 12-13-2008 12:52 PM

All times are GMT -4. The time now is 09:49 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?