Hi To close this thread, I think the best way to add the libraries into the existing GWT project is to manually edit the classpath in command-line tool scripts.
:-) On Fri, Aug 29, 2008 at 9:21 PM, hezjing <[EMAIL PROTECTED]> wrote: > Hi > > I have create the GWT project and application using these steps, > 1) projectCreator -eclipse MyTest -out MyTest > 2) applicationCreator -eclipse MyTest -out MyTest > com.dummy.test.client.MyTest > > Later, I have added a library to > MyTest\lib\mysql-connector-java-5.1.6-bin.jar > What is the best way to add this library to the CLASSPATH? > > I tried these steps, > 3) projectCreator -eclipse MyTest -out MyTest -addToClassPath MyTest > \lib\mysql-connector-java-5.1.6-bin.jar > 4) applicationCreator -eclipse MyTest -addToClassPath > MyTest\lib\mysql-connector-java-5.1.6-bin.jar -out MyTest > com.dummy.test.client.MyTest -overwrite > > But when imported this project into Eclipse, it gives error that says > Project 'MyTest' is missing required library: > 'Cims/lib/mysql-connector-java-5.1.6-bin.jar'. > I think this problem is because the library is saved under the project > directory MyTest\lib. > > How do we add the libraries? Especially adding a library into an > existing GWT project? > > > > On Thu, Aug 28, 2008 at 5:48 PM, Thomas Broyer <[EMAIL PROTECTED]> wrote: > > > > > > On 27 août, 17:59, hezjing <[EMAIL PROTECTED]> wrote: > >> Hi > >> > >> Both projectCreator and applicationCreator have these options, > >> -overwrite = Overwrite any existing files, > >> -ignore = Ignore any existing files; do not overwrite, > >> -addToClassPath = Adds extra elements to the class path of files in > >> the skeleton. > >> > >> I guess the -overwrite and -ignore are use on the existing project, > >> but why does someone wants to execute the tools with these options? > > > > -ignore => regenerates files that you've deleted by mistake; or when > > you weren't using "-eclipse" and now wants to move on but don't want > > the xxxCreator to overwrite your other files > > -overwrite => you've modified the generated files and made a mistake, > > you want to revert back to the original files > > > >> When do we use -addToClassPath? > > > > You want to use a third-party lib and don't want to manually edit > > every file (*-compile.cmd, *.ant.xml, *.launch, etc.) to update the > > classpath. > > > > > > > > > > -- > > Hez > -- Hez --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
