*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
null

Hello,
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

Similar Messages

  • How to import BC4J package into JDEV project without server.xml file?

    Dear,
    I need to bring the seeded BC4J package into my JDEV OAF project. Usually to do that, once I am sure that all I need is accessible, I open the server.xml file for the BC4J that I need and I am all set - all the items from under that BC4J are brought in.
    How about if there is no server.xml file for that BC4J, for example, under oracle.apps.icx.por.req.webui, and I need to have a controller from under there in my project? Do I create this package (oracle.apps.icx.por.req.webui) manually? If I do that and then open the controller the controller is being brought into JDEV outside the package.
    Thank you.
    Anatoliy

    Sumit,
    Thank for quick response.
    Yes, I agree for the controller.
    But let's say I want to bring over some other xml staff, like some shared regions for example from under that webui. They are also brought outside the package. You have an idea?
    Regards,
    Anatoliy

  • *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.

  • Compiling problem when importing third-party package

    Hi,
    I have a question about compiling a java application program. I tried to use a free package from third-party, say "abc.jar". I added it to my classpath by setting Win2000 CLASSPATH environmental variable.
    When I compile the program, it complained that it can not find the classes inside the abc.jar file.
    My program is located at: C:\test\Test.java. The abc.jar file is located at: C:\libraries\abc.jar. It is already set in classpath.
    Here is the structure of Test.java:
    import com.abc.def.ghi.PLOT;
    import com.abc.def.ghi.GRAPH;
    class Test {
    //main method using PLOT and GRAPH classes from abc.jar
    Suppose now I am in C:\test\ directory, this does not work.
    javac Test.java
    Then still in C:\test\ directory,I tried:
    javac -classpath ".;c:\libraries\abc.jar" Test.java
    Still it does not work, it complains that it can not resolve symbol "PLOT","GRAPH".
    How to solve this problem?
    Thanks.

    I'd put that JAR file in the same directory your Test.java file is in for now. You should keep it close to the Java files that use it in any case, IMO.
    Ditch that system CLASSPATH. (I don't have one.) You should always set the CLASSPATH as you need it when you compile and run.
    The statement you need to compile is:
    javac -classpath .;abc.jar Test.javaIf that works, you run by typing:
    java -classpath .;abc.jar TestThis assumes no package statement in Test.java.
    Are you sure that JAR contains two files named PLOT.class and GRAPH.class, both with paths com.abc.def.ghi? If not, the class loader won't find them in the JAR.
    It'd be better if you cut & pasted the message verbatim. If you've quoted it properly, the error you got sure is weird.
    That message means you've got a CLASSPATH problem. It's the stumbling block of every newbie. Don't rest until you figure out what you've done wrong. - MOD

  • How to add new third party jars into JDev - quick question

    Hi All
    We have some additional jars needed to include for use with our current ADF application.
    These jars are not for ADF components.
    These jars are for API calls to other 3rd application.
    We're using standalone weblogic to run our ADF app.
    How do we include our 3rd party jars in JDev ?
    Do we need to include new paths in standalone WLS to pick up these new 3rd party jars in order for our app to work ?
    Thanks

    You can add libraries to WLS classpath, but this is not good approach if you need to replace them later(because you must restart WLS to pick new version)
    To include jars to ADF deployment, open Model or ViewController project properties and include path(s) in Project Source Paths->Java Source Paths.
    Then edit your deployment profile (right click on application -> Application Properties... ->Deployment -> Your Deployment Profile), go to Application Assembly and mark these libraries(also, for each library you can specify target folder, for example "lib")
    Dario

  • How to include a third party component into a netbeans project

    I am working in netbeans 5.0 and i want to include a third party component into my project.I have the jar files of a text editor ie FCK text editor.Could anyone tell me how to include the component into my project

    - Put the jar file on a location you want (the location must be the same for all developers).
    - Select the "Libraries" node of your project.
    - Press the right mouse button to bring up the popup menu and choose "Add JAR / Folder..."
    - Locate and select the JAR file you need and press OK.
    - Now you have included it into your project.

  • How to use  third party package in java application

    hi, i am a student , new to java world can any of u tell me how to import third party package in our java application.
    i want to know how CLI is done in java.
    i am going thru this link http://www.codezoo.com/pub/component/5574
    not able to get anything.
    please please help me

    There are two steps -
    1. Import the classes you need from the package(s) using the Java import statement in your classes that need access to them.
    2. include the 3rd part code (one or more .jar files and/or root directories holding the code's package tree and .class files) to your javac and java class path and optionaly to the class path found in your .jar's manifest file.

  • 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 Palen

    Hi,
       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.

  • 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

  • How to Call third party Jar into Application

    Hi Can any Expert help ?
    I want to put third party Jar into my application but i have some problem occur.
    1. how to call jar with parameter in application ?
    2. when i exit the third party jar task, it will exit my main task too. How to set my main tast exit stats standalone ?
    3. I have over 10 jar files in one application, how can i set a classpath for client to call JNLP, instread of load all jar to client before run.
    Thanks.
    Sanki Poon ([email protected])

    1) Sounds like you are trying to launch the third party from it's application main instead of using it as an API How does your code interact with it or is that not important?. You don't call a jar, you load a class. You could use a exec http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html to run the java launcher and pass it all it's command line stuff(But this may not be possible security wise via WebStart).
    2) if it is launched in the same JVM and it calls a System.exit there is nothing you can do about your app closing too. It would need to be in another instance of the JVM
    3) Under the resources tag you can have as many jar tags as needed.
        <resources>
            <j2se version="1.5.0" java-vm-args="-esa -Xnoclassgc"/>
            <jar href="/jsf-wita/apps/MathMLWebEditor.jar"/>
        </resources>

  • How to create and remove package in Jdev project

    hi,
    I created a package for all my utils, then I import that package into my project, manually by inserting import myutils.*, somehow the other package can see it,
    then I tried importing this same package by the wizard tool, I have a conflict message that duplicate code, of course this is true since both of them works, then I want to remove one of the packe from my ptroject, but I cannot remove either package from my project. Please tell me how
    Thanks
    BM

    BM,
    If you want to import the utils package into your code, then the location of the utils package has to be in your CLASSPATH. JDeveloper uses libraries to define a project's CLASSPATH.
    I'm not sure exactly what's going on here, but you might want to read the information about packages and class libraries in the online documentation. It's under:
    User Guides
    -> Working with JDeveloper
    -> Packages and Class Libraries
    Blaise

  • ADF mobile: How to pack a third party jars into apk

    Hi Expert,
    I am using Jdeveloper + ADF mobile 11.1.2.4 to develop an android application. In this application, I need to call some functions in the third party jar files.  I need to add the third party jars into my apk so that those classes can be found during runtime.
    I followed section 17.1.1.1 to add the libraries into my project. However, after I deployed my app to the emulator and tried to run it, it reported "encountered error: classes not found". And I also found that the third party jars don't exist in libs/ directory of the apk. Do you know how to solve the problem: How to reference a third party jar files in my app and make sure it works?
    Thanks,
    Yan

    Create a /libs directory within  Android project directory and copy the JAR files to /libs.
    To build.properties add
    external.libs.dir=libs

  • Compiling a programme with third party package help

    Hello all,
    I am writing a programme with a third party package (freetts.jar). The jar is is the classpath of my 2003 server and it compiles ok.
    import com.sun.speech.freetts.Voice;
    import com.sun.speech.freetts.VoiceManager;
    import com.sun.speech.freetts.audio.JavaClipAudioPlayer;
    When I go to run it with java it cant find a class in the package!! I dont get it?
    When it gets to this part it throws Exeption in thread main java lang noclassfounddeferror com/sun/speech/freetts/VoiceManager
    public void myVoice(){
    VoiceManager voiceManager = VoiceManager.getInstance();
    Voice helloVoice = voiceManager.getVoice("kevin16");
    /* Allocates the resources for the voice.
    helloVoice.allocate();
    /* Synthesize speech.
    helloVoice.speak("Thank you for giving me a voice. "
    + "I'm so glad to say hello to this world.");
    It says that it cant find VoiceManager...I cant work it out, VoiceManager is in the package it imported ok at compilation.....why cant it see it when I run it?? This is driving me CRAZY...please help.
    Phil.

    Yes you were kinda right.. I went back and had another look at the 2003 environment variables. They have one set for the system and another for the current user. I have come to the conclusion that the system variable classpath just doesnt work. I looked at it over and over again and it looked ok to me. I just put the same thing in the users variables and low-and-behold it works!!!!
    Go figure!
    Thanks for that, I just needed a trigger.
    Phil.

  • Using third party packages

    I'm using NetBeans with a Nokia S60 sdk installed to write an app for a phone.
    I need to use a third party math package in the app, but I am new to this, so I have no idea how to do it.
    I've downloaded and unzipped the files for the third party package, but where do I put them and how to I use them in my project?
    (I don't mean how do I use the new functions, but how to I access them in NetBeans ... how do I NetBeans to "see" them ... just wanted to be clear about what I was asking).
    Thanks.
    Message was edited by:
    AlJohnJeffJoe

    Okay, almost there. I added the folder and was then able to use the commands.
    However, when I went to compile I got a weird error:
    Error preverifying class wabaMathFP
    java/lang/NoClassDefFoundError: waba/ui/MainWindow
    I am not using the waba stuff as far as I know, but I did see some waba class files in the same folder. Could that be the problem? It is trying to verify ALL the class files in that folder?
    Any suggestions?

  • 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

Maybe you are looking for

  • Automatic creation of new dimension members

    Hello all, Bit of a long post so please bear with me. I am about to embark on only my third BPC project after having spent several years implementing solutions using BusinessObjects Planning (formerly SRC software), and am still struggling to come up

  • HT5824 how to store pictures on i cloud?

    how to store pictures on I cloud?

  • Where's the tutorial for Adobe Muse

    First time using Adobe Muse, I found this tutorial: HTML Embedding: Maps James Fritz Learn how to embed a map into a webpage and customize the map view with Muse. Once I clicked on the link to see the tutorial I get an error 404, I guess someone remo

  • I need a high speed digital I/O solution!

    I'm looking for the following digital I/O recording solution: 16 channels input 100MHz sampling rate Able to acquire 1 sec of data at 100MHz Does anyone know of hardware that can do this? I would prefer somekind of PCI card to a desktop logic analyze

  • Need EHP6 upgrade Document

    Hello , I am new to sap upgrades,so, am planning to upgrade my ECC6.0 system to EHP6 with SUM tool,So,any body provide proper Docment... Regards K.Sandeep