Languages

Menu
Sites
Language
native-* command line tools running bug

Hi

 

it seems, there is a bug in native command line tools startup

the sdblib.jar not added to classpath, which cause class not found exception:

Exception in thread "main" java.lang.NoClassDefFoundError: org/tizen/sdblib/util/IOUtil
    at org.tizen.common.core.application.InstallPathConfig.parseSdkInfoFile(InstallPathConfig.java:244)
    at org.tizen.common.core.application.InstallPathConfig.loadSdkPath(InstallPathConfig.java:260)
    at org.tizen.common.core.application.InstallPathConfig.<clinit>(InstallPathConfig.java:87)
    at org.tizen.cli.exec.pack.NativeMain.<clinit>(NativeMain.java:52)
Caused by: java.lang.ClassNotFoundException: org.tizen.sdblib.util.IOUtil
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 4 more
Could not find the main class: org.tizen.cli.exec.pack.NativeMain.  Program will exit.

 

 

workaround solution - copy sdblib.jar to tizen-sdk/tools/ide/lib/

 

Vlad

Responses

2 Replies
Raghavendra Reddy Shiva

Thanks for sharing the information.

Did you find issue this with all CLI native-* commands ? What's the command you are using in your case ?

 

Vladyslav Stelmakhovskyi

Hi

 

the issue is in placing of the sdblib.jar or/and in common.sh

the tizen-sdk/tools has 2 lib folders:

1) tizen-sdk/tools/lib

and

2) tizen-sdk/tools/ide/lib

the 1st one contains only tha sdblib.jar, but, common.sh scripts looking only into second one