Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: working with GWT plugin for eclipse

  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default working with GWT plugin for eclipse

    Hi everyone

    i am a junior java developer

    it is my first time working with google web toolkit as a plugin of eclipse

    i tried to seach for the solution on google on how can i solve my problem

    when i run my project,the browser requires me to install gwt developer plugin for chrome browser,then to restart the browser
    Then after install my gwt developer plugin,i get this problem :

    plugin failed to connect to developer mode server at 127.0.0.1:9997

    also getting onModuleLoad() threw an exception : java.lang.reflect.InvocationTargetException

    i tried to use all solution i got from my search engine,but stil i'm facing the same problem

    My simple GUI source Code
    package com.StockWatcher.client;
     
    import com.google.gwt.core.client.EntryPoint;
    import com.google.gwt.user.client.ui.Button;
    import com.google.gwt.user.client.ui.FlexTable;
    import com.google.gwt.user.client.ui.HorizontalPanel;
    import com.google.gwt.user.client.ui.Label;
    import com.google.gwt.user.client.ui.RootPanel;
    import com.google.gwt.user.client.ui.TextBox;
    import com.google.gwt.user.client.ui.VerticalPanel;
     
    public class StockWatcherApplication implements EntryPoint {
     
      private VerticalPanel mainPanel = new VerticalPanel();
      private FlexTable stocksFlexTable = new FlexTable();
      private HorizontalPanel addPanel = new HorizontalPanel();
      private TextBox newSymbolTextBox = new TextBox();
      private Button addStockButton = new Button("Add");
      private Label lastUpdatedLabel = new Label();
     
      /**
       * Entry point method.
       */
      public void onModuleLoad() {
        // Create table for stock data.
        stocksFlexTable.setText(0, 0, "Symbol");
        stocksFlexTable.setText(0, 1, "Price");
        stocksFlexTable.setText(0, 2, "Change");
        stocksFlexTable.setText(0, 3, "Remove");
     
        // Assemble Add Stock panel.
        addPanel.add(newSymbolTextBox);
        addPanel.add(addStockButton);
     
        // Assemble Main panel.
        mainPanel.add(stocksFlexTable);
        mainPanel.add(addPanel);
        mainPanel.add(lastUpdatedLabel);
     
        // Associate the Main panel with the HTML host page.
        RootPanel.get("stockList").add(mainPanel);
     
        // Move cursor focus to the input box.
        newSymbolTextBox.setFocus(true);
     
      }
     
    }
    any ideas or guideline
    thanks to all of you

    hoping to get i feedback as soon as possible

    Tshepo
    Last edited by hlahane.tshepo; September 7th, 2011 at 01:55 AM.


  2. #2
    Super Moderator Sean4u's Avatar
    Join Date
    Jul 2011
    Location
    Tavistock, UK
    Posts
    637
    Thanks
    5
    Thanked 103 Times in 93 Posts

    Default Re: working with GWT plugin for eclipse

    Cross-posted here:
    gwt - plugin failed to connect to development mode server at 127.0.0.1 - Stack Overflow
    Let me google that for you

Similar Threads

  1. java code not working right. loading.. not using plugin on computer
    By Nodnarbrox in forum What's Wrong With My Code?
    Replies: 5
    Last Post: August 24th, 2011, 12:08 PM
  2. Code is working in Eclipse but when exported to Runnable Jar doesn't work
    By jjain.jitendra@gmail.com in forum What's Wrong With My Code?
    Replies: 1
    Last Post: August 24th, 2011, 07:12 AM
  3. how to add adt(android plugin) to eclipse from zip file ???
    By mahdi in forum Android Development
    Replies: 2
    Last Post: July 9th, 2011, 02:32 PM
  4. Eclipse plugin - Analyzing a package
    By dunnkers in forum Java Theory & Questions
    Replies: 0
    Last Post: March 12th, 2011, 05:27 PM
  5. Eclipse Servlet Plugin
    By Sanmeet in forum Java IDEs
    Replies: 2
    Last Post: February 23rd, 2011, 02:01 AM

Tags for this Thread