using JavaArgs from JavaLauncher throws error
Gary Adams
gary.adams at oracle.com
Wed Mar 9 16:12:24 UTC 2016
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
>
More information about the mobile-dev
mailing list