Author |
Message
|
jeevan |
Posted: Mon Nov 21, 2005 11:32 am Post subject: External APIs |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
I need to use external API. I have been given it to me. Where should I keep the jar file of that APIS
thanks |
|
Back to top |
|
 |
Ratan |
Posted: Mon Nov 21, 2005 1:16 pm Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
Add the path of the jar file to JCLASSES env variable of your Server startup file.
Also add the path and the file name to cwtools.cfg in <bin> directory of your ICS installation folder in [codeGeneration] section.
eg: classpath=D:\tmp\myjar.jar _________________ -Ratan |
|
Back to top |
|
 |
djeripo |
Posted: Mon Nov 21, 2005 1:23 pm Post subject: |
|
|
 Master
Joined: 25 Jan 2004 Posts: 225
|
Quote: |
I need to use external API. I have been given it to me. Where should I keep the jar file of that APIS |
Be clear in what you are trying to ask.
What do you mean by external API?
From my understanding you are trying to access some java classes and interfaces which are not part of collab API.If that is the case,Say for example you want to access a class called 'Vector' in your CollabTemplate,
Open your collab template,Go to Defintions and cick on the tab Declarations.In the middle section you find Import and Comment.
As you are trying to access 'Vector' simply import java.util.*; in the Import column.
There is no need to place any jars (htmlconverter.jar ,dt.jar or tools.jar) anywhere as these come with ICS. |
|
Back to top |
|
 |
jeevan |
Posted: Mon Nov 21, 2005 3:38 pm Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
thank you for the suggestion. I want to or need to use a custome makde Api SOMEONE has developed (not java classes) to get default value of a some attribute in a map.
thanks |
|
Back to top |
|
 |
djeripo |
Posted: Tue Nov 22, 2005 8:53 am Post subject: |
|
|
 Master
Joined: 25 Jan 2004 Posts: 225
|
Quote: |
I want to or need to use a custome makde Api SOMEONE has developed (not java classes) to get default value of a some attribute in a map |
What do you mean by custom made API?
From your post,I dont even think you are referring to some custom jar files which are meant for the internal projects.I know you can import custom jar files into SystemManager which are nothing but a bunch of java classes.I dont think ICS supports anything other than Java inside the ICS components like Maps,CollabTemplates. |
|
Back to top |
|
 |
jeevan |
Posted: Tue Nov 22, 2005 9:21 am Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
The answer is what Ratan said. |
|
Back to top |
|
 |
djeripo |
Posted: Tue Nov 22, 2005 9:30 am Post subject: |
|
|
 Master
Joined: 25 Jan 2004 Posts: 225
|
Quote: |
I want to or need to use a custome makde Api SOMEONE has developed (not java classes) to get default value of a some attribute in a map |
Then why did you say not java classes? Does jar file contain anything other java classes? Remember one thing nobody here is obliged to answer all the questions you post.You are at the pity of the people who answer.
http://www.mqseries.net/phpBB2/viewtopic.php?t=25622 |
|
Back to top |
|
 |
|