[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: apparently JIGS not working
From: |
Richard Frith-Macdonald |
Subject: |
Re: apparently JIGS not working |
Date: |
Wed, 07 Sep 2016 06:41:12 +0100 |
> On 7 Sep 2016, at 05:45, brunomaximom@openmailbox.org wrote:
>
> Hi people,
> Apparently JIGS is not working with OpenJDK 8, look:
>
> My code:
>
> import gnu.gnustep.base.*;
>
> class test
> {
> public static void main (String[] args)
> throws Throwable
> {
> NSString str;
>
> str = "bla";
> System.out.println (str);
> }
> }
>
> The error message:
>
> test.java:8: error: cannot find symbol
> NSString str;
> ^
> symbol: class NSString
> location: class test
> 1 error
>
>
> Any idea? Thanks.
I don't use OpenJGK, but your problem has nothing to do with the version of
Java being used anyway ...
In java, the string handling class is called 'String', not 'NSString'. That is
to say, the String class in the Java world maps to the NSString class in the
ObjC world (in a similar way that a Java integer maps to an ObjC integer).
You could try looking at the stuff in the Examples directory and reading the
documentation files in the package (or reading Apple's documentation/tutorials
if they are still available on the web).