swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swarm-Support] missing simtoolsgui classes RH 9.0


From: Derek Messie
Subject: Re: [Swarm-Support] missing simtoolsgui classes RH 9.0
Date: Mon, 08 Mar 2004 11:24:05 -0500

Paul,
        Thank you for the concise help.  As soon as I updated my tk/tcl versions with the ones you show below :

tk-8.3.5-88
tcl-8.3.5-88

everything worked fine.

Thank you again Paul.
Of course, this just opens the door for more problems to come as development now begins !     :  )

-derek

At 04:26 PM 3/5/2004 -0600, Paul Johnson wrote:
If Objective-C programs work now, I think that means the tcl/tk is not the problem.

You don't mention which j2sdk you have.  The one that rpm requires is j2sdk-1.4.1_03-fcs.  I hope you didn't force the swarm install against the wrong j2sdk version.


I don't recall if you mentioned which jheatbugs you were running, or if you tried any other java programs to see if they work.  Don't bang your head on the Jheatbugs wall if you can bang it on a different wall.

I can't get at the swarm ftp right now, and could not do it yesterday either, but the jheatbugs package you should be using is

jheatbugs-2001-03-28.tar.gz
this one works too.
jmousetrap-2001-09-13.tar.gz

I have just verified again that the swarm rpm does work on our RH 9 systems.

address@hidden java]$ cd jheatbugs-2001-03-28
address@hidden jheatbugs-2001-03-28]$ ls
ChangeLog        HeatbugModelSwarm.java       jheatbugs.scm
COPYING            HeatbugObserverSwarm.java  Makefile
HeatbugBatchSwarm.java    HeatCell.java           StartHeatbugs.java
Heatbug.java        HeatSpace.java           unhappiness.output
address@hidden jheatbugs-2001-03-28]$ javacswarm *.java

Issued 1 lexical warning in "HeatbugBatchSwarm.java":

   60.           Globals.env.lispAppArchiver.getWithZone$key (getZone (),
                                             ^-------------^
*** Lexical Warning: The use of "$" in an identifier, while legal, is strongly discouraged, since it can conflict with compiler-generated names. If you are trying to access a nested type, use "." instead of "$".
address@hidden jheatbugs-2001-03-28]$ javaswarm StartHeatbugs
address@hidden jheatbugs-2001-03-28]$

Here are package versions I have, you can compare.
$ rpm -qa | grep gcc
libgcc-3.2.2-5
compat-gcc-c++-7.3-2.96.118
gcc-objc-3.2.2-5
compat-gcc-7.3-2.96.118
gcc-3.2.2-5
gcc-g77-3.2.2-5
gcc-c++-3.2.2-5

$ rpm -qa | grep jikes
jikes-1.18-1
$ rpm -qa | grep swarm
swarm-jdk-2.1.147.20030812-2RH9.0
swarm-2.1.147.20030812-2RH9.0
address@hidden java]$ rpm -qa | grep j2sdk
j2sdk-1.4.1_03-fcs
address@hidden java]$ rpm -qa | grep tcl
tcl-8.3.5-88
address@hidden java]$ rpm -qa | grep tk
pygtk2-libglade-1.99.14-4
atk-1.2.0-2
gtk-gnutella-0.92.1-1plf
gtk2-2.2.1-4
gtk+-1.2.10-25
pygtk2-1.99.14-4
gtk-engines-0.11-16
usermode-gtk-1.67-2
gnome-python2-gtkhtml2-1.99.14-5
tk-8.3.5-88
gtkam-0.1.7-3
gtk2-engines-2.2.0-2
gtkhtml2-2.2.0-5
gtkhtml-1.1.9-0.9.1
mtr-gtk-0.52-2
authconfig-gtk-4.3.4-1



Derek Messie wrote:

ok, looks like problem still has something to do with tk/tcl packages.
I ended up reinstalling the following rpm's :

