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

2012年2月25日 04:24

从官网下载的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

 

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

Tags: java jre linux jdk
评论(5) 阅读(4554)

About Persistent USB

2011年11月19日 16:47

I want make my persistent USB like:  URL: http://www.backtrack-linux.org/wiki/index.php/Persistent_USB

So I download Backtrack5 ISO file and want install it into USB disk that size is 16G.

 

My ENV:

Linux distro: Fedora 15

Linux distro: Backtrack 5 (ISO file want install to USB disk)

syslinux: version 4.02

USB disk: 16G and partition like:

         /dev/sdb1   *     FAT32    2.5G

         /dev/sdb2          Linux      -

 

Copy all file from ISO file to /dev/sdb1 and make it bootable by syslinux.

When I reboot, error displayed like:

boot:

vesamenu.c32 NOT a COM32R IMAGE

 

And I search in google, someone saied it's may be version different between syslinux and boot.cat.

So I download boot.iso bootable version 4.x. But it can't be work.

 

Another method is copy vesamenu.c32 file to USB from your linux.

So I copy /usr/share/syslinux/vesamenu.c32(My system is fedora 15, anothers system may be have some different) to USB disk.

Ok, reboot~

Success~~~~~~~~

(PS: In backtrack not have Chinese input~, ibus and SCIM can not be work, so  I just can ues English~ I know my English is so poor~  May be I can write it better if I can input Chinese or Japanese~  :)

Tags: linux Persistent USB Backtrack vesamenu.c32 syslinux
评论(0) 阅读(2402)