For Programmers: Free Programming Magazines  


Home > Archive > Java Help > December 2006 > JCreator - Using classes stored in different projects









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author JCreator - Using classes stored in different projects
dimo414

2006-12-15, 7:10 pm

For those of you who develop using JCreator, I'm trying to use classes
I wrote for one project in another project - but I don't know how to
refrence these classes. It's the same workspace, if that matters, and
they're stored in folders by project. I assume there is a way to do
this, but the JCreator Documentation doesn't help.

dimo414

2006-12-17, 7:08 pm

Anyone? How can I reference classes that are not automatically
included in the project?

Andrew Thompson

2006-12-17, 7:08 pm

dimo414 wrote:

(from earlier)
> For those of you who develop using JCreator, ..


I don't.
...
>... but the JCreator Documentation doesn't help.


Maybe you should 'dump'* JCreator and learn how
to do this using the command line tools. ...

> Anyone? How can I reference classes that are not automatically
> included in the project?


... which comes down to adding the (source or) classes
to the classpath at compile time, and the classes
(or jar) to the classpath at runtime.

Notes:
1) Their are many more people who understand the
command line tools, than know about JCreator.
2) Once you have figured how to compile and run
this from the command line, you will probably be
able to figure how to make it work in JCreator
(or other IDE's you encounter)...

* Which is why I put the suggestion to 'dump'
JCreator in quotes - It is probably a fine IDE, but
at the moment, it is simply getting in the way.

Andrew T.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com