The largest Java repositories by lines of code

OctoCounts has measured 460 public GitHub repositories whose primary programming language is Java. googleapis/google-cloud-java is the largest, with 35,431,956 code lines across 82,781 files, counted with tokei on November 24, 2026. The table ranks the 50 largest by code lines; each row links to a report pinned to the commit it counted.

RankRepositoryCode linesTotal linesFilesJava share
1googleapis/google-cloud-java35,431,95665,170,56682,78193.3%
2chenxing890/HeavenMS-master16,483,79516,641,60526,1330.7%
3maplestoryDwang/dwang-maplestory-05311,657,71511,856,18113,2681.1%
4JetBrains/intellij-community10,940,43114,675,543182,25040.4%
5liferay/liferay-portal9,997,30314,965,02375,42576.3%
6AkaChou/AionEmu6,315,3486,594,4016,7806.6%
7openjdk/jdk5,727,3019,098,56622,59539.0%
8adempiere/adempiere5,701,6157,084,49511,93115.4%
9microsoft/openjdk-jdk25u5,626,4048,952,24322,60839.2%
10crdroidandroid/android_frameworks_base5,463,6958,442,43737,58360.0%
11Evolution-X/frameworks_base5,462,9118,441,34837,58160.0%
12apache/netbeans4,913,9967,306,55935,49984.0%
13aosp-mirror/platform_frameworks_base4,860,2797,528,72332,77462.1%
14risin42/NagramX4,212,2565,533,69014,44136.0%
15exteraless/exteraless3,951,2055,043,59412,53039.8%
16metasfresh/metasfresh3,505,8896,582,97238,12256.2%
17apache/hadoop3,466,8274,403,50210,93130.3%
18elastic/elasticsearch3,368,9784,688,27823,25191.5%
19apache/incubator-kie3,327,6404,259,48215,20824.7%
20Ettacent/NimarkoGram2,903,6183,598,78210,52057.2%
21aws/aws-sdk-java-v22,902,1723,126,8355,5108.2%
22exteraSquad/exteraGram2,790,2613,506,27710,08555.5%
23prsdrty-unofficial/exteraOSS2,643,8683,319,2559,07155.9%
24arsLan4k1390/Cherrygram2,635,6493,319,5499,22555.7%
25TelegramMessenger/Telegram-Android2,556,4363,227,7448,58355.8%
26NationalSecurityAgency/ghidra2,168,3363,350,38216,24582.4%
27JetBrains/MPS2,122,6652,553,12427,32695.8%
28apache/doris1,825,1793,043,40511,98744.8%
29apache/camel1,760,4552,445,96912,28269.1%
30thingsboard/thingsboard1,592,5261,785,05412,14324.1%
31mlflow/mlflow1,498,6691,838,2295,36024.5%
32apache/geode1,340,2291,987,2168,09886.6%
33apache/beam1,288,2791,893,6689,81641.3%
34opensearch-project/OpenSearch1,210,0571,980,38910,67491.7%
35apache/flink1,165,8211,818,17511,36481.3%
36mycodedoesnotcompile2/jdownloader_mirror1,093,4841,519,3208,03094.0%
37questdb/questdb1,045,1611,461,5554,73381.4%
38quarkusio/quarkus977,1521,315,04015,72276.0%
39elizaOS/eliza967,6261,090,8721,9206.7%
40I2PPlus/i2pplus963,9441,596,6454,16240.2%
41apache/hive947,3491,442,2997,09286.2%
42appdevforall/CodeOnTheGo908,0711,524,8166,87355.8%
43apache/druid876,1271,233,0927,25676.8%
44neo4j/neo4j873,3171,442,9558,34166.5%
45apache/ofbiz-framework868,6361,055,0784,35427.5%
46WitherAce/Pleasure-Horizons855,518859,7983001.6%
47floci-io/floci826,4191,037,7333,90784.6%
48hibernate/hibernate-orm823,5041,120,8698,55198.0%
49Evolveum/midpoint820,6652,394,9558,26090.7%
50apache/ignite804,5471,570,2727,94171.7%

Ranking rule: a repository belongs to Java when Java is its largest programming language by code lines; data and prose formats such as JSON, YAML, TOML and Markdown do not count as a language for this rule. "Java share" is the share of the repository's code lines written in Java. Code lines exclude comments and blank lines. Every report uses OctoCounts' canonical public options, with tests, docs and generated directories excluded, and reports were generated on different dates.

Java leaderboard FAQ

Which Java repository has the most lines of code?

googleapis/google-cloud-java is the largest Java repository in OctoCounts' index, with 35,431,956 code lines out of 65,170,566 total lines across 82,781 files, counted on November 24, 2026. chenxing890/HeavenMS-master follows with 16,483,795 code lines. Code size is not code quality: a larger count only means more source material.

How does a repository join the Java leaderboard?

Java must be its primary programming language: the language with the most code lines in the repository's OctoCounts report, ignoring data and prose formats such as JSON, YAML, TOML and Markdown. The repository then needs a public report with at least 5 files, and it is listed when it is among the 50 largest by code lines.

How many Java repositories has OctoCounts measured?

460 public GitHub repositories have Java as their primary programming language in OctoCounts' index. This page lists the 50 largest by code lines; a repository analyzed with custom counting options keeps those counts as a separate saved result.

Does more source lines of code mean more complexity?

Not necessarily. SLOC measures size, not complexity, quality, or maintainability. A larger codebase can mean more features, more generated or vendored code, more verbose language idioms, or more tests — none of which imply the code is harder to work with. Use line counts to gauge the scale of what you would be reading or maintaining, not as a quality signal.

Curated comparisons in Java