Link to home
Start Free TrialLog in
Avatar of krakatoa
krakatoaFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Suppress runtime WARNINGs.

What's the way to get :

--illegal-access=<value>

Open in new window

(with 'value' in this case of "permit" )

into the runtime execution - (on the command line, as well as from a .jar file), - of a programme, please guys ?
 
The attempts I've made to use this to mute the WARNINGS that come back haven't worked and still get output to the console. Is there perhaps even another way to suppress runtime warnings ? Thanks again.
Avatar of David Favor
David Favor
Flag of United States of America image

Provide the exact warning you see.

Cut + Paste as text, not as image.

Likely someone can assist.
Avatar of krakatoa

ASKER

C:\EE_Q_CODE>java WindowsRegistry2
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by WindowsRegistry2 (file:/C:/EE_Q_CODE/) to
method java.util.prefs.WindowsPreferences.WindowsRegOpenKey(long,byte[],int)
WARNING: Please consider reporting this to the maintainers of WindowsRegistry2
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflect
ive access operations
WARNING: All illegal access operations will be denied in a future release
    >>USBSTOR\Disk&Ven_SanDisk&Prod_Cruzer_Blade&Rev_1.26\4C530203030206111132&0
<<

Open in new window

your program is called windowsregistry2
and you are WindowsPreferences.WindowsRegOpenKey(long,byte[],int)
so why is it accessing The Sandisk Cruzer USB Drive?
ASKER CERTIFIED SOLUTION
Avatar of krakatoa
krakatoa
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial