org.apache.commons.collections15 is available in apache commons collection jar. You need to have the jar in your classpath.

If you are using maven then add this in your pom.xml

Copy<dependency>
    <groupId>commons-collections</groupId>
    <artifactId>commons-collections</artifactId>
    <version>3.0</version>
</dependency>
Answer from Monzurul Shimul on Stack Overflow
🌐
Maven Repository
mvnrepository.com › artifact › org.apache.commons › commons-collections4
Maven Repository: org.apache.commons » commons-collections4
April 19, 2025 - The Apache Commons Collections package contains types that extend and augment the Java Collections Framework.
Top answer
1 of 2
6

org.apache.commons.collections15 is available in apache commons collection jar. You need to have the jar in your classpath.

If you are using maven then add this in your pom.xml

Copy<dependency>
    <groupId>commons-collections</groupId>
    <artifactId>commons-collections</artifactId>
    <version>3.0</version>
</dependency>
2 of 2
3

Some Java background

Java has a concept referred to as library dependencies which (in this case) you can think of as extensions to Java's core API. In layman's terms they're self contained "units" of code that give you access to programmatic structures (methods, classes, interfaces, etc) that do not come defaualt in Java. Some additional information

  • They are organized into packages (groupings of liked things) which are imported at the top of .java files that use them
  • These packages are unique and as you see will usually be in the form of tld.companyname.projectname.subgroup1.subgroup2...etc (this guarantees uniqueness)
  • They are also written in Java (usually)
  • They need to be added to your classpath (a setting that identifies where you compiled code is)
  • You can physically add them or use some type of build and dependency management tool like Maven, Ant Ivy, Gradle, etc.

Your specific case

The error in this case is telling us a few things. Firstly it is telling us that the error is occurring in the Standalone.java file on line 22. Additionally it is telling us that the issue is occurring because the Apache Commons library is no present. If you view the Standalone.java file you will see the following import on line 22

  • import org.apache.commons.collections15.Transformer;

The general solution

A general solution to this problem depends solely on how you are building this application. In generally you need to do the following:

  • First figure out if this program uses any dependency management tool. A pom.xml file indicates Maven, a build.xml file indicates ANT, etc. A quick search I do not see any tool being used. I would generally
  • Download the Apache Commons library from https://commons.apache.org/
  • Place the jar file in the /libs folder
  • Add that jar to the classpath

The specific solution

In the projects root directory you will see a .classpath file. This file is generated by the Eclipse IDE that defines the projects classpath. This file should have an entry that somewhere points to the Commons jar file. On line 3 you will see the following classpath entry with these two pertinent attributes

  • sourcepath="/home/reihaneh/.m2/repository/net/sourceforge/collections/collections-generic/4.01/collections-generic-4.01-sources.jar"
  • path="libs/jung2-2_0_1/collections-generic-4.01.jar"

I believed the the issue here is with the sourcepath attribute. It is clearly assigned an absolute URI that is (presumably) not applicable to you. Try to assign it the same value as the path attribute.

