---
title: "HOW WE TELL PROGRAMMATICALLY IF I'M RUNNING IN 64-BIT JVM OR 32-BIT JVM"  
description: "HOW WE TELL PROGRAMMATICALLY IF I'M RUNNING IN 64-BIT JVM OR 32-BIT JVM"  
author: "Anonymous User"  
published: 2015-08-11  
updated: 2015-08-12  
canonical: https://www.mindstick.com/forum/33411/how-we-tell-programmatically-if-i-m-running-in-64-bit-jvm-or-32-bit-jvm  
category: "java"  
tags: ["java", "javac"]  
reading_time: 1 minute  

---

# HOW WE TELL PROGRAMMATICALLY IF I'M RUNNING IN 64-BIT JVM OR 32-BIT JVM

How can I tell if the [JVM](https://www.mindstick.com/articles/12071/anatomy-of-java-virtual-machine-jvm) my [application](https://www.mindstick.com/articles/12824/calculator-application-in-android) [runs](https://answers.mindstick.com/qa/48615/when-was-the-runs-in-ruins-written) in is 32 [bit](https://www.mindstick.com/forum/158148/kamagra-jelly-bit-lost-erection-problem-with) or 64-bit? Specifically, what [function](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) or preference do I [access](https://www.mindstick.com/articles/12994/how-foreigners-can-access-blocked-websites-in-china) to [detect](https://www.mindstick.com/forum/1906/detect-when-cd-drive-was-closed) this within the [program](https://www.mindstick.com/blog/12337/scaling-up-your-mentorship-program)?

## Replies

### Reply by Anonymous User

Sun has a Java System property to determine the bitness of the JVM: 32 or 64:\

```
sun.arch.data.model=32 // 32 bit JVMsun.arch.data.model=64 // 64 bit JVM
```

You can use\

```
System.getProperty("sun.arch.data.model") 
```

to determine if its 32/64 from the program.


---

Original Source: https://www.mindstick.com/forum/33411/how-we-tell-programmatically-if-i-m-running-in-64-bit-jvm-or-32-bit-jvm

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
