The import cannot be resolved

491 views
Skip to first unread message

programming_man

unread,
Sep 22, 2011, 2:27:57 PM9/22/11
to Google Web Toolkit
I have gone thru some of the other threads but still cannot resolve
this issue.
I am using indigo eclipse.


I have added the jar sqljdbc4.jar file to the java build path. When I
hit the debug as 'web application' the page loads but the following
errors appear in the "Development Mode' tab.

Line 11: The import com.microsoft cannot be resolved
Line 49: SQLServerDataSource cannot be resolved to a type

Any ideas?

Thanks in advanced.

Boris Lenzinger

unread,
Sep 23, 2011, 4:13:20 AM9/23/11
to google-we...@googlegroups.com
Hi,

Do you use those classes on the client side ? If it the case, it cannot work since you probably don't have any *.gwt.xml in your jar since this code cannot be translated to javascript.
Else it is a classpath problem of your running application.

Can you describe please how you launch the application and how you configured your launcher ?

2011/9/22 programming_man <tool...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


Alexandre Dupriez

unread,
Sep 23, 2011, 6:45:52 AM9/23/11
to Google Web Toolkit
GPE development mode removes some jar from the classpath of Jetty
based on the code actually used. Check your code refers to at least
one class of the jar sqljdbc4.jar. If not, try to reference (e.g.
instantiate) whathever class from this jar inside your GWT application
(either on client or server side) so as to force GPE to add the jar on
your server classpath.

Alexandre

-sowdri-

unread,
Sep 24, 2011, 1:49:24 AM9/24/11
to google-we...@googlegroups.com
Eclipse has 2 notions of classpath. 

  1. Classpath: Modify this in the Project > properties > BuildPath settings
  2. Runtime classpath: Modify this in Project > properties > run/debug configuration settings

Almost every Eclipse classpath (ClassNotFoundException could be solved this way)

Hope this helps,,,
Reply all
Reply to author
Forward
0 new messages