.java

2 claimants 2 primary 0 secondary shared primary (2)

SWH popularity

Distinct files in the full Software Heritage archive (2026-06-04 export), dated by first appearance, following Desmazières, Di Cosmo, Lorentz (MSR 2025). Case-aggregated. citation.

1.3B
total files
502.6M
first seen 2021–2025 (38.6%)
2019
median year (half its files since)

Case variants in archive: .java (1.3B), .Java (25.4K), .JAVA (11.3K), .jaVA (15), .jAVA (14), .javA (9), .JAva (4), .JaVA (4), .JAVa (2), .jAva (2), .JavA (1) — aggregated above.

Attribution status

This extension is attributed to java; Java (programming language) as primary by 4 authoritative claims.

Authoritative sources: ✓ Linguist ✓ Pygments ✓ Wikidata · Q251 ✗ Wikipedia · no claim

Disagree or have a correction? Open a labelling issue.

Claimants (4)

Languages that list .java among their extensions. Strength reflects whether the upstream source treated it as their primary extension.
LanguageSourceStrength
javalinguistprimary
javapygmentsprimary
javawikidataprimary
Java (programming language)pygmentsprimary

Wikidata says… (1)

File formats, image formats, audio codecs and other non-PL entities that claim .java on Wikidata (property P1195) or in the Wikipedia infobox. Source: data/derived/external_extension_index.csv. Click Use as new PL on any row to open the Add-PL form pre-filled with that entry's name, Wikipedia/Wikidata URL, and this extension — one submission creates the PL + claim.
Right entry isn't listed? Add manually ↗
FormatClass (Wikidata P31)Suggested labelMIMENotesAction
Java language source code file Q49243071
file format
file format—text/x-java—Use as new PL ↗

SWH-mined examples (2)

Real archived programs with this extension, byte-verified against the SWH archive, grouped by predicted language and by how the prediction was made. Useful for deciding what this extension actually is when the attribution is uncertain.
java (2) — 2 via unique-primary
VipissyCom.java · 10778 B · seen 16097× in SWH
predicted: java via unique-primary
swh:1:cnt:473f8539a6d4f4cbdacc281194df2d02caab06d0;origin=https://github.com/substanc3-dev/jdownloader2;anchor=swh:1:rev:ce70b66913b19ba109cdbfdb0c73604cdb0efe50;path=/src/jd/plugins/hoster/VipissyCom.java
Open in SWH · Raw bytes
GloriaTv.java · 13420 B · seen 13379× in SWH
predicted: java via unique-primary
swh:1:cnt:5bc38b0b6e4e70f445b5319768bc07a00fb75875;origin=https://github.com/substanc3-dev/jdownloader2;anchor=swh:1:rev:ce70b66913b19ba109cdbfdb0c73604cdb0efe50;path=/src/jd/plugins/hoster/GloriaTv.java
Open in SWH · Raw bytes
Request more SWH-mined examples
If the examples above don't disambiguate what .java is, request a fresh mining run.
(or open the pre-filled issue directly)