Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 428419

Summary: import of org.eclipse.rap.rwt does not work
Product: [RT] RAP Reporter: Peteris Prusis <peteris.prusis>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: ivan
Version: 2.3   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Peteris Prusis CLA 2014-02-18 07:13:02 EST
The computer I'm using is behind firewall and I cannot directly access Internet. I've downloaded "eclipse-rcp-kepler-SR1-linux-gtk-x86_64.tar.gz" (e.g. "Eclipse for RCP and RAP developers version") and unpack it. In that I've imported several old projects developed on Juno earlier. All of the imports of RAP classes were error marked. For instance, the example in project "org.eclipse.rap.design.example". It contains class Messages.java, which attempts to import "org.eclipse.rap.rwt.RWT". Whatever I try to do it gives an error "The import "org.eclipse.rap.rwt" cannot be resolved". What I tried to do:

1. Setup new "target platform" from downloaded "rap-2.3.0-M1-20140127-1357.zip".
2. Add org.eclipse.rap.rwt in MANIFEST.MF as "required plug-in"
3. Add org.eclipse.rap.rwt in MANIFEST.MF  "imported packages" (for some reason it is not possible in all combinations?)
4. Explicitly add rap-2.3.0-M1-20140127-1357.zip to built path
5. Click on the "Fix project setup ..."
6. Click on "search repositories ..."

Try to find all kind of settings in all different menus in Eclipse. I've also tried to combine all these settings in various combinations. 

Nothing really changes the projects ability to import the "org.eclipse.rap.rwt" library.
Comment 1 Ivan Furnadjiev CLA 2014-02-18 07:31:07 EST
This is not a problem of the RAP framework, but how you setup your target platform. Please use RAP newsgroup [1] for such questions. Also if your old projects are based on RAP 1.5, please look at 2.0 Migration Guide [2].

[1] http://www.eclipse.org/forums/index.php?t=thread&frm_id=34
[2] http://www.eclipse.org/rap/noteworthy/2.0/migration-guide/
Comment 2 Ivan Furnadjiev CLA 2014-02-18 08:55:33 EST
The package "Eclipse for RCP and RAP" does not set your RAP target platform automatically. This package only includes RAP Tools. You have to set your target (RAP) platform manually - from downloaded zip file, p2 repository or from Welcome screen.