1. Download the stax, and then uncompress it.
http://stax-downloads.s3.amazonaws.com/sdk/stax-sdk-0.3.8-dist.zip
2. Set the enviroment, open the file ~/.bash_profile (in fact that you may have to create it)
![](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
#
I'm using Ubuntu 10.4, and the java has been installed, I don't why I still have to set the path to java,
# if not, I will got the error "groovy: JAVA_HOME not set and cannot find javac to deduce location, please set JAVA_HOME."
export JAVA_HOME =/ usr
export PATH = $PATH : $JAVA_HOME
export STAX_HOME = ~ / stax - sdk - 0.3 . 8
export PATH = $PATH : $STAX_HOME
# if not, I will got the error "groovy: JAVA_HOME not set and cannot find javac to deduce location, please set JAVA_HOME."
export JAVA_HOME =/ usr
export PATH = $PATH : $JAVA_HOME
export STAX_HOME = ~ / stax - sdk - 0.3 . 8
export PATH = $PATH : $STAX_HOME
3. Refresh your terminal's bash session by executing
source ~
/
.bash_profile
4. Run and finish the details of installation of stax
stax
And I got the message as below:
![](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
Downloading Stax SDK configuration from http:
//
stax
-
downloads.s3.amazonaws.com
/
sdk
/
stax
-
sdk
-
config
-
0.3
.
3
.xml
.
download completed
usage: stax subcommand [options] [arguments]
Stax command - line client, version 0.3 . 8
Type 'stax help <subcommand > ' for help on a specific subcommand.
Project subcommands:
clean
compile
create
deploy
getapp
run
App subcommands:
app:delete
app:deploy
app:info
app:list
app:restart
app:tail
DB subcommands:
db:create
db:delete
db:info
db:list
.
download completed
usage: stax subcommand [options] [arguments]
Stax command - line client, version 0.3 . 8
Type 'stax help <subcommand > ' for help on a specific subcommand.
Project subcommands:
clean
compile
create
deploy
getapp
run
App subcommands:
app:delete
app:deploy
app:info
app:list
app:restart
app:tail
DB subcommands:
db:create
db:delete
db:info
db:list