CLI Build Command Failing with NoClassDefFoundError in Tizen Studio 1.2+

Original Created Aug 02, 2017 | Regeneration Apr 22, 2026

When using Tizen Studio 1.2 or later, the command-line interface fails when executing the build-web command:

> tizen build-web -- .\fooproject
Exception in thread "main" java.lang.NoClassDefFoundError: org/tizen/core/gputil/PathUtil
    at org.tizen.common.core.web.BuildWebAppModule.buildResources(BuildWebAppModule.java:128)
    at org.tizen.ncli.subcommands.build.buildweb.BuildWebCLICommand.call(BuildWebCLICommand.java:91)
    at org.tizen.ncli.subcommands.build.buildweb.BuildWebCLICommand.call(BuildWebCLICommand.java:52)
    at org.tizen.ncli.subcommands.AbstractSubCommand.runCommand(AbstractSubCommand.java:85)
    at org.tizen.ncli.ide.shell.BuildWebCLI.execute(BuildWebCLI.java:86)
    at org.tizen.ncli.ide.shell.AbstractCLI.execute(AbstractCLI.java:92)
    at org.tizen.ncli.ide.shell.Main.run(Main.java:144)
    at org.tizen.ncli.ide.shell.Main.main(Main.java:78)
Caused by: java.lang.ClassNotFoundException: org.tizen.core.gputil.PathUtil
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 8 more

Problem Understanding

The error occurs because the required NativeCLI package is missing in your Tizen Studio installation. The NoClassDefFoundError indicates that the Java runtime cannot find the org.tizen.core.gputil.PathUtil class, which is part of the NativeCLI package.

Solution Methods

  1. Install NativeCLI Package:

    • Open Tizen Studio Package Manager
    • Install the "NativeCLI" package
    • Restart Tizen Studio after installation
  2. Verify Installation:

    • After installing the NativeCLI package, verify that the build-web command works properly
    • If the issue persists, try reinstalling Tizen Studio with all required packages

Additional Tips

  • This issue is documented in the Tizen troubleshooting guide
  • For web application development using CLI, refer to the official documentation
  • For native application development using CLI, check the corresponding guides

Customize your cookie preferences

You can enable or disable non-essential cookies. Essential cookies are always on to ensure the site works properly and to keep you signed in.

Necessary

These cookies are necessary for the website to function properly and cannot be switched off. They help with things like logging in and setting your privacy preferences.

Always on

Analytics

These cookies help us improve the site by tracking which pages are most popular and how visitors move around the site.

Enable analytics cookies
Public Forum Public Forum
Employees only. Please sign in with your company account.