# Lucee 7.1 missing classpath

**URL:** <https://dev.lucee.org/t/lucee-7-1-missing-classpath/17926>\
**Category:** dev\
**Created:** [November 19, 2026, 3:19pm UTC](https://dev.lucee.org/t/lucee-7-1-missing-classpath/17926 "2026-11-19T15:19:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kalle](https://dev.lucee.org/user_avatar/dev.lucee.org/kalle/32/9326_2.png) [@Kalle](https://dev.lucee.org/u/Kalle)\
**Post date:** [November 19, 2026, 3:19pm UTC](https://dev.lucee.org/t/lucee-7-1-missing-classpath/17926/1 "2026-11-19T15:19:33Z")

</div>

Hi, we’ve been using Lucee for quite some time now—currently still version 6.2—in a Windows Server environment and for testing/development purposes on Windows 11.  
I’ve now tentatively upgraded the environment to version 7.1 (fresh installation in a new directory). The application works more or less as expected, but when I try to access my own classes (\*.class files in a directory as well as \*.jar libraries), I get messages saying that the classes cannot be found.  
I copied the classpath using Luceew.exe (Java tab). When I display the classpath with `getClassPath`, my change isn’t reflected—only the Tomcat path is visible.  
Does anyone have any ideas on how I can integrate my classpath into Tomcat?  
Thanks, best regards, Kalle

---

<div class="post-metadata">

**Author:** ![GianTschingt](https://dev.lucee.org/user_avatar/dev.lucee.org/giantschingt/32/9300_2.png) [@GianTschingt](https://dev.lucee.org/u/GianTschingt)\
**Post date:** [November 19, 2026, 6:00pm UTC](https://dev.lucee.org/t/lucee-7-1-missing-classpath/17926/2 "2026-11-19T18:00:41Z")

</div>

Hi Kalle, welcome to the Lucee forum, good to have you here.

The Java tab in Luceew.exe sets Tomcat’s JVM classpath for the Windows service. By default that is only Tomcat’s bootstrap jars (`bootstrap.jar` and `tomcat-juli.jar`). `getClassPath()` reports that JVM classpath, which is why you mainly see the Tomcat path.

In Lucee 7, though, that is no longer the place to add your own jars and classes. Lucee loads application libraries through its own settings, not through the Tomcat service classpath. These are the recommended approaches:

**For your application** , set `this.javaSettings` in `Application.cfc`. You can point at local jars, directories of jars, or directories of `.class` files, and you can also pull libraries from Maven:

```cfml
this.javaSettings = {
    loadPaths = [
        "C:\path\to\libs\",
        "C:\path\to\classes\"
    ]
};

```

See [JavaSettings in Application.cfc](https://docs.lucee.org/recipes/java-settings.html) and, if useful, [Loading Java Libraries with Maven](https://docs.lucee.org/recipes/maven.html).

**For the whole server** , copy your `.jar` files into `lucee-server/context/lib` under your 7.1 install and restart Lucee. Lucee picks those jars up automatically.

**For a single class** , you can still pass a path to `createObject()`:

```cfml
obj = createObject("java", "com.example.MyClass", "C:\path\to\libs\");

```

If a class is still missing after one of those, let us know how you create the object and where the jars and class files live, and we’ll take another look.

Best,  
Gian

---

<div class="post-metadata">

**Author:** ![Kalle](https://dev.lucee.org/user_avatar/dev.lucee.org/kalle/32/9326_2.png) [@Kalle](https://dev.lucee.org/u/Kalle)\
**Post date:** [November 20, 2026, 5:21am UTC](https://dev.lucee.org/t/lucee-7-1-missing-classpath/17926/3 "2026-11-20T05:21:24Z")

</div>

Hi, thanks, Gian, for your reply. I wasn’t familiar with `javasettings` yet. As a test, I had used an array with the classpath in `createObject`.

I’ve found the root cause. Since I wanted to test version 7, I have two environments on the machine. It’s possible that I reconfigured the services using `service.bat` and then mixed up the names during installation compared to the first installation. There were two entries in the registry.

I uninstalled version 7, deleted the version 6 service, and then reinstalled it. Right now, it’s finding my classes.

Best, Kalle
