java.lang.NoClassDefFoundError

sun/io/CharToByteConverter

Samebug tips9

You need to add httpcore to your dependencies. Try adding version 4.3 or further.


rafaelrafael

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web17798

  • via Unknown by dave999,
  • via Stack Overflow by Catersa
    ,
  • Stack trace

    • java.lang.NoClassDefFoundError: sun/io/CharToByteConverter at oracle.lite.web.util.CharEncodingMap.getCharEncoding(Unknown Source) at oracle.lite.web.JupConfig.initialize0(Unknown Source) at oracle.lite.web.ProfileUtil.getProfile(Unknown Source) at oracle.lite.web.install.SaveInstallParams.saveParam(Unknown Source) at oracle.lite.web.install.SaveInstallParams.saveParam(Unknown Source) at oracle.lite.web.Shell.main(Unknown Source) at oracle.lite.web.migrate.WebtoGoNew.<init>(Unknown Source) at oracle.lite.web.migrate.InstallFiles.silentInstall(Unknown Source) at oracle.lite.web.migrate.InstallFiles.<init>(Unknown Source) at oracle.lite.web.migrate.MainDBRepositoryManager.run(Unknown Source) at oracle.lite.web.migrate.RepositoryManager.start(Unknown Source) at oracle.lite.web.migrate.RepWizard.main(Unknown Source) Caused by: java.lang.ClassNotFoundException: sun.io.CharToByteConverter at java.net.URLClassLoader$1.run(URLClassLoader.java:372) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:360) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 12 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    musketyrmusketyr
    2 times, last one
    2363 more bugmates