• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

GWT and the Mac

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So while on vacation and waiting for the new house to be ready, I've been doing a bit of searching online and came across both echo2 and echo3 and gwt. I know they've been out a while but I haven't really looking into nifty stuff.

Anyway, using gwt is kind of a pain as for as the applicationCreator and projectCreator go. What I'd very much like to do is either make a script to execute them or make them into bash commands.

Currently I have to go to the GWT home directory and do something like
./applicationCreator -eclipse <namestuff> -out <the directory I'd like them to go to>
but what I really want to do is
applicationCreator -eclipse <namestuff> and be in the directory I want them to be in already by navigating there in terminal.

Any suggestions?
 
Marshal
Posts: 67279
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add it to the PATH? Create an alias? Move it to one of the system bin folders? Choose one.

(That said, some programs are written badly and can only work when the cd is set just so. Hope this isn't one of them.)
 
Nathan Leniz
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Haven't tried adding it to the path but...

trying to set an alias doesn't work at all because in order to invoke projectCreator or applicationCreator requires me to do
./applicationCreator
./projectCreator

And when I copy them to /usr/bin after logging in as the super user in terminal and trying to use them as native bash commands it throws a java error.

Ok, some searching on google shows setting the path using the setenv bash command, but on my mac it doesn't recognize the command.
 
Bear Bibeault
Marshal
Posts: 67279
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To set environment variables in bash:


[ July 13, 2008: Message edited by: Bear Bibeault ]
 
We cannot change unless we survive, but we will not survive unless we change. Evolving tiny ad:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!