Making NWDS for CE 7.1 portable
Developing for NetWeaver AS Java means that you have to use the NetWeaver Developer Studio. The recommendation is to have for every NetWeaver release the corresponding NWDS version installed on your computer. When you have to take care of developments running on 7.0, 7.1, 7.2 and 7.3 you end up having 4 NWDS versions installed. NWDS for NetWeaver 7.0 an be downloaded at SCN. Until recently this was also true for CE.
Hope that the CE 7.2 download comes back as it included a NWDS for CE 7.2. For installing NWDS for CE 7.1 you have to download the installer from SAP (S-User required). That is not really complicated, but when you are switching workstations, travel or want to share your NWDS installation with a co-worker things get complicated. You have to download NWDS and install it. There are several pitfalls associated with this:
- administrator rights and
Even when you have the time and bandwidth, you still need to have administrator privileges to install NWDS:
The NWDS for CE download link mentioned above includes a step by step manual for installing NWDS CE. Step 3 is important:
“The installer starts SAP NetWeaver Developer Studio automatically and invokes the Eclipse Update Manager where you can select the available NWDS features that you want to add to your installation.”
This sentence means that you effectively install a basic Eclipse that needs to download and install all the features that transform Eclipse to NWDS. In my case, the basic NWDS CE 7.1 was roughly about 71 MB in size:
The preferences show that nothing SAP related is available. No Java, Portal, Web Dynpro Java, DTR or any other feature and perspective related to SAP development available.
Without these features you cannot develop. That’s where step 3 comes in. And therefore, to the 3 above mentioned possible pitfalls you have to add: 0.1. proxy configuration If you corporate proxy isn’t permitting Eclipse to download the features you have a useless basic Eclipse installation. NetWeaver AS Java CE comes with an update site feature (http://server:port/updatesite) (1). You can use the one provided by SAP or the one provided by your 7.1 administrator.
After you managed to install NWDS CE 7.1, how do you get that working version portable? You may be tempted to zip the folder and to copy it to an external drive to make it available as a portable NWDS (it is Eclipse and Java after all). If you do so you will notice that the installation folder is still only 71 MB. So: where are the downloaded files? NWDS CE 7.1 won’t copy them to the eclipse/plugins|features folder. They are downloaded to
(username)/.eclipse/ com.sap.netweaver.developerstudio.studio_7.1.0_xyz/configuration/ eclipse
That’s where the downloaded SAP features are. This installation path makes it complicated to use NWDS when the administrator of your company installed the features: your user does not have access to the folder. Copying them from there to the eclipse directory to make Eclipse aware of them won’t work. Inside the above directory is a file called .eclipseextension. That’s the only hint you get from SAP, but it’s enough to identify it as an extension directory. Copy that directory to another location (e.g.: X:\CE). From there the SAP features can be installed. The manage configuration dialog (Help -> Software Updates lists the features available.
To add the extension directory: open the context menu -> add -> extension location and select the eclipse folder.
This will install the features. After a restart of NWDS all SAP features are available:
This explanation will prove to be a real timesaver, thanks for pointing this out!
Robin van het Hof