Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » java.lang.NoClassDefFoundError: org/eclipse/core/runtime/CoreException error while SQL parse
java.lang.NoClassDefFoundError: org/eclipse/core/runtime/CoreException error while SQL parse [message #719749] Sun, 28 August 2011 18:58 Go to next message
ygokirmak  is currently offline ygokirmak
Messages: 1
Registered: August 2011
Junior Member
Hi,

I'm trying to parse complex sql statements via DTP's sql parser but I couldn't even run example code given :

www.eclipse.org/datatools/project_sqldevtools/sqltools_doc/SQL%20Query%20Parser%20User%20documentation.htm

I am getting below error while trying to run example code.


-------------------------------------------
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/core/runtime/CoreException
at org.eclipse.datatools.modelbase.sql.query.impl.SQLQueryObjectImpl.getSQL(SQLQueryObjectImpl.java:60)
at org.eclipse.datatools.modelbase.sql.query.impl.QueryStatementImpl.getSQL(QueryStatementImpl.java:57)
at org.intellica.sqlparser.SQLParser.main(SQLParser.java:37)
Caused by: java.lang.ClassNotFoundException: org.eclipse.core.runtime.CoreException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
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)
... 3 more

-------------------------------------------


System information:
Eclipse SDK Version: 3.7.0
Data Tools Platform Enablement 1.9.0.v201106031100

Referenced Library versions:
org.eclipse.datatools.sdk_1.7.0.v200906161850.jar
lpgjavaruntime.jar (lpgdistribution-05-16-06)
org.eclipse.datatools.modelbase.sql.query_1.1.1.v201008100700.jar
org.eclipse.datatools.modelbase.sql_1.0.4.v201002250945.jar
org.eclipse.datatools.sqltools.parsers.sql.lexer_1.0.1.v200906030654.jar
org.eclipse.datatools.sqltools.parsers.sql.query_1.2.0.v201004291415.jar
org.eclipse.datatools.sqltools.parsers.sql_1.0.2.v201004291415.jar
org.eclipse.emf.common_2.7.0.v20110605-0747.jar
org.eclipse.emf.ecore_2.7.0.v20110605-0747.jar
Re: java.lang.NoClassDefFoundError: org/eclipse/core/runtime/CoreException error while SQL parse [message #733508 is a reply to message #719749] Tue, 04 October 2011 22:30 Go to previous message
Brian Payton is currently offline Brian Payton
Messages: 152
Registered: July 2009
Senior Member
How are you invoking the SQL parser? Are you running it in the plugin
environment, or trying to run it as a stand-alone Java app?
CoreException is a foundation class in plugin
org.eclipse.equinox.common, so something isn't right in the environment.

On 8/28/2011 11:58 AM, ygokirmak wrote:
> Hi,
>
> I'm trying to parse complex sql statements via DTP's sql parser but I
> couldn't even run example code given :
>
> www.eclipse.org/datatools/project_sqldevtools/sqltools_doc/SQL%20Query%20Parser%20User%20documentation.htm
>
>
> I am getting below error while trying to run example code.
>
> -------------------------------------------
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/eclipse/core/runtime/CoreException
> at
> org.eclipse.datatools.modelbase.sql.query.impl.SQLQueryObjectImpl.getSQL(SQLQueryObjectImpl.java:60)
>
> at
> org.eclipse.datatools.modelbase.sql.query.impl.QueryStatementImpl.getSQL(QueryStatementImpl.java:57)
>
> at org.intellica.sqlparser.SQLParser.main(SQLParser.java:37)
> Caused by: java.lang.ClassNotFoundException:
> org.eclipse.core.runtime.CoreException
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> 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)
> ... 3 more
>
> -------------------------------------------
>
>
> System information:
> Eclipse SDK Version: 3.7.0
> Data Tools Platform Enablement 1.9.0.v201106031100
>
> Referenced Library versions:
> org.eclipse.datatools.sdk_1.7.0.v200906161850.jar
> lpgjavaruntime.jar (lpgdistribution-05-16-06)
> org.eclipse.datatools.modelbase.sql.query_1.1.1.v201008100700.jar
> org.eclipse.datatools.modelbase.sql_1.0.4.v201002250945.jar
> org.eclipse.datatools.sqltools.parsers.sql.lexer_1.0.1.v200906030654.jar
> org.eclipse.datatools.sqltools.parsers.sql.query_1.2.0.v201004291415.jar
> org.eclipse.datatools.sqltools.parsers.sql_1.0.2.v201004291415.jar
> org.eclipse.emf.common_2.7.0.v20110605-0747.jar
> org.eclipse.emf.ecore_2.7.0.v20110605-0747.jar
>
Previous Topic:How to add a pop-up menu on Table items?
Next Topic:derby embedded bootpassword data source explorer
Goto Forum:
  


Current Time: Sat Sep 20 18:03:41 GMT 2014

Powered by FUDForum. Page generated in 0.01628 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software