{
  "id": "java/class-def-not-found-error",
  "signature": "java.lang.ClassDefNotFoundException",
  "signature_zh": "java.lang.ClassDefNotFoundException",
  "regex": "java\\.lang\\.ClassDefNotFoundException",
  "domain": "java",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "The JVM cannot find the definition of a class that was referenced at compile time, typically due to a missing or mismatched class file in the classpath or an incomplete build artifact.",
  "root_cause_type": "generic",
  "root_cause_zh": "JVM 无法找到编译时引用的类的定义，通常是由于类路径中缺少或不匹配的类文件，或构建产物不完整。",
  "versions": [
    {
      "version": "Java 8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Java 11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Java 17",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Java 21",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "This may include duplicate or conflicting versions of the same class, leading to other linkage errors, and does not address missing dependencies from transitive dependencies.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Stale class files from previous builds can mask the real issue; a clean build is necessary to ensure all classes are regenerated.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Run 'mvn clean install' or 'gradle clean build' to force a full rebuild and ensure all class files are generated correctly.",
      "success_rate": 0.85,
      "how": "Run 'mvn clean install' or 'gradle clean build' to force a full rebuild and ensure all class files are generated correctly.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Check the classpath using 'java -verbose:class YourMainClass' to see which class files are loaded and identify the missing one.",
      "success_rate": 0.75,
      "how": "Check the classpath using 'java -verbose:class YourMainClass' to see which class files are loaded and identify the missing one.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Run 'mvn clean install' or 'gradle clean build' to force a full rebuild and ensure all class files are generated correctly.",
    "Check the classpath using 'java -verbose:class YourMainClass' to see which class files are loaded and identify the missing one."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/ClassNotFoundException.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2023-11-15",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}