---
title: "Why cannot you run standard Java bytecode on Android?"  
description: "Why cannot you run standard Java bytecode on Android?"  
author: "Hemant Patel"  
published: 2018-01-09  
canonical: https://answers.mindstick.com/qa/32728/why-cannot-you-run-standard-java-bytecode-on-android  
category: "technology"  
tags: ["android"]  
reading_time: 1 minute  

---

# Why cannot you run standard Java bytecode on Android?

Why [cannot you run standard](https://www.mindstick.com/interview/2560/why-cannot-you-run-standard-java-bytecode-on-android) [Java](https://www.mindstick.com/articles/1702/introduction-to-java) bytecode on [Android](https://www.mindstick.com/articles/1672/android-internals)?

## Answers

### Answer by Prateek sharma

you cannot run Java **bytecode** on android because android works on **DVM** (Dalvik Virtual Machine ) whereas for java bytecode you will need **JVM** (Java Virtual Machine).

since in Java **.java** file is compiled by java compiler into class file whereas in android. the class file is compiled into **.dex** file by the DVM and then that file is converted into**.apk** file (Android application package).


---

Original Source: https://answers.mindstick.com/qa/32728/why-cannot-you-run-standard-java-bytecode-on-android

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
