Monday, June 2, 2014

Installing JSF in Eclipse

File--> New--> Dynamic Web Project




Select Download Library (The floppy Disk icon)





Installing Glassfish 4.0 from Eclipse IDE




Since Glassfish is not found, select "Download Additional server adapters" on top-right.




The error on the top indicates that Glassfish doesn't recognize the jdk installed on the system. Therefore, go to Window-->Preferences--> Java-->Installed JREs

Now Add the jdk as shown below

Make sure the jdk checkbox is selected


Now follow the above steps again and the error won't appear as shown below

and select "Install Server"










Once the installation is complete


Open a browser