In order to thank you for all members' support of our website, we are holding new events - Getting Free Samples by Paying Freight only.
Want to get free samples? Please check this post for more details.

problem when compiling scuba_sc_j2se project

JCOP Tool is a java card development kit developed by NXP.
Asineshjil
Posts: 13
Joined: Wed Sep 16, 2015 10:54 pm
Points :60
Contact:

problem when compiling scuba_sc_j2se project

Post by Asineshjil » Fri Mar 11, 2016 2:50 am

When I compiled scuba_sc_j2se project in eclipse, a prompt pop up:
Description Resource Path Location Type
Access restriction: The constructor 'CommandAPDU(byte[])' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 104 Java Problem
Access restriction: The method 'ATR.getBytes()' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 117 Java Problem
Access restriction: The method 'Card.disconnect(boolean)' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 159 Java Problem
Access restriction: The method 'Card.getATR()' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 116 Java Problem
Access restriction: The method 'Card.getBasicChannel()' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 75 Java Problem
Access restriction: The method 'Card.transmitControlCommand(int, byte[])' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 137 Java Problem
Access restriction: The method 'CardChannel.getCard()' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 116 Java Problem
Access restriction: The method 'CardChannel.transmit(CommandAPDU)' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 105 Java Problem
Access restriction: The method 'CardTerminal.connect(String)' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 70 Java Problem
Access restriction: The method 'CardTerminal.connect(String)' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 73 Java Problem
Access restriction: The method 'CardTerminal.getName()' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 69 Java Problem
Access restriction: The method 'CardTerminal.getName()' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 69 Java Problem
Access restriction: The method 'CardTerminal.getName()' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 824 Java Problem
Access restriction: The method 'CardTerminal.getName()' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 187 Java Problem
Access restriction: The method 'CardTerminal.isCardPresent()' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 760 Java Problem
Access restriction: The method 'CardTerminal.isCardPresent()' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 772 Java Problem
Access restriction: The method 'CardTerminal.isCardPresent()' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 158 Java Problem
Access restriction: The method 'CardTerminals.list()' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 283 Java Problem
Access restriction: The method 'CardTerminals.list()' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 589 Java Problem
Access restriction: The method 'ResponseAPDU.getBytes()' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 106 Java Problem
Access restriction: The method 'TerminalFactory.getDefault()' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 248 Java Problem
Access restriction: The method 'TerminalFactory.getType()' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 64 Java Problem
Access restriction: The method 'TerminalFactory.getType()' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 64 Java Problem
Access restriction: The method 'TerminalFactory.getType()' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 652 Java Problem
Access restriction: The method 'TerminalFactory.terminals()' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 281 Java Problem
Access restriction: The method 'TerminalFactory.terminals()' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 587 Java Problem
Access restriction: The type 'ATR' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 116 Java Problem
Access restriction: The type 'Card' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 25 Java Problem
Access restriction: The type 'Card' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 44 Java Problem
Access restriction: The type 'CardChannel' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 26 Java Problem
Access restriction: The type 'CardChannel' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 45 Java Problem
Access restriction: The type 'CardException' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 38 Java Problem
Access restriction: The type 'CardException' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 291 Java Problem
Access restriction: The type 'CardException' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 600 Java Problem
Access restriction: The type 'CardException' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 27 Java Problem
Access restriction: The type 'CardException' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 71 Java Problem
Access restriction: The type 'CardException' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 80 Java Problem
Access restriction: The type 'CardException' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 110 Java Problem
Access restriction: The type 'CardException' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 138 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 39 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 67 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 67 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 68 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 68 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 69 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 69 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 74 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 96 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 112 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 137 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 154 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 179 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 209 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 223 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 240 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 283 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 285 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 285 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 287 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 303 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 322 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 382 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 400 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 462 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 463 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 463 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 473 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 499 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 510 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 589 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 591 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 591 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 595 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 595 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 630 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 631 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 642 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 643 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 659 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 667 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardTerminalEvent.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 27 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardTerminalEvent.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 44 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardTerminalEvent.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 52 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardTerminalEvent.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 72 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 28 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 43 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 54 Java Problem
Access restriction: The type 'CardTerminal' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 173 Java Problem
Access restriction: The type 'CardTerminals' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 40 Java Problem
Access restriction: The type 'CardTerminals' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 281 Java Problem
Access restriction: The type 'CardTerminals' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 587 Java Problem
Access restriction: The type 'CommandAPDU' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 104 Java Problem
Access restriction: The type 'CommandAPDU' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 104 Java Problem
Access restriction: The type 'ResponseAPDU' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') TerminalCardService.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 105 Java Problem
Access restriction: The type 'TerminalFactory' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 41 Java Problem
Access restriction: The type 'TerminalFactory' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 62 Java Problem
Access restriction: The type 'TerminalFactory' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 62 Java Problem
Access restriction: The type 'TerminalFactory' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 63 Java Problem
Access restriction: The type 'TerminalFactory' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 63 Java Problem
Access restriction: The type 'TerminalFactory' is not API (restriction on required library 'C:\Program Files\Java\jre1.8.0_40\lib\rt.jar') CardManager.java /scuba_sc_j2se/src/main/java/net/sf/scuba/smartcards line 64 Java Problem


What happened? I can access these classes and functions w/o any problem. How can I solve this issue? Maybe I need a new version of scuba.
Java card newbie :evil:

User avatar
mabel
Posts: 233
Joined: Mon May 18, 2015 3:09 am
Points :1647
Contact:

Re: problem when compiling scuba_sc_j2se project

Post by mabel » Fri Mar 18, 2016 3:19 am

Eclipse has a mechanism called access restrictions to prevent you from accidentally using classes which Eclipse thinks are not part of the public API. Usually, Eclipse is right about that, in both senses: We usually do not want to use something which is not part of the public API. And Eclipse is usually right about what is and what isn't part of the public API.

Now, there can be situations, where you want to use non-public API. And there can be situations, where Eclipse is not really right (that's what happened to me, I just wanted to use javax.smartcardio). In that case, we get this error in Eclipse

The solution is to change the access restrictions. Go to the properties of your Java project, i.e. by selecting "Properties" from the context menu of the project in the "Package Explorer". There, go to "Java Build Path", tab "Libraries". There, expand the library entry, select "Access rules", "Edit..." and "Add..." a "Resolution: Accessible" with a corresponding rule pattern. For me that was "javax/smartcardio/**", for you it might instead be "com/apple/eawt/**".

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 1 guest

JavaCard OS : Disclaimer