Oleg Kobchenko wrote:

> Nothing runs under GNU Java, I can't understand why
> they keep pushing it.

I agree.  The same is true of Totem movie player.

> The culprit I believe is "libgcj", which could be
> the GNU Java gcj. So you could possibly uninstall
> the GNU Java, and follow carefuly the Sun Java
> install: basically put it in a common folder like
> /usr/local/j2sdk1.4.2_<version> and include in $PATH.
>

If you take the defaults on the Sun installation, it puts it under /opt:

[EMAIL PROTECTED] j601]$ ls /opt
j2re1.4.2  jdk1.6.0  jre1.6.0  jre1.6.0_64

Using alternatives (if you have it) you can link several versions of Java
to the command java, and easily change the default.  I currently have


[EMAIL PROTECTED] j601]$ which java
/usr/bin/java
[EMAIL PROTECTED] j601]$ file /usr/bin/java
/usr/bin/java: symbolic link to `/etc/alternatives/java'
[EMAIL PROTECTED] j601]$ file /etc/alternatives/java
/etc/alternatives/java: symbolic link to `/opt/jdk1.6.0/bin/java'

The default above is 32-bit Java.  If you want to run both 32-bit and
64-bit J, you need 64-bit Java, and give an explicit path for the latter. 
I have

[EMAIL PROTECTED] ~]$ more ~/j601/jw
#!/bin/sh
java -Xss6000000 -jar ${JPATHj601-~/j601}/j.jar "$@"
[EMAIL PROTECTED] ~]$ more ~/j601_64/jw
#!/bin/sh
/opt/jre1.6.0_64/bin/java -Xss6000000 -jar ${JPATHj601_64-~/j601_64}/j.jar
"$@"

Best wishes,

John





----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to