<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>生信菜鸟团 &#187; 环境变量</title>
	<atom:link href="http://www.bio-info-trainee.com/tag/%e7%8e%af%e5%a2%83%e5%8f%98%e9%87%8f/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bio-info-trainee.com</link>
	<description>欢迎去论坛biotrainee.com留言参与讨论，或者关注同名微信公众号biotrainee</description>
	<lastBuildDate>Sat, 28 Jun 2025 14:30:13 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.33</generator>
	<item>
		<title>java环境变量的问题</title>
		<link>http://www.bio-info-trainee.com/2036.html</link>
		<comments>http://www.bio-info-trainee.com/2036.html#comments</comments>
		<pubDate>Wed, 23 Nov 2016 11:34:30 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[生信基础]]></category>
		<category><![CDATA[EXE4J_JAVA_HOME]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[环境变量]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=2036</guid>
		<description><![CDATA[有篇文章提到了cytoscape，想着一直没用过这个神器对不起我生信大神的称号呀 &#8230; <a href="http://www.bio-info-trainee.com/2036.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div>有篇文章提到了cytoscape，想着一直没用过这个神器对不起我生信大神的称号呀，就下载了准备安装，居然报错了，简直不可思议，因为一直以为它是java软件，一般不需要安装，结果是exe的，只是依赖于java，报错是EXE4J_JAVA_HOME, No JVM could be found on your system，这是个很常见的错误，我 简单搜索了解决方案<a href="https://wincrunch.com/exe4j-java-home-no-jvm-could-be-found-on-your-system/">https://wincrunch.com/exe4j-java-home-no-jvm-could-be-found-on-your-system/</a> 居然无效，但是里面有句话引起了我的注意，通常64位的window电脑的java是安装在Program Files 而不是Program Files (x86)，这才是问题所在，我当初图简单，直接用了JDK来安装JRE，<span style="color: #ff0000;">所以导致软件安装目录错误</span>。有非常多的生物信息学软件都依赖与java，比如IGV,GSEA,cytoscape，一般来说window电脑安装好了java之后这些软件都挺好用的。那么关于java问题，我整理了3个：</div>
<p><span id="more-2036"></span></p>
<div></div>
<div>首先是下载JDK还是JRE的问题：</div>
<div><a href="http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html">http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html</a></div>
<div><a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">http://www.oracle.com/technetwork/java/javase/downloads/index.html</a></div>
<div>都可以的，推荐安装JDK！</div>
<div></div>
<div>然后是安装到 “Program Files”还是 “Program Files (x86)”的问题？</div>
<div>现在的电脑都是64位的了，应该安装到Program Files 而不是Program Files (x86)</div>
<div></div>
<div>最后是可以安装多个版本吗？很明显，是可以的</div>
<div><img src="C:\Users\jimmy1314\AppData\Local\YNote\data\jmzeng1314@163.com\154194fb110c495e9ae0e3005ca19525\clipboard.png" alt="" data-media-type="image" data-attr-org-src-id="0E221D9CF2C444E79BBA38D459D743BF" /></div>
<div><a href="http://www.bio-info-trainee.com/wp-content/uploads/2016/11/13.png"><img class="alignnone size-full wp-image-2037" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/11/13.png" alt="1" width="482" height="135" /></a></div>
<div>一旦安装了 JDK，您即可设置 JAVA_HOME。需要修改环境变量，大家自行搜索吧，</div>
<div>CLASSPATH设置为.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;</div>
<div>EXE4J_JAVA_HOME设置为C:\Program Files\Java\jre1.8.0_112\bin ## 我这里安装了两个jre</div>
<div>JAVA_HOME设置为C:\Program Files\Java\jdk1.8.0_111\bin</div>
<div></div>
<div><img class="alignnone size-full wp-image-2038" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/11/21.png" alt="2" width="539" height="294" /></div>
<div></div>
<div><img class="alignnone size-full wp-image-2039" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/11/3.png" alt="3" width="531" height="294" /></div>
<div></div>
<div></div>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/2036.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>perl程序技巧-检验系统环境或模块安装</title>
		<link>http://www.bio-info-trainee.com/1479.html</link>
		<comments>http://www.bio-info-trainee.com/1479.html#comments</comments>
		<pubDate>Tue, 15 Mar 2016 12:12:34 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[perl]]></category>
		<category><![CDATA[模块]]></category>
		<category><![CDATA[环境变量]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=1479</guid>
		<description><![CDATA[这个程序是我在VirusFinder里面发现的，大家可以自行搜索它！ 非常好用， &#8230; <a href="http://www.bio-info-trainee.com/1479.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>这个程序是我在VirusFinder里面发现的，大家可以自行搜索它！</p>
<p>非常好用，建议大家写程序都可以加上这个！</p>
<blockquote>
<div>print "\nChecking Java version...\n\n";</div>
<div></div>
<div>my $ret = `java -version 2&gt;&amp;1`;</div>
<div>print "$ret\n";</div>
<div></div>
<div>if (index($ret, '1.6') == -1) {</div>
<div>    printf "Warning: The tool Trinity of the Broad Institute may require Java 1.6.\n\n";</div>
<div>}</div>
<div></div>
<div></div>
<div>print "\nChecking SAMtools...\n\n";</div>
<div></div>
<div>$ret = `which samtools 2&gt;&amp;1`;</div>
<div>if (index($ret, 'no samtools') == -1) {</div>
<div>    printf "%-30s\tOK\n\n", 'SAMtools';</div>
<div>}else{</div>
<div>    printf "%-30s\tnot found\n\n", 'SAMtools';</div>
<div>}</div>
<div></div>
<div></div>
<div>my @required_modules = ("Bio::DB::Sam",</div>
<div>                        "Bio::DB::Sam::Constants",</div>
<div>                        "Bio::SeqIO",</div>
<div>                        "Bio::SearchIO",</div>
<div>                        "Carp",</div>
<div>                        "Config::General",</div>
<div>                        "Cwd",</div>
<div>                        "Data::Dumper",</div>
<div>                        "English",</div>
<div>                        "File::Basename",</div>
<div>                        "File::Copy",</div>
<div>                        "File::Path",</div>
<div>                        "File::Spec",</div>
<div>                        "File::Temp",</div>
<div>                        "FindBin",</div>
<div>                        "Getopt::Std",</div>
<div>                        "Getopt::Long",</div>
<div>                        "IO::Handle",</div>
<div>                        "List::MoreUtils",</div>
<div>                        "Pod::Usage",</div>
<div>                        "threads");</div>
<div></div>
<div>print "\nChecking CPAN modules required by VirusFinder...\n\n";</div>
<div>my $count = 0;</div>
<div>for my $module (@required_modules){</div>
<div></div>
<div>eval("use $module");</div>
<div>if ($@) {</div>
<div>printf "%-30s\tFailed\n", $module;</div>
<div>                $count++;</div>
<div>}</div>
<div>else {</div>
<div>printf "%-30s\tOK\n",     $module;</div>
<div>}</div>
<div>}</div>
<div></div>
<div>if ($count==1){</div>
<div>print "\n\nOne module may not be installed properly.\n\n";</div>
<div>}elsif ($count &gt; 1){</div>
<div>print "\n\n$count modules may not be installed properly.\n\n";</div>
<div>}else{</div>
<div>print "\n\nAll CPAN modules checked!\n\n";</div>
<div>}</div>
</blockquote>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/1479.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu服务器解决方案第六讲-添加环境变量</title>
		<link>http://www.bio-info-trainee.com/569.html</link>
		<comments>http://www.bio-info-trainee.com/569.html#comments</comments>
		<pubDate>Wed, 01 Apr 2015 02:32:15 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[服务器]]></category>
		<category><![CDATA[环境变量]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=569</guid>
		<description><![CDATA[发现自己搞服务器遇到的困难还是蛮多的，所以记录了一下，给菜鸟们指个路。 ubun &#8230; <a href="http://www.bio-info-trainee.com/569.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>发现自己搞服务器遇到的困难还是蛮多的，所以记录了一下，给菜鸟们指个路。<br />
ubuntu对生信菜鸟来说是最好用的linux服务器，没有之一，因为它有apt-get。</p>
<p>在我的第一讲里面，对JAVA的安装，其实就需要添加环境变量，大家可以回头看看！</p>
<p>添加PATH环境变量，第1种方法：</p>
<p>[root@lx_web_s1 ~]# export PATH=/usr/local/webserver/mysql/bin:$PATH</p>
<p>再次查看：</p>
<p>[root@lx_web_s1 ~]# echo $PATH</p>
<p>/usr/local/webserver/mysql/bin:/usr/local/webserver/mysql/bin/:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin</p>
<p>说明添加PATH成功。</p>
<p>上述方法的PATH 在终端关闭 后就会消失。所以还是建议通过编辑/etc/profile来改PATH，也可以修改家目录下的.bashrc(即：~/.bashrc)。</p>
<p>第2种方法：需要管理员权限。</p>
<p># vim /etc/profile</p>
<p>在最后，添加:</p>
<p>export PATH="/usr/local/webserver/mysql/bin:$PATH"</p>
<p>保存，退出，然后运行：</p>
<p>#source /etc/profile，不报错则成功。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/569.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
