*urgent* importing third party API
hi,
To import the third party *.jar we bought,
I click on
Project->Project Properties->library->add->new
Then I give the APi a name in a the box
Then I click on ... Classpath ->add ZIP/JAR and browse to choose the Jar file to be added to our project.
but then when we expilictely import the
package it is redded highlight
import abc.*;
this line is highlighted and the error message say
Error reading directory D:\thirdparty\JAAdapter.jar bad entry
did I do anything wrong...please help
Hi,
This sounds like your jar file might be corrupt.
Try the following: rename the jar file to JAAdapter.zip and try opening it with a zip utility (e.g. WinZip). If the zip utility reports errors, the Jar file is corrupt.
Similar Messages
-
*URGENT* importing third party package into Jdev project
hi,
our company has bought a thrid party package instead of developing one to speed up the project pace. Some how we cannot import the package into our project environment,
this is what we do with the package.
set the class path to where the *.jar files are, for example: C:\AccBank\beta\creditcheck.jar
please note that the "C:\AccBank\beta\" is where the project file locates.
and follow is the import statement
import thirdparty.package1.*;
please tell us what did we do wrong, if the case in question is not clear, please tell us the steps we need to do to import and use a third party package with JDev.
Also, please tell me the different purpose between the directory :
PROJECTFILES and CLASSFILES under the main project directory
Thank you very much for your time and your help
Augustina
nullHello,
I'm not sure about what you mean,
but in order to use a given package within JDevelopper, you should:
- select project/project properties,
- find the libraries tab
- click "add", then "new"
- click "class path"
- click "add ZIP/JAR" and add the various jar files you want to include
Note: if the included libraries contain subpackages of packages like javax, and you want to deploy your project (as EJB for instance) you will have to edit the deployment profiles in order to add the 3rd party libraries, otherwise, these subpackages won't be deployed (by default, packages suvh as java.lang, javax etc.. are not excluded from the deployment).
about the PROJECTFILES and CLASSFILES items, they refer to the directories in which your project's source code (PROJECTFILES) and compiled classes (CLASSFILES) are stored
Hope this helps, Remi
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Augustina:
hi,
our company has bought a thrid party package instead of developing one to speed up the project pace. Some how we cannot import the package into our project environment,
this is what we do with the package.
set the class path to where the *.jar files are, for example: C:\AccBank\beta\creditcheck.jar
please note that the "C:\AccBank\beta\" is where the project file locates.
and follow is the import statement
import thirdparty.package1.*;
please tell us what did we do wrong, if the case in question is not clear, please tell us the steps we need to do to import and use a third party package with JDev.
Also, please tell me the different purpose between the directory :
PROJECTFILES and CLASSFILES under the main project directory
Thank you very much for your time and your help
Augustina <HR></BLOCKQUOTE>
null -
Importing third-party java libraries
I have just downloaded jakarta httpclient and am trying to get it to work with a program I am writing. Are there instructions somewhere on importing third-party libraries? I've searched these forums, the tutorials, and even google and haven't found any. Or can someone just tell me how to do it?
Basically I have a folder with a list of java files. I run javac program.java to compile and then java program. The one thing I have seen in these forums is about setting the classpath, but no specifics on what to set it to. Basically I have a folder with the source called java. The only subfolder there is org, the next subfolder is apache, next is commons, then httpcliet, and then all the actual java files with a few other folders with the java files in them. It gives examples in the folder src which is the parent of java. In src there is a folder called examples. The relevent import statements are:
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager;
import org.apache.commons.httpclient.methods.GetMethod;These are all valid files under the folder system, yet it gives me the error : package org.apache.commons.httpclient does not exist for the first 2 and package org.apache.commons.httpclient.methods does not exist.
There are also errors resulting from it not recognizing the import statements. Can someone help me please?I had a choice between source and binary, if I
download the binary, should I put the jar file inthe
folder with the rest of my *.java files?You can, but I'd advise against it because it gets
messy and confusing.
Or do I have
to put the whole folder (with the API, liscense,
readme, etc. in it) in the same folder as MY codeor
do I just need the .jar file? You just need the jar file. Don't unpack the jar
file; the standard java libraries know how to deal
with a jar file just fine.
More-or-less standard practice would be to create a
directory hierarchy like this:
project_name/
project_name/lib/
project_name/src/
project_name/classes/
Put the jar files in project_name/lib. Put your java
source files (the ones that you're creating) into
src/, and when you compile, put the compiled class
files into classes/ (use the -d option to javac to do
that). When you compile and run, include both the
classes/ directory and the jar files (note: NOT the
lib/ directory, specify the individual .jar files) in
the classpath.So do I need the absolute path of the .jar file? If I were to put it in the same folder as my source could I just specify as
javac -classpath whateverjar.jar MyFile.java
or do I have to do javac -classpath C:\my folder\my other folder\etc\projectName\lib\whateverjar.jar MyFile.java?
Thanks -
Deploying a third party API in a J2EE application.
Hi there
I have a small J2EE applicaion made up of EJBs, servlets and JSPs
packaged and deployed as an EAR file in WebLogic 6.1.
I'd like to make use of a third-party API (that is packaged as a JAR
file) from the servlet and EJB components within the application, but
am a little confused as to where to place the JAR file.
I've tried placing it in the WEB-INF/lib directory of the WAR file,
the servlets found the library successfully but the EJB components
threw ClassNotFoundExceptions.
I've tried placing it in the EAR file at the same level as the WAR and
EJB JAR file, ie:
App.EAR
/application.xml
/EJB.JAR
/WEB.WAR
/LIB.JAR
but then the servlets were unable to find it.
Finally, I tried placing one copy in the WEB-INF\lib and one copy as
described above in the EAR file, but still - the EJBs were unable to
find the library.
Unfortunately, the API needs to be configured on a per-application
basis, so placing a reference to the JAR file in the CLASSPATH when
starting WebLogic is not an option.
Any one encountered or solved this kind of problem before ?
Kind regards
EeaHi Eea,
There are many articles in the Internet talking about
packaging of j2ee compenents, for example:
http://www.onjava.com/pub/a/onjava/2001/06/26/ejb.html
And, you may try to put your 3rd party API into weblogic
classpath in your startserver command file...
Regards,
Slava Imeshev
"Eea" <[email protected]> wrote in message
news:[email protected]..
Hi there
I have a small J2EE applicaion made up of EJBs, servlets and JSPs
packaged and deployed as an EAR file in WebLogic 6.1.
I'd like to make use of a third-party API (that is packaged as a JAR
file) from the servlet and EJB components within the application, but
am a little confused as to where to place the JAR file.
I've tried placing it in the WEB-INF/lib directory of the WAR file,
the servlets found the library successfully but the EJB components
threw ClassNotFoundExceptions.
I've tried placing it in the EAR file at the same level as the WAR and
EJB JAR file, ie:
App.EAR
/application.xml
/EJB.JAR
/WEB.WAR
/LIB.JAR
but then the servlets were unable to find it.
Finally, I tried placing one copy in the WEB-INF\lib and one copy as
described above in the EAR file, but still - the EJBs were unable to
find the library.
Unfortunately, the API needs to be configured on a per-application
basis, so placing a reference to the JAR file in the CLASSPATH when
starting WebLogic is not an option.
Any one encountered or solved this kind of problem before ?
Kind regards
Eea -
How to import Third party application through SAP in ABAP
Hello,
This is regarding importing third party application or non sap application through SAP or through portal...
is there any way to do the same?
actually our organization is having one independent application developed on .NET platform. we need to connect that in mY SAP R/3. so pls suggest me some proper way to achieve this one.
regards,
jigar
[email protected]You can connect to SAP from a .Net application using the .NET connectors. Please find the help below
http://help.sap.com/saphelp_nw2004s/helpdata/en/e9/23c80d66d08c4c8c044a3ea11ca90f/content.htm
http://www.microsoft-sap.com/overview_sap_connector.html
http://www.sapgenie.com/interfaces/netconnector.htm
Regards,
Ravi
Note : Please mark all the helpful answers -
Third Party APIs in Java Language which doesnot use JavaMail APIs
Hi Pals,
Is there any third party java mail APIs available which doesnot using Sun JavaMail APIs? The third party would have its own APIs which does not use javax.mail. I have to code in Java Platform so if the APIs are java based its nice and useful to me.....
Thanks & Regards,
Prakashksp wrote:
Hi,
I am using Javamail APIs to send mails. Sometimes Mcafee blocks the mails and its not allowing javax.mail package. Thats why i would like to go for some other third pary which uses their own APIs......What makes you think a third party API would be less prone to interference by McAfee?
Edited by: sabre150 on Jun 18, 2009 10:39 AM
:-) -
Import third party designs in an Oracle BPM Process
Hi,
Is there currently any capability in the BPM suite to import third party process designs?Thanks,
I was asking more in terms of a general 'import' feature that used to be available earlier (rather than BPA to BPM in particular - which is also probably enabled by XPDL)
see this: http://blogs.oracle.com/ptslad/2008/12/hi_folks_i_would_like.html
PS: ARIS is a product in its own standing and not called Oracle BPA Suite now.
http://www.ids-scheer.com/en/ARIS_ARIS_Platform/3730.html
BPA Suite is 'based on' ARIS (and always has been, AFAIK)
http://www.oracle.com/technologies/soa/bpa-suite.html
Regards,
Jang-Vijay -
Third Party API with Tomcat and Axis
I'm experimenting with creating web services in Java. I'm using tomcat and axis for this. I have successfully created and deployed some basic web services and now I want to create one using a 3rd party API. I follow the same exact procedure and when I deploy the service I check my list of deployed services through the axis page, but all my services have disappearred. Commenting out all 3rd party related methods does successfully deploy the service. Is there anything special/extra I have to do to get 3rd Party classes to function correctly in a web service?
Thanks in advancewhat kind of third party API are using ?
-
Third party API within DC project
Hi,
We are using a JSF web project for online account management for CRM.
We need to use a payment gateway API for which I have created a new external library DC project and a corresponding EAR.
I am able to build the project successfully.
It also recognizes the API classes however it fails at one particular call where the API internally calls a class from an embedding jar/package XMlLabel ?
If I comment out that call it does not result in any exceptions.
This API works just fine in a Java application.
I came across this forum and it looks like a similar issue. But I am unable to figure out how to fix this in a DC project.
Please let me know if anyone has any idea.
Thanks,
Veena.I was referring to this forum
Unable to call third party API within Spring- Spring Forum -
Design Approach For Integrating Third Party API's
Our application requires a lot of third party API's to be integrated with the application.
What would be a good design approach for the same
Ritesh.I think maybe you should post a little bit more info: What kind of APIs? C++? java?
-
How to use third party APIs with Sun J2ME Toolkit
I've installed Sun J2ME Toolkit 2.1. If I intend to use other third party APIs with my existing toolkit, how do I do that. I can manage to get the jar file of the associated API classes, but how to integrate the same with the toolkit. Thanks in advance to all who support.
if I remember right, it is enough, if you put the .jar of the api in the lib/ directory of your project (<WTK>/apps/<yourProject>/lib/ )
hth
Kay -
Precompiled third party API usage
Hi,
I have a question related to the compile and run time behavior of the java objects.
I have written a class which is using third party API classes. The third party API is compiled using the older version (say JDK1.2) version of java. Now I compile my developed class with JDK 1.6.
When we compile a java file which is using the third party API classes, does the byte code hence generated contains the references of the API classes used or somehow it include the byte code of these classes in the newly compiled classes' bytecode? If the byte code of the API classes gets inserted into the newly generated class, does the third party class will also be compiled with the JDK1.6.
Actually I am trying to migrate my application from weblogic 8.1 to weblogic 10.0. The higher version of weblogic require the java files compiled using JDK 1.5 or higher versions. Since the third party APIs are compiled using the previous versions of JDK so I am getting a bit skeptical whether this will work or not. If at all, this will work (with the old API classes) than how?
Thanks in advance,
Amit SinghalI would say to (at least attempt) to get new versions of the librarires.
In any case, the only byte code that shows up in a classfile is created from the code in that class definition (excpet for some references to static final variables, but that can be overlooked for now). Nothing from those "libraries" will be inserted into your newly compiled classes.
Now, as far as those libraries functioning under a new JVM (with such a large version disparity) is questionable. Technically they should, but I would neither count on this, nor expect them to be effecient even if they do function. -
OATS OTM Third-Party API/Interface?
Hello,
I am an Oracle employee and an automation tools developer in a large testing group and we are investigating if OATS OTM has the internal/public interfaces that allow us to update/create test cases and/or update/create test results for test execution that are not wui/gui type applications. Essentially, testing outside of OATS OTM and the OATS integrated testing facilities. I have scoured the available documentation but there is no indication or it is not clear that any such third-party API/Interface exists to perform such tasks.
We are VERY interested in using the OATS OTM as a central testing repository but nearly all of our testing do not include wui/gui application testing, mostly cli/custom/firmware/non-OS/cross-platform testing. We are interested in transitioning from our existing test repository software, which is not an Oracle product, and moving to OATS.
Any help in this area would be greatly appreciated.
Thank you in advance,
RobertHello everyone,
I'm also looking for a API that is exposed from the OATS.
Thanks, -
Is it a third party API for creating table in J2ME?
I am a newbie to J2ME and i would like to know that whther is there any third party API for creating table in J2ME beside using Canvas to draw the table? Please help...
its not the "L shape" that holds it better rather the higher GAUSS rating on the older connector.
Apple redesigned the NEW magsafe to be weaker AND of a diff. design with lower neodymium magnetic gauss rating for a reason
people at coffee shops etc were getting their macbooks yanked to the ground when someone tripped over the cord.
The new neodymium is a N35 gauss and the older Lshape was N40 or N45 gauss (too tight)
I know what youre talking about, but Apple redesigned it that way for several good reasons, despite it "coming out easier" on the bed for which ,
as Apple Inc. states, it is "not intended to be used" (nor in laps, couches...etc.) -
Importing third party XML files into form-based publishing
Hi,
I want to import third party XML files into form-based publishing. My problem is that when I open the files, they are presented as normal XML files.
The 'type' property is not set to "form-based publishing". That's the reason no form is linked to the XML file.
Is there a way to change the value of this 'type' property? Then I can set it to "form-based publishing".
Message was edited by: E. van der PalenHi,
You should take into account two things:
1. XML Repository filter
System Administration-System Configuration-KM-CM-Repository Filters-choose XML Forms Repository Filter
edit it and add your repository.
After that you have to restart it.
2. Resource Type.
You should modify cm_resourcetype property to set form-based publishing.
You could edit this xml file using form builder and then set this parameter.
Patricio.
Maybe you are looking for
-
I have two MacBook Pros on my local wi-fi network. I usually have these connected to each other over my wi-fi network. Normally, I only connect to my old computer (MacBookPro) from the new computer (MacBookPro2), so I can access files on my old com
-
Deleted PO's not returned in PO search
Hello All, I dont see deleted PO's when I search for PO's in process purchase orders transaction with blank value in status ( which means 'ALL' statuses). Where as if I search for PO's with status 'DELETED', I am able to see all the deleted PO's. Any
-
Hi Guys/Ladies I have Adobe X running on all my machines. But this morning a lot of user are experiencing the problem I have. It keeps crashing and then i have to open it again. I have re-installed it but still. I open a document if I select print it
-
Premiere CS5 (win7 x64) won't recognize my Mini-DV camcorder.
I have Premiere Pro CS5 installed on a Windows 7 64-bit system. When I try to Capture, I keep getting the error message: "Can't Activate Recorder. Try Resetting Camera." the whole set-up worked fine on my XP system with Premiere Pro 1.5. Extra info
-
URGENT -java MAil sending pdf as attachment
I have a small java program that sends the pdf as an attachment without using phisical pdf file. but the problem is i am unable to open the pdf that comes as as attachment in mail. error while opening pdf : " acrobat cannot open file bcos the file ty