using JavaArgs from JavaLauncher throws error

Grigory Ptashko grigory.ptashko at gmail.com
Wed Mar 9 19:29:45 UTC 2016


I see.
So how exactly should I initialize the JavaArgs when I bundle
the JavaLauncherArgs.properties file inside my app?

with -init or with -initWithProperties: ?

> On 9 марта 2016 г., at 19:12, Gary Adams <gary.adams at oracle.com> wrote:
> 
> There's an old RFE about using JavaArgs without a properties file.
> 
> You should be OK with just
>   JavaArgs * javaArgs = [JavaArgs alloc] ;
> 
> if you intend to populate it directly.
> 
> On 03/09/16 10:02, Grigory Ptashko wrote:
>> Hello.
>> 
>> I’m starting to use openjdk9 on ios.
>> I’ve managed to compile it for use on a simulator.
>> 
>> My goal is to create an empty JavaArgs object.
>> I did not create JavaLauncherArgs.properties file.
>> 
>> So I’m doing just this:
>> 
>> _javaArgs = [[JavaArgs alloc] init];
>> 
>> And I get the following error thrown:
>> 
>> -[NSPathStore2 pathForResource:ofType:]: unrecognized selector sent to instance 0x7a643040
>> 
>> I debugged and saw that the exception occurs in the JavaArgs.m here:
>> 
>>       propfile = [[JavaArgs documentsDirectory]
>> 		   pathForResource:propertiesfile ofType:@"properties”];
>> 
>> In my source tree it is line 592.
>> 
>> Am I doing something wrong?
>> Maybe I’m using the JavaArgs in the wrong way?
>> 
>> Thank you.
>> 
>> --
>> Best regards,
>> Grigory Ptashko
>> 
>> +7 (916) 1489766
>> grigory.ptashko at gmail.com
>> facebook.com/GrigoryPtashko
>> 
> 


--
Best regards,
Grigory Ptashko

+7 (916) 1489766
grigory.ptashko at gmail.com
facebook.com/GrigoryPtashko



More information about the mobile-dev mailing list