Why cannot you run standard Java bytecode on Android?

  • 0 replies
  • 38 views
*

Offline mechanic

  • *****
  • 2473
    • View Profile
    • Engineering Forum
Why cannot you run standard Java bytecode on Android?
« on: April 24, 2018, 01:10:32 PM »
Question: Why cannot you run standard Java bytecode on Android?

Answer:
Android uses Dalvik Virtual Machine (DVM) which requires a special bytecode. We need to convert Java class files into Dalvik Executable files using an Android tool called "dx". In normal circumstances, developers will not be using this tool directly and build tools will care for the generation of DVM compatible files.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
type: "engrz" without quotes: