X code 3.2

Joined
Feb 29, 2012
Messages
14
Reaction score
0
Points
1
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
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
Moved to the development forum.

Change the first line to "java.util" (it says java.until right now).
 
OP
O
Joined
Feb 29, 2012
Messages
14
Reaction score
0
Points
1
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.
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
Evidently build.xml doesn't exist. How are you building this? Are you trying to use ANT?
 
OP
O
Joined
Feb 29, 2012
Messages
14
Reaction score
0
Points
1
So my question is this

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

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
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.
 
OP
O
Joined
Feb 29, 2012
Messages
14
Reaction score
0
Points
1
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.
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
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.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top