开云体育

Locked problem compiling source code


sixth_rule
 

i have compiled just one class JmriException.java
yet i can't compile LocoNetException.java ???

i keep getting the message can't resolve symbol
class :JmriException
location:package jmri
import jmri.JmriException

i have touached nothing but can't find the problem??

i have left all the files where they are and i don't know why it
won't compile??

Chad Spickett


 

At 5:29 PM +0000 8/8/02, sixth_rule wrote:
i have compiled just one class JmriException.java
yet i can't compile LocoNetException.java ???

i keep getting the message can't resolve symbol
class :JmriException
location:package jmri
import jmri.JmriException

i have touached nothing but can't find the problem??

i have left all the files where they are and i don't know why it
won't compile??
To help, I think we're going to need a little more information.

How are you doing this? Are you using either the Ant or JBuilder tools described on



Or are you using plain javac? If so, in what directory are you trying to compile?

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.


sixth_rule
 

I am using javac
i moved the jmrix dir into jmri and set the class path
things are working now with these classes

i am now trying to compile the LocoNetMessage class but run into an
error every time i it tries to compile a line with log.error in it
like
log.error("invalid length in call to ctor: "+len);
or
static org.apache.log4j.Category log =
org.apache.log4j.Category.getInstance(LocoNetMessage.class.getName());

its actually been a while since i've programed so my skills are rusty
and i think i know the purpose of these lines there like system.out
messages to veiw the error except maybe your trying to keep them in a
log :)

anyways your patience with my ingnorance is appriciated
Chad Spickett


--- In jmriusers@y..., Bob Jacobsen <Bob_Jacobsen@l...> wrote:
At 5:29 PM +0000 8/8/02, sixth_rule wrote:
i have compiled just one class JmriException.java
yet i can't compile LocoNetException.java ???

i keep getting the message can't resolve symbol
class :JmriException
location:package jmri
import jmri.JmriException

i have touached nothing but can't find the problem??

i have left all the files where they are and i don't know why it
won't compile??
To help, I think we're going to need a little more information.

How are you doing this? Are you using either the Ant or JBuilder
tools described on



Or are you using plain javac? If so, in what directory are you
trying
to compile?

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@l..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.


 

At 7:31 PM +0000 8/8/02, sixth_rule wrote:
I am using javac
i moved the jmrix dir into jmri and set the class path
things are working now with these classes

i am now trying to compile the LocoNetMessage class but run into an
error every time i it tries to compile a line with log.error in it
like
log.error("invalid length in call to ctor: "+len);
or
static org.apache.log4j.Category log =
org.apache.log4j.Category.getInstance(LocoNetMessage.class.getName());
There are a couple of libraries that are needed, even during compilation.

You should have gotten a "lib" directory when you checked out the source. They're in there, and have to be manually added to the javac command line.

But can I suggest using bare javac is a very hard process, and that you'd be better off investing a few minutes installing JBuilder or ant to make this process automatic? They're tools that handle the library paths, deciding what to compile, etc.

Depending on what OS you're using, or the other might be easier.

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.


sixth_rule
 

Ok i downloaded Jbuilder Personal edition and don't really know what
to do next
i read your instructions on Jbuilder on the technical page
here is where i get lost.

In the project directory, do a CVS checkout of the "jbuilder" module
from our repository. This will create a "java" subdirectory where the
JBuilder IDE will run, and load it with source, tests and resources.
It will also create and populate directories for xml and libraries in
the project directory.

what is a CVS checkout. and what repository all i found was the
source code snapshots on your technical page

thanks
Chad Spickett
University of Windsor

But can I suggest using bare javac is a very hard process, and that
you'd be better off investing a few minutes installing JBuilder or
ant to make this process automatic? They're tools that handle the
library paths, deciding what to compile, etc.

Depending on what OS you're using, or the other might be easier.

Bob
--
--------------
Bob Jacobsen (Bob_Jacobsen@l..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.


 

At 8:15 PM +0000 8/8/02, sixth_rule wrote:
what is a CVS checkout. and what repository all i found was the
source code snapshots on your technical page
The code snapshots are really meant as "snapshots" for browsing, rather than a starting point for working with the code.

CVS is a tool for keeping lots of copies of files up to date. The people at SourceForge.net host a "repository" that has master files. Via the CVS tool, you can create a local copy where you can compile, make changes, etc. Then, when somebody else updates the central copy (e.g. we fix bugs, add features, etc), you can just say "cvs update" to get all those changes made in your local copy. This is better than just downloading a new set of files, because all of your local changes are still in your local copy.

Once CVS is installed on your machine, you start the process by saying:

cvs -d:pserver:anonymous@...:/cvsroot/jmri co ant

I'll add some more on how to get CVS, start this, etc to the tech web page in a day or two when I've got a better net connection (I'm in the last stages of a trip now and sending mail from pay phones)

I'll also package up a .zip file with everything you do need to get started, just as if you'd done that with CVS. That'll let you play with the code for a while without having to install any other tools. But it'll be a couple of days until I'm able to do this, sorry for the delay.

Bob

--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.


 

Try the file "jb1.0.3.zip" from the usual download location. It'll (hopefully) unpack to a file tree with a "java" directory, containing a "jmri.jpx" file that JBuilder can work from.

Bob

(Who's about to go offline for about 36 hours)
--
--------------
Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957)
At CERN until August 10, replies may be slow.