Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

re: java problem

Status
Not open for further replies.

altaf99

Programmer
Nov 11, 2003
4
SG
Hi...
Can anyone help me in this area:
1) Is there any way for me to make the java class file into something like a com object(in vb we can create .dlls).
The reason being, I need to use pl/sql in oracle to call
the java code to perform the necessary tasks at hand.
2) I am using some libraries(.jar files) from IBM to
compile the code in Jbuilder.The libraries are at the root
folder.I am wondering if I can include this libraries (embedded in the class file)after compiling the code.
Reason being...when I distribute to a pc at a client's place....the libraries will/may not be there at the client's pc.So, when a call is made to the object...it should perform the tasks.

I am new to java....so any help is much appreciated.

Any clues??

Thanks & rgds,
Altaf.
 
To 2.

JARs are zip-files with additional information (an extra file named MANIFEST). They contain compiled java-code (.class files) distributed in packages. During the compilation and during the runtime you written classes will need all the classes you imported. (The better way is to import individual classes, not the whole packages.) You have to guarantee that the JARs are set in the CLASSPATH variable or you run JAVA -cp PATH_TO_YOUR_JAR1:pATH_TO_YOUR_JAR1 on the client machine.

So you must ship the JARs on the client machine. Otherways it will not work. (Compared to DLL world: if DLLs are not registred on the client machine, the program using DLLs will not run. You can register them later. There is no registration need for JAVA - just put it on the CLASSPATH)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top