swarm-support
[Top][All Lists]
Advanced

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

Re: Newbie question: Class path variables


From: Alex Lancaster
Subject: Re: Newbie question: Class path variables
Date: 06 Aug 2002 03:27:54 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

>>>>> "Jan" == Jan Peters <address@hidden> writes:

Jan> Hello, I just encountered the following error messages compiling
Jan> the java application jmousetrap-2001-09-13.  I guess, I just have
Jan> to set the swarm paths right, but how does it work? I am not
Jan> completely new to Linux, but my experience is limited. How should
Jan> my profile file look like and which paths are crucial to set for
Jan> programming Java Swarm applications?

Jan> Thanks in advance

Jan> Jan

Jan> And here are the error messages: bash-2.05a# javac Mousetrap.java
Jan> Mousetrap.java:6: package swarm.random does not exist import

[...]

This is a FAQ:

http://lark.cc.ukans.edu/~pauljohn/SwarmFaq/SwarmOnlineFaq.html#7.1

You can't use the raw "javac" command, you need to use the
"javacswarm" wrapper to setup all the paths to the shared library that
contains the JNI-wrapped Swarm functions.  To see what environment
variables are set/used by the "javacswarm", wrapper, simply type
"javacswarm" without any arguments.  Ditto the above for running the
Swarm app via the Java interpreter, in this case replace "java" with
"javaswarm".

You should also look at (and modify for your own use) the "Makefile"
that comes with the mousetrap application to see how Java swarm apps
are normally compiled.  To use a "Makefile", just type "make".

A.
-- 
  Alex Lancaster           |  
  Swarm Development Group  |     web: http://www.swarm.org
-------------------------------------------------------------------

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

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