# JCE Editor Error: "Class 'JObject' not found" in Joomla 5.4.1
## PROBLEM DESCRIPTION
When attempting to edit or insert a link using JCE Editor in Joomla 5.4.1, the following error appears:
```
An error has occurred.
Class "JObject" not found
```
This error occurs in:
- Joomla article editing (com_content)
- jDownloads category editing (com_jdownloads)
- Any context where JCE link functionality is used
## ENVIRONMENT
- **Joomla:** 5.4.1
- **JCE Editor:** 2.9.96
- **PHP:** 8.4
- **Server:** Apache + Cloudflare
## ROOT CAUSE
JCE Editor 2.9.96 still uses the obsolete `JObject` class that was deprecated in Joomla 3.x and removed in Joomla 4.0+.
In Joomla 5.x, this class is only available if the **"Behaviour - Backward Compatibility"** plugin is enabled.
## TEMPORARY SOLUTION
Enable the backward compatibility plugin:
```
System → Plugin → Behavior - Backward Compatibility → Enable - It was disabled for possible migration to J6
```
This resolves the error immediately.
## REQUEST
**Update JCE Editor to remove legacy code dependencies (JObject and other obsolete classes) and achieve native compatibility with Joomla 5.x without requiring the backward compatibility plugin.**
### Justification:
1. The "Backward Compatibility" plugin will be removed in Joomla 6.x
2. Best practices: use `Joomla\CMS\Object\CMSObject` instead of `JObject`
3. Ensure future compatibility with Joomla 6.x
## LIKELY AFFECTED FILES
Search suggestion for the developer:
```bash
grep -r "extends JObject" /administrator/components/com_jce/
grep -r "new JObject" /plugins/editors/jce/
grep -r "JObject" /administrator/components/com_jce/ --include="*.php"
```
## SUGGESTED REPLACEMENT
```php
// BEFORE (obsolete)
class MyClass extends JObject
// AFTER (Joomla 4/5/6)
use Joomla\CMS\Object\CMSObject;
class MyClass extends CMSObject
```
## IMPACT
- **Severity:** Medium-High
- **Affected users:** All JCE users on Joomla 5.x without the compatibility plugin
- **Workaround:** Available (enable compatibility plugin)
- **Urgency:** High (preparation for Joomla 6.x)
## ADDITIONAL INFORMATION
- Error reproducible on clean Joomla 5.4.1 + JCE 2.9.96 installation
- Does not occur with TinyMCE (Joomla's native editor)
- The compatibility plugin solves the problem but is an undesirable long-term dependency
