473,666 Members | 2,138 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 1254
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.j ava
- 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.c lass

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
12885
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 php's rpm, I wonder if I can use it directly and tell the rpm command to use this compilation option. Is it possible ? If not, that's no problem since I can download php and compile, but still I'm wondering if rpms can be used with such options....
11
2310
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
2312
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: "marshal_22_for_20.obj : error LNK2001: unresolved external symbol initdecompyle/marshal_20" I am writing code for Poser 6 (which has not as yet updated to the latest Python) and have just lost a substantial chunk of code - part of which being an algorithm...
0
1746
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 And the compilation crash with the following message : the file python25.lib does not exist (it is normal, because only python25_d.lib exist !)
1
6610
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 support... yes configure: error: DBA: Could not find necessary header file(s). I read that I need: gdbm-1.8.0-24
6
10061
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
1669
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
2468
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 following means? I'm using JDK 1.5.0_09, under Win XP SP2. Runnnig the file " jython FILENAME" works, so I don't know what's happening. Any thoughts?
12
3438
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
8445
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8551
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8640
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7386
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5664
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4369
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2771
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 we have to send another system
2
1776
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.