tcl-8.3.5-i386.rpm
tk-8.3.5-i386.rpm
blt-2.4u-7.i386.rpm (from Paul's RH 9.0 page)
swarm-2.1.147.200030812-2RH9.0.i386.rpm (from Paul's RH9.0 page)
swarm-jdk-2.1.147.20030812-2RH9.0.i386.rpm (from Paul's RH9.0 page)

The rest of the recommended rpm's are also already installed.   
Compile using "javacswarm *.java" works fine now.  Problem is that I am still receiving following error when trying to run "javaswarm StartHeatbugs" :

""""""""""""""""""""""""""""""""""""""""
error: TkExtra (instance)

/usr/bin/javaswarm: line 1: 12077 Aborted
"""""""""""""""""""""""""""""""""""""""""

I see this error referenced all over the support pages and I have tried many of the suggested solutions that I thought made sense, including:
1)  made sure DISPLAY, TCL_LIBRARY, TK_LIBRARY, BLT_LIBRARY, etc. were all set properly.


My guess is that is still has something to do with tcl/tk paths. 
Since I am using binaries for everything, is it possible that BLT is expecting different versions and/or locations of tcl and/or tk ??? 
Tcl and Tk are the only rpm's that Paul does not supply on the RH9.0 page.  Can I perhaps set up a link or something from the tk/tcl directory that blt is checking to the /usr/lib/tk8.3 and /usr/lib/tcl8.3 directories where tk and tcl sit ???


Any and all help on this is Greatly appreciated ...

-derek







At 09:14 PM 3/4/2004 -0600, Paul Johnson wrote:

Hard to believe the objc apps do this too. That seems to indicate Swarm itself is not installed properly.

I'd use the

rpm -V swarm

or check against the swarm.rpm with -Vp to make sure it is installed correctly.

Or reinstall that rpm completely, then  untar a fresh copy of the newest swarmapps you can get and try

make

If you still get that error, I'd like to see the output of make and a gdb backtrace.


Now, on the java side, I think your message here exposes that you are not using Swarm with Java as intended.  That's probably why you had that class path problem.  I'm looking here:


http://www.ku.edu/~pauljohn/SwarmFaq/SwarmOnlineFaq.html#6.4 <http://www.ku.edu/%7Epauljohn/SwarmFaq/SwarmOnlineFaq.html#6.4>

where it says to build the program do

javacswarm *.java

and to run the compiled program youdo

javaswarm StartHeatbugs

These programs set the CLASSPATH for you and will solve that other problem you had before.

It has been a while since I used Java, I'm having trouble remembering if there is a wrinkle depending on which java you have installed.  I am totallly sure the swarm-jdk rpm assumes you have a specific edition of the jdk. I hate that feature, but because of the way jdk is packaked, there's no alternative.  I don't even have swarm-jdk installed now, but I recall there was some need to diddle the javaswarm script to point at the right j2sdk or such. But it will be obvious.
I know on windows there was an alternative script jdkswarm, but I don't think I ever packaged that for Linux.

pj

Derek S Messie wrote:

Hi Alex,
  Thanks for taking time to respond.  I am actually running the rpm from
Paul's page as you suggest below, and problem turned out to be not
having swarm.jar in classpath.

However, now I am receiving the following error when trying to run either
the java or objective c samples.  Any ideas ??? :

""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
address@hidden jheatbugs-2.1]# java StartHeatbugs
/home/pauljohn/LinuxDownloads/redhat/BUILD/swarm-2.1.147.20030812/src/tclobjc/TkInterp.m:140
-[TkInterp preInitWithArgc:argv:]
Abort
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

Thanks again for any help on this.

-derek


 

"DM" == Derek S Messie  writes:
           
DM> Hi, I'm trying to run a few of the sample java apps (in this case
DM> Heatbugs), but when I run :

DM> java StartHeatbugs

DM> I receive the following error:

DM> java.lang.NoClassDefFoundError:swarm/simtoolsgui/GUISwarmImpl

DM> and when I look in the simtoolsgui directory, I see some header
DM> files, but no class files.  Are there supposed to be simtoolsgui
DM> class files ?  At what point are they installed or where can I get
DM> them ???

DM> I am running:

DM> RH 9.0 swarm-2.1.1 jheatbugs-2001-03-28

DM> and I have installed all of the RH9.0 recommended binaries from
DM> Paul Johnsons page.

You should be running the pre-2.2 RPMs for Red Hat 9.0, not Swarm
2.1.1, which is now obsolete:

http://lark.cc.ukans.edu/~pauljohn/Swarm/Swarm-2.2x_RH9.0/ <http://lark.cc.ukans.edu/%7Epauljohn/Swarm/Swarm-2.2x_RH9.0/>

I think the most recent is Swarm 2.1.147.

Alex
_______________________________________________
Support mailing list
address@hidden
http://www.swarm.org/mailman/listinfo/support

 


_______________________________________________
Support mailing list
address@hidden
http://www.swarm.org/mailman/listinfo/support
 



--
Paul E. Johnson                       email: address@hidden
Dept. of Political Science            http://lark.cc.ku.edu/~pauljohn <http://lark.cc.ku.edu/%7Epauljohn>
1541 Lilac Lane, Rm 504                            
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66044-3177           FAX: (785) 864-5700


_______________________________________________
Support mailing list
address@hidden
http://www.swarm.org/mailman/listinfo/support

Derek Messie
Digital Library Programmer
Cornell University
address@hidden
(607) 254-6461
fax: (607) 254-5419


--
Paul E. Johnson                       email: address@hidden
Dept. of Political Science            http://lark.cc.ku.edu/~pauljohn
1541 Lilac Lane, Rm 504                             
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66044-3177           FAX: (785) 864-5700


_______________________________________________
Support mailing list
address@hidden
http://www.swarm.org/mailman/listinfo/support

Derek Messie
Digital Library Programmer
Cornell University
address@hidden
(607) 254-6461
fax: (607) 254-5419


reply via email to

[Prev in Thread] Current Thread [Next in Thread]