You may want to check your OS documentation on updating Java versions. For example, Ubuntu provides the update-java-alternatives utility (http://manpages.ubuntu.com/manpages/natty/man8/update-java-alternatives.8.html).
Or else you can also create a symlink in your user directory and add it to your PATH. e.g. mkdir -p $HOME/bin ln -s /usr/java $HOME/bin/java export PATH=$HOME/bin:$PATH -jack On 11-06-03 12:06 PM, "Zhiliang" <[email protected]> wrote: Peter - Thank you for the quick reply. My "/usr/bin/java -version" gives 1.4.2. I downloaded and installed jre 1.6.0_25 in /usr/java -- Wonder how can I make the new location as the default and remove the old one from the system? (all online instructions for removing old version is to remove /usr/java or uninstall from original rpm but mine is installed with the OS). Thanks, Zhiliang On Fri, 3 Jun 2011, Peter Ansell wrote: > Date: Fri, 3 Jun 2011 08:13:19 +1000 > From: Peter Ansell <[email protected]> > To: Zhiliang <[email protected]> > Cc: BioMart Users <[email protected]> > Subject: Re: [BioMart Users] quick install errors > > What version of java are you using? This code may not be compatible > with old versions. > > You can check by running "java -version" > > For example, on my Mac OSX machine, it returns > > $ java -version > java version "1.6.0_24" > Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326) > Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode) > > Cheers, > > Peter > > On 3 June 2011 08:00, Zhiliang <[email protected]> wrote: >> >> I try to install Biomart on a new RHEL5 server and got follow problems: >> >> I followed Quick Start steps in the BioMart 0.8 User Manual: >>> >>> svn checkout >>> > https://code.oicr.on.ca/svn/biomart/biomart-java/branches/release-0_8-candida > te_6/ >> >> Upon this step: >>> >>> ant >> >> I got following errors: >> >> compile.main: >> Â Â [javac] /usr/local/biomart/build.xml:33: warning: 'includeantruntime' > was >> not set, defaulting to build.sysclasspath=last; set to false for repeatable >> builds >> Â Â [javac] Compiling 527 source files to >> /usr/local/biomart/build/classes/main >> Â Â [javac] ---------- >> Â Â [javac] 1. ERROR in >> /usr/local/biomart/src/org/biomart/api/enums/Operation.java (at line 1) >> Â Â [javac] Â Â package org.biomart.api.enums; >> Â Â [javac] Â Â ^^ >> Â Â [javac] The type Enum is not generic; it cannot be parameterized with >> arguments <Operation> >> Â Â [javac] ---------- >> Â Â [javac] 1 problem (1 error) >> >> BUILD FAILED >> >> I am not a java person - wonder what was wrong and what should I do? >> >> Thank you, >> Zhiliang >> _______________________________________________ >> Users mailing list >> [email protected] >> https://lists.biomart.org/mailman/listinfo/users >> >
_______________________________________________ Users mailing list [email protected] https://lists.biomart.org/mailman/listinfo/users