🌐
Maven Central
central.sonatype.com › artifact › org.apache.commons › commons-collections4
org.apache.commons:commons-collections4 - Maven
> <goal>test-jar</goal> </goals> </execution> </executions> <!-- Temporary fix for COLLECTIONS-658, remove this after this has implemented in parent pom --> <configuration> <archive combine.children="append"> <manifestEntries> <Automatic-Module-Name>org.apache.commons.collections4</Automatic-Module-Name> </manifestEntries> </archive> </configuration> </plugin> <plugin> <!-- NOTE: javadoc config must also be set under <reporting> --> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <configuration> <source>8</source> <!-- TODO --> <failOnWarnings>false</f
🌐
Bobcares
bobcares.com › blog › error-package-org-apache-commons-lang-does-not-exist
How to Fix “package org.apache.commons.lang does not exist” Error in Java
December 8, 2024 - We can quickly resolve the issue by adding the Apache Commons Lang library through a build tool, updating package names, or fixing classpath configurations. In brief, our Support Experts demonstrated how to fix the “package org.apache.commons.lang ...
🌐
Google Groups
groups.google.com › g › foam-framework-discuss › c › nsAlepVYj8c
build failure - package org.apache.commons.io does not exist
Joel Hughes <joel.l...@gmail.com> writes: > Ok, passed the apache errors, adding commons-io and commons-text did > work, the problem was the 'cp ../tools/pom.xml' was not copying the > updated pom (figure that one out later).
Find elsewhere
🌐
Apache Commons
commons.apache.org › proper › commons-collections › apidocs › org › apache › commons › collections4 › package-summary.html
Package org.apache.commons.collections4
Package · Description · org.apache.commons.collections4.bag · Implements the Bag and SortedBag interfaces. org.apache.commons.collections4.bidimap · Implements the BidiMap, OrderedBidiMap and SortedBidiMap interfaces. org.apache.commons.collections4.bloomfilter ·
🌐
Javadoc.io
javadoc.io › doc › org.apache.commons › commons-collections4 › latest › index.html
commons-collections4 4.5.0 javadoc (org.apache.commons)
https://javadoc.io/doc/org.apache.commons/commons-collections4/4.5.0 · package-list path (used for javadoc generation -link option) https://javadoc.io/doc/org.apache.commons/commons-collections4/4.5.0/package-list ·
🌐
DevGenius
blog.devgenius.io › how-to-fix-commons-lang-package-does-not-exist-error-db4051b8a46b
How to fix Commons Lang “Package Does Not Exist” Error | by Tremaine Eto | Dev Genius
December 12, 2021 - import static org.apache.commons.lang.StringUtils.isBlank; import static org.apache.commons.lang.StringUtils.isNotBlank;
🌐
Maven Repository
mvnrepository.com › artifact › org.apache.commons
Maven Repository: org.apache.commons
org.apache.commons » commons-lang3 Apache · org.apache.commons » commons-collections4 Apache
🌐
Stack Overflow
stackoverflow.com › questions › 69250397 › error-while-upgrading-library-commons-collection-from-version-3-2-to-version-4-4
java - Error while upgrading library commons-collection from version 3.2 to version 4.4 - Stack Overflow
yes, I have taken care of this. commons.collections4 is used now in place of commons.collections version 3.2 ... Maven resolved commons-collections groupid as org.apache.commons.collections and can't find version 3.2.1
🌐
Apache Commons
commons.apache.org › proper › commons-collections › apidocs › org › apache › commons › collections4 › functors › package-summary.html
org.apache.commons.collections4.functors (Apache Commons Collections 4.5.0 API)
package org.apache.commons.collections4.functors · Implements the Closure, Predicate, Transformer and Factory interfaces. These provide simple callbacks for processing with collections. WARNING: from v4.1 onwards several unsafe classes in this package will not be serializable anymore in order to prevent potential remote code execution exploits.
🌐
Maven Central
central.sonatype.com › artifact › org.apache.commons › commons-collections4 › 4.2
org.apache.commons:commons-collections4:4.2 - Maven
--> <commons.componentid>collections</commons.componentid> <commons.module.name>org.apache.commons.collections4</commons.module.name> <!-- Current 4.x release series --> <commons.release.version>4.2</commons.release.version> <commons.release.desc>(Requires Java 7 or later)</commons.release.desc> <!-- Previous 3.x release series --> <commons.release.2.version>4.1</commons.release.2.version> <commons.release.2.desc>(Requires Java 6 or later)</commons.release.2.desc> <!-- Override generated name --> <commons.release.2.name>commons-collections-${commons.release.2.version}</commons.release.2.name>
🌐
JetBrains
youtrack.jetbrains.com › issue › IDEA-238891 › Error-java-package-orgapachecommonsio-does-not-exist
Error: java: package org.apache.commons.io does not exist
{{ (>_<) }} This version of your browser is not supported. Try upgrading to the latest stable version. Something went seriously wrong