Sign In!
|
New User?Signup Now!
|
Forgot password?
Source Code 4 you
Home
Create Forum Topic
Check WebSite Rank
Publish Articles
UV Web Booster
Contact
Forum Type
Search Engine
.Net C# VB F# VC++
MonoPoject
Java J2EE
Zand Php Cake Php
Oracle Database Server
Mysql Database Server
DB2 Database Server
MSSql Databse Server
Javascript Ajax
Html Xml Xhtml
C Programming
C++ Programming
D Programming
CGI Programming
Perl Programming
Cobol Programming
Pascal Programming
Ruby Programming
Drupal Programming
Automobile
Software Testing
Linux Unix Mac Sun OS
Embedded Systems
Mainframe
IC Microcircuit Chip
Electronics Electrical
Hardware Netwarking
SAP ERP
Logical Reasoning
Human Resources
Science
Agriculture
Accounting
History
Pharmaceutical
Other Topic
Java J2EE
Posted by :
martinhansen
Add external java project to GWT project in Eclipse
Hello,
my GWT server-side code needs an external java project. I have added
the project under "Configure build path / Projects". It works fine in
hosted mode. But when I deploy my application on a server, I get lots
of ClassNotFoundExceptions. Obviously, GWT cannot find the external
java code. When I look at the war\WEB-INF\classes folder, I see that
the external java classes have not been included.
How can I get GWT to include the external classes?
Posted by :
Sean
Re : Add external java project to GWT project in Eclipse
You can export the non-GWT java files into a jar and drop those in the
WEB-INF/lib folder. That's what I do.
Posted by :
martinhansen
Re : Add external java project to GWT project in Eclipse
Hello Sean,
thank you very much. I've thought of that solution too, but it is not
appropriate for my GWT project. I have to add 4 external projects to
my GWT project, and all of these 4 projects are subject to change
every day. It would be too much work to export them to a jar file
every day. Is there some way to automatically add the external project
sources to the GWT output folder?
Posted by :
martinhansen
Re : Add external java project to GWT project in Eclipse
Now I tried the "link source" function without Google App Engine. At
first, it seems to work, and the project is added to my main project.
The only problem is: The package declarations produce errors. Eclipse
shows an error message:
The declared package "com.company.data" does not match the expected
package "src.com.company.data"
What to do?
Posted by :
Jason Parekh
Re : Add external java project to GWT project in Eclipse
Hi Martin,
For the "Linked folder location," ensure you have the trailing "src" included.
If you have the better reply, then send it to us. We will display your reply after the approval.
Name :
Email Id :
Reply :