Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9017845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:22:29+00:00 2026-06-16T04:22:29+00:00

The company I work for uses Mac computers exclusively. While I like my Mac,

  • 0

The company I work for uses Mac computers exclusively. While I like my Mac, it is only a 13″ laptop so I decided to setup my environment on my Windows pc as I have two 24″ monitors to work from. I want to be able to use devMode so I can update the UI without having to recompile everything. I was wondering if there is an easy way to convert a bash shell script into a windows batch file. Im not experienced at all in creating batch files so any help would be greatly appreciated

edit: I used Cygwin and I get the error:

$ ./devMode_osx.sh
Listening for transport dt_socket at address: 5006
Error: Could not find or load main class com.google.gwt.dev.DevMode

Here’s the file

#!/bin/sh
#
# Startup script for hosted mode.
# You have to add MAVEN_REPO to your variables; for example:
#
# export MAVEN_REPO="/Users/james/.m2/repository"
#
MAVEN_REPO="C:/Users/James/.m2/repository"
JAVA_HOME="C:/Program Files (x86)/Java/jdk1.6.0_38"
PATH=$JAVA_HOME/bin:$PATH

APPDIR=`dirname $0`;

BASE_JAVA_SRC="$APPDIR/../src/main/java"
BASE_JAVA_CLASSES="$APPDIR/../target/classes"
BASE_RESOURCES="$APPDIR/../src/main/webapp/"
DOMAIN_JAVA_SRC="$APPDIR/../../sample-domain/src/main/java"
DOMAIN_JAVA_CLASSES="$APPDIR/../../sample-domain/target/classes"
DOMAIN_JAVA_RESOURCES="$APPDIR/../../sample-domain/src/main/resources"

GWT_USER="$MAVEN_REPO/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar"
GWT_DEV="$MAVEN_REPO/com/google/gwt/gwt-dev/2.3.0/gwt-dev-2.3.0.jar"
JAVAX_VALIDATION="$MAVEN_REPO/javax/validation/validation-api/1.0.0.GA/validation-api-        1.0.0.GA.jar"
JAVAX_VALIDATION_SRC="$MAVEN_REPO/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA-sources.jar"

JVMARGS="-agentlib:jdwp=transport=dt_socket,address=5006,server=y,suspend=n"

#MP: run HostedMode with 'war' parameter set, as below, to specify, where the gwt output files are written to
#-war $BASE_RESOURCES

java $JVMARGS -XX:PermSize=256m -Xmx900M -Xms900M -cp "$BASE_JAVA_SRC:$BASE_JAVA_CLASSES:$BASE_RESOURCES:$GWT_USER:$GWT_DEV:$JAVAX_VALIDATION:$JA    VAX_VALIDATION_SRC:$DOMAIN_JAVA_SRC:$DOMAIN_JAVA_CLASSES:$DOMAIN_JAVA_RESOURCES" \
com.google.gwt.dev.DevMode \
-startupUrl Sample.html com.ngcompliance.web.gwt.Sample\
-noserver -port 9999 -war $BASE_RESOURCES
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T04:22:30+00:00Added an answer on June 16, 2026 at 4:22 am

    Two approaches:

    1. Use Cygwin (www.cygwin.com) to run a Bash shell script under Windows.

    2. Take a basic batch programming tutorial.

      Pay attention to the part of setting and accessing variables.

      And then try to modify your bash script


      Hint 1 setting variables

      instead of

      MAVEN_REPO="C:/Users/James/.m2/repository"
      

      use

      SET MAVEN_REPO="C:/Users/James/.m2/repository"
      

      Hint 2 using variables

      instead of

      BASE_JAVA_SRC="$APPDIR/../src/main/java"
      

      use

      SET BASE_JAVA_SRC="%APPDIR%/../src/main/java"
      

      Hint 3 review use of external commands and SO idiosyncrasies

      instead of

      APPDIR=`dirname $0`;
      

      use

      SET APPDIR=%~dp0
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My company uses raw, untyped DataSets filled via Stored Procedures exclusively. I have been
My company only uses MS Office 2003 products so I have to stick to
The company I work for exclusively uses Clearcase. I feel it is not worth
The company I work for uses a large Jenkins server with a large number
The company I work for currently uses some basic functions to abstract the OCI
The company I work for is looking to implement a caching solution. We have
Our company does work environment surveys, and these surveys are filled in online. All
The company I work for now uses a set naming convention for their C#
I work for a web development company that uses Mercurial as its DVCS of
A company I work for sometimes uses super mandatory profiles for their users. Unfortunately

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.