go to  ForumEasy.com   
JavaPro  
 
 
   Home  |  MyForum  |  FAQ  |  Archive    You are not logged in. [Login] or [Register]  
Forum Home » Java Deploying » How do I install WTP?
Email To Friend  |   Set Alert To This Topic Rewarding Points Availabe: 0 (What's this) New Topic  |   Post Reply
Author Topic: How do I install WTP?
Alex_Raj
member
offline   
 
posts: 99
joined: 05/16/2006
from: San Jose, CA
  posted on: 01/19/2016 12:28:31 AM    Edit  |   Quote  |   Report 
How do I install WTP?
Here is the procedure to install WTP:
  • Start Eclipse
  • Click on "Help"
  • Click on "Install New Software"
  • Select "--All Available Sites--" for "Work with:"
  • Select "Web, XML, Java EE and OSGi Enterprise Development" category
  • From the above category, if unsure, pick both the "Eclipse Java EE Developer Tools" and "JST Server Adapters Extensions" and proceed, allowing it to select dependencies for you. Or, simply choose all components.
  • Restart Eclipse to take effect the above install.

  •  Profile | Reply Points Earned: 0
    Alex_Raj
    member
    offline   
     
    posts: 99
    joined: 05/16/2006
    from: San Jose, CA
      posted on: 08/06/2019 12:44:10 AM    Edit  |   Quote  |   Report 
    Setting up Run-time Environments
    First, download the latest version (apache-tomcat-7.0.96) of Tomcast from http://tomcat.apache.org/. Extract them to your file system.

    Then select from the menu Window> Preferences>Server>Runtime Environments. Press the Add button

  • Select "Apache Tomcat v7.0"
  • Check "Create a new local server"
  • Type in the location directory where Tomcat is installed

  •  Profile | Reply Points Earned: 0
    Alex_Raj
    member
    offline   
     
    posts: 99
    joined: 05/16/2006
    from: San Jose, CA
      posted on: 08/06/2019 12:46:22 AM    Edit  |   Quote  |   Report 
    Starting a local web server
    Once you have configure a local Tomcat server the Servers view allows you to start and stop this server.

    To open this view select Window>Show View>Other…​> Server> Servers…​.
     Profile | Reply Points Earned: 0
    Alex_Raj
    member
    offline   
     
    posts: 99
    joined: 05/16/2006
    from: San Jose, CA
      posted on: 08/06/2019 01:01:54 AM    Edit  |   Quote  |   Report 
    Create web project by WTP
    To create a new Dynamic Web Project called HelloWTP:
  • Select File > New > Other…​ > Web Dynamic Web Project
  • Type "HelloWTP" for Project name:
  • Select "Apache Tomcat v7.0" for Target runtime
  • Check Generate web.xml deployment descriptor
  • Press the Finish button.

    Note: An additional folder named Servers should appear along with the project folder HelloWTP


  •  Profile | Reply Points Earned: 0
    Alex_Raj
    member
    offline   
     
    posts: 99
    joined: 05/16/2006
    from: San Jose, CA
      posted on: 08/07/2019 12:41:25 AM    Edit  |   Quote  |   Report 
    Turn On JavaScript Content Assist
    While coding JavaScript, you would like the code assistance same way as in Java.

    <html>
    <body>
    
    <script type="text/javascript">
    
    window.???
    
    </script>
    
    </body>
    </html>
    


    Here, a list of available functions should automatically pop-up after your typing window.. To achieve that, you need to enable it; otherwise you have to 'Ctrl+Space' to trigger it.

    How to activate it?

  • Go to Window > Preferences > JavaScript > Editor > Content Assist > Auto-Activation
  • Check Enable auto activation
  • Press OK


    Note: JavaScript Content Assist seems not to function starting from v4.6 Neon:

    Luna 4.4 (ok) --> Mars 4.5 (ok) --> Neon 4.6 (ko) --> Oxygen 4.7 (ko) --> Photon 4.8 (ko)

  •  Profile | Reply Points Earned: 0
    Alex_Raj
    member
    offline   
     
    posts: 99
    joined: 05/16/2006
    from: San Jose, CA
      posted on: 08/07/2019 09:39:36 PM    Edit  |   Quote  |   Report 
    How to intsall JSHint
    Starting from:

    https://marketplace.eclipse.org/content/jshint-eclipse


    Go to:

    https://github.com/eclipsesource/jshint-eclipse/releases


    Copy the URL address:

    http://github.eclipsesource.com/jshint-eclipse/updates/


    Then go to Eclipse: Help > Install New Software ... > Add

    Name: JSHint
    Location: http://github.eclipsesource.com/jshint-eclipse/updates/

    Restart Eclipse.

    Go to your project folder and create a file named .jshintrc with the following content:

    {
        "bitwise" : true,
        "camelcase" : false,
        "curly" : true,
        "eqeqeq" : true,
        "es3" : true,
        "forin" : true,
        "immed" : true,
        "latedef" : "nofunc",
        "newcap" : true,
        "noarg" : true,
        "noempty" : true,
        "nonew" : true,
        "plusplus" : false,
        "quotmark" : false,
        "undef" : true,
        "unused" : "vars",
        "strict" : false,
        "trailing" : true,
        "maxlen" : false,
        "laxbreak" : true,
        "globals" : {
            "window" : false,
            "document" : false,
            "jQuery" : false,
            "sap" : false,
            "cockpit" : false,
            "URI" : false,
            "getCurrentAccount" : false,
            "setTimeout" : false
        }
    }
    


    Finally, right-click on your project and go to Properties > JSHint . Specify which files and folders you want your JSHint to take effect on.
     Profile | Reply Points Earned: 0
    Alex_Raj
    member
    offline   
     
    posts: 99
    joined: 05/16/2006
    from: San Jose, CA
      posted on: 03/31/2021 10:56:19 PM    Edit  |   Quote  |   Report 
    Update on WTP's JavaScript Editor Issue
    It seems that Eclipse wants WWD to replace JSDT (JavaScript Development Tools)

    Check:
    -- Bug 564496 - After upgrade to Eclipse 2020-06 (4.16) the javascript editor is gone
    -- Javascript Editor function is gone after upgrade to Eclipse 2020-06

    Eclipse versions and support of JSDT

    Luna 4.4 (ok) --> Mars 4.5 (ok) --> Neon 4.6 (ko) --> Oxygen 4.7 (ko) --> Photon 4.8 (ko)

    2018-09 (4.9)
    2018-12 (4.10)
    2019-03 (4.11)
    2019-06 (4.12)
    2019-09 (4.13)
    2019-12 (4.14)
    2020-03 (4.15) -- (ok)
    2020-06 (4.16)
    2020-09 (4.17)
    2020-12 (4.18)
    2021-03 (4.19) -- (ko)

     Profile | Reply Points Earned: 0

     
    Powered by ForumEasy © 2003-2005, All Rights Reserved. | Privacy Policy | Terms of Use
     
    Get your own forum today. It's easy and free.