J2EE中那些忘却的~
关于Eclipse配置Tomcat7时的错误Cannot create a server using the selected type

修改/更新 Linux下原有的JDK/JRE

regding posted @ 2012年2月25日 04:24 in Java with tags java jre linux jdk , 4549 阅读

从官网下载的JDK是1.7x的。不过我的fedora15里默认安装的JRE是1.6x。结果导致使用JDK1.7x编译的class文件在JRE1.6x上无法解释。具体原因没有去考证。所以简单的解决这个问题,将JRE也更新到JRE1.7x。

其实JDK中也包含解释环境,所以没有必要再下载一个JRE,直接用JDK自带得java解释器就好。

于是乎,改/etc/profile啊之类的,加JAVA_HOME等都没有解决问题~

得,来个狠的。直接用自己安转的代替原有的。

 

# cd /usr/bin
# ln -s -f   /opt/jdk1.7.0_03/bin/java
# ln -s -f  /opt/jdk1.7.0_03/bin/javac

 

java -version确认一下~OK

 

技术还真是不碰就忘得一干二净……

Mike 说:
2012年2月27日 01:35

其实Fedora不是打包了1.7的OpenJDK了么?。。。

sudo yum install java-1.7.0-openjdk

Avatar_small
regding 说:
2012年2月27日 15:26

@Mike: 恩~不过还是喜欢瞎折腾,不喜欢用openJDK

cleaning companies d 说:
2020年2月23日 22:09

When you finalize a new commercial cleanup service, be sure you take quotations from at the least top about three commercial cleanup service firms. A specialized company would likely always need to meet anyone and please take a tour of your respective facility ahead of drawing way up a offer. Each place is unique in sizing and structure, so the charge will vary much like the hard work required to do.

seo 说:
2021年6月17日 08:28

You have a real talent for writing unique content. I like how you think and the way you express your views in this article. I am impressed by your writing style a lot. Thanks for making my experience more beautiful.에볼루션게임

seo 说:
2021年6月18日 05:02

I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post. daceasy


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter