क्या ऐसा करना संभव है?
हाँ यह संभव है।
1) File > New > New Project > Other > External Build System
2) Give it some name and save it somewhere.
3) File > New > New File > Other > Empty
4) Give it a Java-friendly name. In my example, use "HelloWorld.java"
5) Copy the contents below into the file and save.
6) File > New > New File > Other > Empty
7) Save as "Makefile".
8) Copy the contents below into the file and save.
9) The "Run" (>) button should at least compile your Java now.
अब यह मुश्किल हो जाता है। आपको अगले भाग को करने की ज़रूरत नहीं है। आप अपनी प्रोजेक्ट निर्देशिका में टर्मिनल खोल सकते हैं और यदि आप चाहें तो "जावा हैलोवर्ल्ड" चला सकते हैं। मैं दृढ़ता से सुझाव देता हूं कि। आप बस "मेक" टाइप कर सकते हैं और एक टेक्स्ट एडिटर के रूप में पूरी तरह एक्सकोड का उपयोग कर सकते हैं।
9) Project > Edit Scheme > Debug > Info
10) Executable > Other > type ^⌘g > type "/bin" > choose "sh"
11) Arguments
12) Set "Base Expansion on" whatever you named your target
13) Add an argument '-c "/usr/bin/java -classpath $(PROJECT_DIR) HelloWorld"' for this example.
14) Cross your fingers
15) Click the "Run" (>) button.
Apple Support Community
से एक उद्धरण
स्रोत
2013-04-11 10:16:38