I’m trying to cross-compile a simple java example for ARMv7 target from command line.
What javac options I need to add for cross-compiling?
This is a standard javac command to compile on host machine:
javac -d bin -sourcepath src src/TextPanel.java
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
javaccompiles your code to bytecode which can then be run on a JVM. The bytecode itself is cross-platform: Only the JVM (which interprets that bytecode) is platform dependent. What you need is a JVM that runs on the ARMv7 target.