473,507 Members | 8,022 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to compile interrelated packages

28 New Member
I have two packages named Schedule and Debt. In Schedule package , we import the Debt package. In Debt package , we import the Schedule package. I wish to know how to compile these two interrelated packages

Thanks in advance
Aug 31 '07 #1
1 1250
JosAH
11,448 Recognized Expert MVP
I have two packages named Schedule and Debt. In Schedule package , we import the Debt package. In Debt package , we import the Schedule package. I wish to know how to compile these two interrelated packages

Thanks in advance
You should have directories that reflect your package names; something like this:

- you/java/src/Debt/DebtClass.java
- you/java/src/Schedule/ScheduleClass.java
- you/java/classes

move to the src directory and compile your .java files like this:

javac -cp ../classes -d ../classes -sourcepath . Debt/*.java Schedule/*.java

The -d flag tells the compiler where to put the compiled .class files. the -cp
path tells the compiler where to find previously compiled .class files. the
-sourcepath flag tells the compiler where to find other source (.java) files if
it needs them, i.e. a .java file refers to another class but it hasn't been compiled
yet (or is outdated) so the source of that other class needs to be recompiled.

Note that you end up with .class files like this:

- you/java/classes/Debt/DebtClass.class
- you/java/classes/Schedule/ScheduleClass.class

which is exactly what you need because you can add an entry to your classpath
starting at that classes directory.

kind regards,

Jos
Aug 31 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

12
12865
by: Ghislain Benrais | last post by:
Hello, My "problem" : install php's XSLT API. 1)I installed Sablotron (with the rpm) : ok 2) I read every where that the next step was to compile php with option --with-xslt-sablot. Since I have...
11
2299
by: Joerg Schuster | last post by:
Hello, is there a way to compile a python file foo.py to foo.pyc (or foo.pyo) such that foo.pyc can be run with 'foo.pyc' (as opposed to 'python foo.pyc') on the command line? Jörg Schuster
2
2305
by: eternl_knight | last post by:
Ironically enough - the decompyle module will not compile on my machine. I am using Python 2.2 and MSVC7 (i.e. .NET). However it tells me there is an undefined external as follows: ...
0
1738
by: mg | last post by:
First, I compiled Python in DEBUG on Win32 with MSCV.net and the solution distributed in the Python packages. Second, I try to compiled NUMARRAY with my python debug : python_d setup.py build ...
1
6602
by: lukas | last post by:
What packages i should to install to compile PHP 4.4.4 without problems? I got this error: checking whether to enable DBA... yes checking for gdbm_open in -lgdbm... yes checking for GDBM...
6
10054
by: sam | last post by:
Hi, I want to compile and test php script in my pc without using internet or web site which is online ? Do you have any idea about it? It is possible to do that ?
0
1657
by: giovanni gherdovich | last post by:
Hello, first of all: Is this the right place to ask plastek-related questions? I'm trying to make plastex work on my Ubuntu Dapper Drake. For LaTeX, I have the all-in-one package tetex.
2
2458
by: donkeyboy | last post by:
All, I've tried the jythonc compiler to try and create an applet to see how it works, but I get a number of Java compile errors that are way above my knowledge. Does anyone know what any of the...
12
3411
by: mrbog | last post by:
For those of you with red hat or fedora, do you yum install php or do you compile it?
0
7105
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7308
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7371
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7479
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5037
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3178
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1534
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
410
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.