[starlogo-users] Help with Mandrake-Linux 8.1
Gary Dunn
knowtree at aloha.com
Sat Sep 21 05:40:16 EDT 2002
On Fri, 20 Sep 2002 14:36:25 -0700
"Andrew Begel" <abegel at cs.berkeley.edu> wrote:
> This is probably caused by you unknowingly running Kaffe instead of
> Sun's Java. Sun's JRE RPM installs into /usr/java, whose bin directory
> /usr/java/bin is likely not in your PATH. You can make a symlink from
> /usr/java/bin/java to /usr/local/bin/java and that'll get you the right
> one. Or change the shell script to explicitly reference
> /usr/java/bin/java instead of just java. Then StarLogo will start
> working.
>
> Andrew
You are correct. I used the work-around shown below, an addition to the PATH. Now, when Starlogo starts, I get a series of error messages in the terminal window. Looks like I either need to create a folder, or change the permissions on something, or my Linux uses a different file locking call the the JRE is expecting. Or something like that. Any ideas?
[knowtree at vaiosr7k knowtree]$ which java
/usr/bin/java
[knowtree at vaiosr7k starlogo-2.0]$ java -version
Kaffe Virtual Machine
Copyright (c) 1996-2000
Transvirtual Technologies, Inc. All rights reserved
Engine: Just-in-time v3 Version: 1.0.6 Java Version: 1.1
[knowtree at vaiosr7k bin]$ pwd
/usr/java/j2re1.4.0_02/bin
[knowtree at vaiosr7k bin]$ ./java -version
java version "1.4.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_02-b02)
Java HotSpot(TM) Client VM (build 1.4.0_02-b02, mixed mode)
modified starlogo-unix:
#!/bin/sh
PATH=/usr/java/j2re1.4.0_02/bin:${PATH}
java -classpath .:./patch.jar:./starlogo.jar -Xmx256000000 starlogo.Toplevel compiler english "init 100" $1
[knowtree at vaiosr7k starlogo-2.0]$ pwd
/home/knowtree/starlogo-2.0
[knowtree at vaiosr7k starlogo-2.0]$ ./starlogo-unix
Sep 20, 2002 11:16:07 PM java.util.prefs.FileSystemPreferences$2 run
WARNING: Could not create system preferences directory. System preferences are unusable.
Sep 20, 2002 11:16:39 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock System prefs.Unix error code 1406650888.
Sep 20, 2002 11:16:39 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn't flush system prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
Sep 20, 2002 11:17:09 PM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
WARNING: Could not lock System prefs.Unix error code 1406650888.
Sep 20, 2002 11:17:09 PM java.util.prefs.FileSystemPreferences syncWorld
WARNING: Couldn't flush system prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
--
Gary Dunn
Open Slate Project
http://openslate.sourceforge.net/
http://www.aloha.com/~knowtree/
Honolulu
registered Linux user #273809
>< This tagline is umop apisdn.><
More information about the starlogo-users
mailing list