Newsletter:

(Java) How to Install GlassFish Application Server on Windows XP


Java : How to Install GlassFish Application Server on Windows XP

  1. First, you must have Java SDK installed on your Windows XP.
    (About Java SDK installation, In Indonesia Version, you can go here).
  2. Download the latest GlassFish Application Server from
    https://glassfish.dev.java. net/public/downloadsindex.html
    It’s about 60-70MB file size.
  3.  

  4. After finish, you’ve got file called (for example) glassfish-installer-v2ur2-b04. jar
  5. Move file glassfish-installer-v2ur2-b04. jar to C:\
  6. Open the CMD prompt. Start–>Run..–>(type) cmd
    Something like this:
  7. cmd-awl

  8. execute glasshfish file. First, in CMD prompt, go to C:\then type: java -Xmx256m -jar glassfish-installer-v2ur2-b04. jar
  9. cmd-install-jar

  10. Then soon will arrive window about glassfish licence.Scroll down, then click accept. Check the enable autoupdate is not wrong.
  11. gf-license

  12. Installation process begin….
  13. Installation finish after arise sentence “installation complete
    on CMD window.
  14. cmd-instalsi-finish

  15. then, you have new directory, called “glashfish”
    C:\glassfish
  16. Is the instalation is finish? The answer is NOT YET.
    We must activate the setup.xml in the glassfish directory
    We use “ant” for build it.
  17. In the CMD, go to C:\glassfish\
    (In this tutorial, I assume that my pc was installed ant before)
    (If your pc is not yet, ant will found in glassfish directory,
    in C:\glassfish\lib\ant\bin)
  18. then, in th CMD type: ant -f setup.xml

    then hit enter

    cmd-setup-ant

  19. …..build setup.xml is begin. Wait for seconds…
  20. If you Windows Security Alert arise, just click Unblock :)
  21. pic-unblock

  22. Wait until build process is finish.
    When build process is finish, it will be arise sentence something like:
    BUILD SUCESSFUL
    Total time: 40 seconds
    (depend on your pc’s velocity)
  23. Now glassfish application server is well installed:)
  24. Wanna check?…OK let’s check our new server:)
  25. Go to C:\glassfish\bin
    Then type: asadmin start-domain domain1

    wait for seconds..

  26. Open your browser, type: http://localhost:8080/
  27. sukses1crop

  28. Installation complete!!! :)