Click here to Skip to main content
15,797,672 members
Home / Discussions / Objective-C and Swift
   

Objective-C and Swift

 
QuestionStart java program from Objective C code Pin
DraqueD5-Jan-15 9:42
DraqueD5-Jan-15 9:42 
AnswerRe: Start java program from Objective C code Pin
jschell5-Jan-15 10:37
jschell5-Jan-15 10:37 
GeneralRe: Start java program from Objective C code Pin
DraqueD5-Jan-15 10:52
DraqueD5-Jan-15 10:52 
AnswerRe: Start java program from Objective C code Pin
Richard MacCutchan5-Jan-15 23:39
mveRichard MacCutchan5-Jan-15 23:39 
GeneralRe: Start java program from Objective C code Pin
DraqueD6-Jan-15 6:04
DraqueD6-Jan-15 6:04 
GeneralRe: Start java program from Objective C code Pin
Richard MacCutchan6-Jan-15 6:29
mveRichard MacCutchan6-Jan-15 6:29 
GeneralRe: Start java program from Objective C code Pin
DraqueD6-Jan-15 6:43
DraqueD6-Jan-15 6:43 
GeneralRe: Start java program from Objective C code Pin
Richard MacCutchan6-Jan-15 7:29
mveRichard MacCutchan6-Jan-15 7:29 
DraqueD wrote:
I can run "java -jar PolyGlot <FILENAME>" from the console, and it runs fine.
And I think those are the fields that you need in your arguments array. The last parameter you specify should be argv[1] as a string (%s), not a character (%c), as that is the filename passed in to your program. Something like:
Objective-C
task.launchPath = @"/usr/bin/java";
task.arguments = @[task.launchPath, @"-jar", [currentpath stringByAppendingString:@"/PolyGlot.jar"], [NSString stringWithFormat:@"%s", argv[1]]];

GeneralRe: Start java program from Objective C code Pin
DraqueD6-Jan-15 10:29
DraqueD6-Jan-15 10:29 
AnswerRe: Start java program from Objective C code Pin
seemajoshii27-Feb-15 2:22
seemajoshii27-Feb-15 2:22 
QuestionHow do I find Objective C developers? Pin
Waffleapp13-Dec-14 8:13
Waffleapp13-Dec-14 8:13 
QuestionIn objective-c I’m try to create a statement that toggles a variable Pin
Member 1125124020-Nov-14 12:02
Member 1125124020-Nov-14 12:02 
AnswerRe: In objective-c I’m try to create a statement that toggles a variable Pin
Richard MacCutchan20-Nov-14 22:56
mveRichard MacCutchan20-Nov-14 22:56 
QuestionDifference between C and Objective-C Pin
online visit9-Jun-14 20:32
online visit9-Jun-14 20:32 
AnswerRe: Difference between C and Objective-C Pin
future20159-Jun-14 21:57
future20159-Jun-14 21:57 
GeneralRe: Difference between C and Objective-C Pin
online visit9-Jun-14 22:31
online visit9-Jun-14 22:31 
AnswerRe: Difference between C and Objective-C Pin
Richard MacCutchan9-Jun-14 22:00
mveRichard MacCutchan9-Jun-14 22:00 
GeneralRe: Difference between C and Objective-C Pin
thatraja10-Jun-14 22:11
professionalthatraja10-Jun-14 22:11 
GeneralRe: Difference between C and Objective-C Pin
Richard MacCutchan10-Jun-14 22:28
mveRichard MacCutchan10-Jun-14 22:28 
GeneralRe: Difference between C and Objective-C Pin
thatraja10-Jun-14 22:42
professionalthatraja10-Jun-14 22:42 
GeneralRe: Difference between C and Objective-C Pin
Dennis E White11-Jun-14 5:24
professionalDennis E White11-Jun-14 5:24 
GeneralRe: Difference between C and Objective-C Pin
Richard MacCutchan11-Jun-14 6:53
mveRichard MacCutchan11-Jun-14 6:53 
AnswerRe: Difference between C and Objective-C Pin
Dennis E White11-Jun-14 5:22
professionalDennis E White11-Jun-14 5:22 
GeneralRe: Difference between C and Objective-C Pin
Manikandan1011-Jun-14 18:31
professionalManikandan1011-Jun-14 18:31 
QuestionUIWebView Scroll delegate Pin
Erdinc2720-May-14 23:17
Erdinc2720-May-14 23:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.