﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-xiaomage234-随笔分类-go</title><link>http://www.blogjava.net/xiaomage234/category/54372.html</link><description>生命本就是一次凄美的漂流，记忆中放不下的，永远是孩提时代的那一份浪漫与纯真！</description><language>zh-cn</language><lastBuildDate>Tue, 20 May 2014 08:56:35 GMT</lastBuildDate><pubDate>Tue, 20 May 2014 08:56:35 GMT</pubDate><ttl>60</ttl><item><title>Go 环境搭建，LINUX/Windows</title><link>http://www.blogjava.net/xiaomage234/archive/2014/05/20/413882.html</link><dc:creator>小马歌</dc:creator><author>小马歌</author><pubDate>Tue, 20 May 2014 08:45:00 GMT</pubDate><guid>http://www.blogjava.net/xiaomage234/archive/2014/05/20/413882.html</guid><wfw:comment>http://www.blogjava.net/xiaomage234/comments/413882.html</wfw:comment><comments>http://www.blogjava.net/xiaomage234/archive/2014/05/20/413882.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/xiaomage234/comments/commentRss/413882.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/xiaomage234/services/trackbacks/413882.html</trackback:ping><description><![CDATA[<p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif;"><span style="line-height: 25px;">from:</span></span><span style="font-family: verdana, 'courier new'; line-height: 21px;">http://blog.csdn.net/marshalchen/article/details/12401597</span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif;"><span style="line-height: 25px;">Go语言的hello world！代码:</span></span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif;"></span></p><div bg_java"="" style="width: 687.0499877929688px; color: #333333; line-height: 26px;"><div><div style="border-left-color: #999999;"><strong>[java]</strong>&nbsp;<a target="_blank" href="http://blog.csdn.net/love_se/article/details/7754274#" title="view plain" style="background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_plain.gif); display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-position: 0% 0%; background-repeat: no-repeat no-repeat;">view plain</a><a target="_blank" href="http://blog.csdn.net/love_se/article/details/7754274#" title="copy" style="background-image: url(http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/images/default/ico_copy.gif); display: inline-block; width: 16px; height: 16px; text-indent: -2000px; background-position: 0% 0%; background-repeat: no-repeat no-repeat;">copy</a><div style="position: absolute; left: 673px; top: 900px; width: 24px; height: 11px; z-index: 99;"></div><div style="position: absolute; left: 672px; top: 426px; width: 16px; height: 16px; z-index: 99;"></div></div></div><ol start="1"><li style="border-left-color: #999999; background-color: #f5fae2; line-height: 17.600000381469727px;"><span style="color: blue;">package</span>&nbsp;main&nbsp;&nbsp;</li><li style="border-left-color: #999999; background-color: #f5fae2; color: #555555; line-height: 17.600000381469727px;">&nbsp;&nbsp;</li><li style="border-left-color: #999999; background-color: #f5fae2; line-height: 17.600000381469727px;"><span style="color: blue;">import</span>&nbsp;<span style="color: red;">"fmt"</span>&nbsp;&nbsp;</li><li style="border-left-color: #999999; background-color: #f5fae2; color: #555555; line-height: 17.600000381469727px;">&nbsp;&nbsp;</li><li style="border-left-color: #999999; background-color: #f5fae2; line-height: 17.600000381469727px;">func&nbsp;main()&nbsp;{&nbsp;&nbsp;</li><li style="border-left-color: #999999; background-color: #f5fae2; color: #555555; line-height: 17.600000381469727px;">&nbsp;&nbsp;&nbsp;&nbsp;fmt.Println(<span style="color: red;">"Hello,&nbsp;世界"</span>)&nbsp;&nbsp;</li><li style="border-left-color: #999999; background-color: #f5fae2; line-height: 17.600000381469727px;">}&nbsp;&nbsp;</li></ol></div><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px;"><br /></span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px;">接下来为大家带来，Go开发环境的安装。</span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif;"></span></p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;">　　首先是<span style="line-height: 1.8; color: #ff0000;"><em><strong>安装Go</strong></em></span>，这里有很详细的安装说明，<a target="_blank" href="http://code.google.com/p/golang-china/wiki/Install" style="color: #336699; text-decoration: none;">http://code.google.com/p/golang-china/wiki/Install</a>&nbsp;或者<a target="_blank" href="http://golang.org/doc/install" style="color: #336699; text-decoration: none;">http://golang.org/doc/install</a></p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;">下面我们在window下面安装，google有提供win安装包，对于新手还是非常简单的！</p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;"><a target="_blank" href="https://code.google.com/p/go/downloads/list" style="color: #336699; text-decoration: none;">https://code.google.com/p/go/downloads/list</a><br /></p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;">直接下一步.......安装非常简单！</p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;"></p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;">　　安装好Go以后，我们就可以<span style="line-height: 1.8; color: #ff0000;"><em><strong>搭建开发环境</strong></em></span>了，这里我用的是 Sublime Text 2 + GoSublime + gocode。对于不了解Sublime Text 2的朋友，可以看看官网:<a target="_blank" href="http://www.sublimetext.com/" style="color: #336699; text-decoration: none;">http://www.sublimetext.com/</a>(总的来说是一个轻量级，用起来很方便的工具)</p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;"></p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;">1. 下载 Sublime Text 2，地址如下：<a target="_blank" href="http://www.sublimetext.com/" style="color: #3d81ee; text-decoration: none; outline-style: none; border-bottom-width: 1px; border-bottom-style: dashed;">http://www.sublimetext.com/</a></p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;">2. 解压以后，双击 sublime_text，就可以使用 Sublime Text 2 了。</p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;">3. 安装&nbsp;<a target="_blank" href="http://wbond.net/sublime_packages/package_control" style="color: #3d81ee; text-decoration: none; outline-style: none; border-bottom-width: 1px; border-bottom-style: dashed;">Package Control</a>，在打开 Sublime Text 2以后，按下快捷键&nbsp;<span style="line-height: 1.8; color: #ff0000;"><strong>Ctrl + `</strong></span>，打开命令窗行，<span style="line-height: 1.8; color: #ff0000;">｀</span>这个按键在Tab键的上面，我刚开始还没找到，呵呵。输入以下内容，并回车：</p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;">　　<span style="line-height: 1.8;">import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation'</span></p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;">4. 重启Sublime Text 2后，就<span style="line-height: 1.8;">可以发现在 Preferences菜单下，多出一个菜单项 Package Control。</span></p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;"><span style="line-height: 1.8;">5.现在安装GoSublime插件了，按住Ctrl+Shilft+p会弹出一个对话框</span></p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;"><span style="line-height: 1.8;"><img src="http://my.csdn.net/uploads/201207/17/1342495258_3820.png" alt="" style="border: none; max-width: 100%;" /><br /></span></p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;"><span style="line-height: 1.8;">输入install回车弹出一个安装包的对话框</span></p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;"><span style="line-height: 1.8;"><img src="http://my.csdn.net/uploads/201207/17/1342495553_6970.png" alt="" style="border: none; max-width: 100%;" /><br /></span></p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;"><span style="line-height: 1.8;">如入GoSublime选择GoSublime回车</span></p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;"><span style="line-height: 1.8;">输入Go build选中回车（这个属于可选）</span></p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;"><span style="line-height: 1.8;">搞定，GoSublime安装成功。</span></p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;">6.下面<span style="line-height: 1.8;">安装<a target="_blank" href="https://github.com/nsf/gocode" style="color: #3d81ee; text-decoration: none; outline-style: none; border-bottom-width: 1px; border-bottom-style: dashed;">gocode</a></span><span style="line-height: 1.8;">，</span></p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;"><span style="line-height: 1.8;"><span style="line-height: 1.8;">打开控制台，输入以下内容：</span><br /></span></p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;"><span style="line-height: 1.8;"><span style="line-height: 1.8;">　　　　<span style="line-height: 1.8;">go get&nbsp;<span style="line-height: 1.8;">github.com/nsf/gocode</span></span></span></span></p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;"><span style="line-height: 1.8;"><span style="line-height: 1.8;">　　　　<span style="line-height: 1.8;"><span style="line-height: 1.8;">go install&nbsp;<span style="line-height: 1.8;">github.com/nsf/gocode</span></span></span></span></span></p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;"><span style="line-height: 1.8;">也可以去github下载<a target="_blank" href="https://github.com/nsf/gocode.git" style="color: #336699; text-decoration: none;">https://github.com/nsf/gocode.git</a>（要安装google的git版本管理工具）</span></p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;"><span style="line-height: 1.8;">　　安装完成后，我们可以在 go/bin 目录下，发现多出了个 gocode 文件。（一定要放在bin目录下）</span></p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;"><span style="line-height: 1.8;">7. 修改GoSublime配置：在&nbsp;<span style="line-height: 1.8;"><span style="line-height: 1.8;"><span style="line-height: 1.8;">Preferences</span></span></span>菜单下，找到Package Settings，然后找到&nbsp;<span style="line-height: 1.8;"><span style="line-height: 1.8;">GoSublime</span></span>，再往下找到 Settings - Default。再打开的文件中，添加如下配置，并保存：</span></p><p style="color: #333333; background-color: #ffffff; line-height: 25px; margin-top: 12px; margin-bottom: 12px; font-family: Georgia, 'Times New Roman', Times, san-serif;"><span style="line-height: 1.8;"><img src="http://my.csdn.net/uploads/201207/17/1342494236_3173.png" alt="" style="border: none; max-width: 100%;" /><br /></span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px;">好了，到目前为止，开发环境搭建完成。<br /></span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px;">打开&nbsp;</span><span style="line-height: 25px; font-family: Georgia, 'Times New Roman', Times, san-serif;"><span style="line-height: 1.8;">Sublime Text 2</span></span><span style="font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px;">，新建 helloworld.go，编写代码如下：</span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px;">见证Go代码自动提示的时刻了</span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px;">输入一个p</span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px;"><img src="http://my.csdn.net/uploads/201207/17/1342495981_5526.png" alt="" style="border: none; max-width: 100%;" /><br /></span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px;">回车（enter键）</span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px;"><img src="http://my.csdn.net/uploads/201207/17/1342496011_9195.png" alt="" style="border: none; max-width: 100%;" /><br /></span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px;">main方法，包自动给你生成了。</span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px;">下面是一个打印的例子：</span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px;"><img src="http://my.csdn.net/uploads/201207/17/1342495860_4302.png" alt="" style="border: none; max-width: 100%;" /><br /></span></p><br style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;" /><br style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;" /><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif;"><span style="line-height: 25px;">按下快捷键&nbsp;<strong><span style="line-height: 1.8; color: #ff0000;">Ctrl + b</span></strong>&nbsp;界面下方会出现如下界面：<br /></span></span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif;"><span style="line-height: 25px;"><img src="http://my.csdn.net/uploads/201207/17/1342496239_5991.png" alt="" style="border: none; max-width: 100%;" /><br /></span></span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px;"><br /></span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px;">输入 go build hello.go<br /></span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px;"><img src="http://my.csdn.net/uploads/201207/17/1342496289_4284.png" alt="" style="border: none; max-width: 100%;" /><br /></span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px;">运行，同样 按下快捷键&nbsp;<strong><span style="line-height: 1.8; color: #ff0000;">Ctrl + b</span></strong>&nbsp;界面下方会出现如下界面，输入 hello回车 。如图：<br /></span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px;"><img src="http://my.csdn.net/uploads/201207/17/1342496342_6597.png" alt="" style="border: none; max-width: 100%;" /><br /></span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px;">好了，到现在，开发环境就搭建完毕了，希望大家也来学习Go这门语言。<br /></span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-family: Georgia, 'Times New Roman', Times, san-serif; line-height: 25px;"><br /></span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;">新手入门参考:</p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><a target="_blank" href="http://mikespook.com/learning-go" style="color: #336699; text-decoration: none;">新手入门api</a>是我见过的最好的新手入门文档,希望go能发扬光大。</p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><br /></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;">上述内容转载<a target="_blank" href="http://blog.csdn.net/love_se/article/details/7754274" style="color: #336699; text-decoration: none;">http://blog.csdn.net/love_se/article/details/7754274</a>&nbsp;</p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><br /></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><br /></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;">但是linux下需要再变通的配置了</p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;">环境变量部分：</p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;">修改<span style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 20px;">/etc/profile或者.bashrc或者.bash_profile</span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><br /></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;">如同JDK般加入</p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;"><span style="font-size: 14.399999618530273px;">export JAVA_HOME=/usr/lib/jvm/java-7-sun &nbsp;</span></p><p style="color: #333333; font-family: Arial; font-size: 14.399999618530273px; line-height: 26px; background-color: #ffffff;">export JRE_HOME=${JAVA_HOME}/jre &nbsp;<br />export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib &nbsp;<br />export PATH=${JAVA_HOME}/bin:$PATH&nbsp;</p><div></div><img src ="http://www.blogjava.net/xiaomage234/aggbug/413882.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/xiaomage234/" target="_blank">小马歌</a> 2014-05-20 16:45 <a href="http://www.blogjava.net/xiaomage234/archive/2014/05/20/413882.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>