---
title: Java resource bundle
slug: java-resource-bundle
qid: 
snapshot: enwiki-001305064720
content_hash: 
license: CC BY-SA 4.0
source: https://en.wikipedia.org/w/index.php?oldid=1305064720
tags: [23144475, 23603337, 26220375]
---

# Java resource bundle

> [!note] Provenance
> Snapshot `enwiki-001305064720` · content root `…`
> Derived from <https://en.wikipedia.org/w/index.php?oldid=1305064720> · Licensed CC BY-SA 4.0

A resource bundle is a Java .properties file that contains locale-specific data. It is a way of internationalising a Java application by making the code locale-independent.

A resource bundle is a Java .properties file that contains locale-specific data. It is a way of internationalising a Java application by making the code locale-independent. The Message Compiler is a tool to generate resource bundle files from a single source file containing localized text definitions in different languages. The Message Compiler creates also constant definitions for the keys used to access the localized texts with the methods of the Java class ResourceBundle (6), ResourceBundle (7) and HTML documentation pages for each language.
