[Sussex] vvv confused with java - jre, sdk and jvm
Steve Dobson
steve at dobson.org
Sun Jul 24 17:43:51 UTC 2005
Richie, John
On Sun, Jul 24, 2005 at 06:33:30PM +0100, Richie Jarvis wrote:
> The normal problem with java is that by default, Linux uses GCJ, which
> is compiled Java, and will not run most java apps out of the box. The
> way to tell is to type at the prompt of the user you are trying to run
> the application under:
>
> java -version
>
> If it comes back with something referencing GCJ, then you know you are
> having this problem. The trick to get it to use Sun's JRE (Java Runtime
> Environment) is to add $JAVA_HOME before everything else in the path:
>
> export PATH=$JAVA_HOME:$PATH
John said earlier that he had set JAVA_HOME to /usr/lib/jvm/java
If the Java system John install is the same as the JDK I install then
you need to add set PATH thus:
export PATH=$JAVA_HOME/bin:$PATH
--
The devil finds work for idle circuits to do.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.lug.org.uk/pipermail/sussex/attachments/20050724/0a6829ac/attachment.pgp
More information about the Sussex
mailing list