I want to start developing an embedded application in the near future using Java and Eclipse IDE (On a desktop computer), the problem is that, I know regular Java application will work on Raspberry because Java is cross-platform, but wouldn't using an API which accesses the device peripherals(GPIO, SPI,..) make problems when running application on the raspberry? I know Pi4J would be okay to use in this scenario, but what about other APIs for this purpose? like Device I/O which is part of the openJDK project.
Sorry I want to make sure before starting to code to prevent troubles.