error: package com.apple.eawt does not exist

Jonathan Gibbons jonathan.gibbons at oracle.com
Mon Apr 14 21:34:22 UTC 2014


This was the response from a NB expert:

> The best way I know (not really great though) is to run NetBeans with 
> this command line option:
> -J-DCachingArchiveProvider.disableCtSym=true
>
> That will disable the rt.jar->ct.sym mapping in the whole IDE, but (as 
> a consequence) will also disable enforcing of the compact profiles rules. 

-- Jon


On 04/12/2014 01:34 PM, Raymond Howie wrote:
> Thanks Jon, I just tried that and it does let it compile.  I use NetBeans so I included that in the project properties as a compiler option.  Although it does compile, NetBeans is still showing the imports as in error.  Is there any easy way to get Netbeans to do the same thing?
>
> Thanks,
> Raymond
>
> On 12 Apr 2014, at 20:06, Jonathan Gibbons <jonathan.gibbons at oracle.com> wrote:
>
>> On 04/12/2014 11:44 AM, Raymond Howie wrote:
>>> I’ve installed Java 8 from the Oracle site onto my Mac which is running 10.9.2  Any of my apps which use the Apple Java Extensions come up with this error message.
>>>
>>> I’ve had a look in rt.jar and the classes are listed in there.  I even tried building OpenJDK 8 from the source but get the same error.
>>>
>>> Any idea what is going on or how I can fix it?
>>>
>>> Raymond Howie
>>>
>> By default, javac does not read classes from rt.jar. It reads then from a separate symbol file, which only contains standard API.
>>
>> You might try disabling the mechanism with unsupported javac option -XDignore.symbol.file=true and see if that fixes your issues.
>>
>> -- Jon
>>
>>



More information about the macosx-port-dev mailing list