Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / January 2006



Tip: Looking for answers? Try searching our database.

How to import Java packages into XCode projects

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lars A. Gundersen - 31 Jan 2006 15:27 GMT
Trying to take first fumbling steps with Java, and has only used Xcode
for Applescript before.... Can someone explain just where I must place
the files of a package I want to import into a Xcode Java project, so
that the statement in the .java sourcefile:
import ThisJavaPackage.*;
does not trip up the compiler with a "doesn't exist" error? have tried
many different places, including what I thought to be the most likely
candidate; /Library/Java/Extensions/ without any luck. Hope someone can
help a Xcode-Java beginner.

Lars
Signature

Lars A. Gundersen
Multimedia Designer
http://www.larsagundersen.no/ +4791644610

Patrick Machielse - 31 Jan 2006 18:52 GMT
> Trying to take first fumbling steps with Java, and has only used Xcode
> for Applescript before.... Can someone explain just where I must place
[quoted text clipped - 5 lines]
> candidate; /Library/Java/Extensions/ without any luck. Hope someone can
> help a Xcode-Java beginner.

You can specify the path to your library with the javac -classpath
option. To do this, double-click on your target and look under 'Java
Compiler Settings' -> 'Other Java Compiler Flags'.

Just adding the lib to the root folder of your project might work too.

patrick
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.