A small school of these fish will require an aquarium of at least 500–600 liters. The decor can be arbitrary, but it is desirable to recreate a semblance of a riverbed: use a rocky substrate with boulders and several large snags. Dim lighting is preferred. The presence of an internal current in the aquarium will be beneficial. Among the aquatic plants that can take root, hardy mosses, ferns, and Anubias, which can attach to various surfaces, can be highlighted; other plants are likely to grow poorly and may be eaten. Successful keeping of Java Barbs is only possible with very clean and well-oxygenated water. Maintaining such conditions requires a powerful filtration system, as well as regular maintenance, including weekly partial water changes and removal of organic waste, such as excrement and food residues.