Project directory retrieval using jdeveloper extension/Java

Hi, I would like to retrieve the project directory of the project being worked in jdeveloper using extension tools (i.e When u right click on ur project and click the extension tool created, it should display the project directory on the log window ). Can anyone suggest me the ways to retrieve the path using custom extensions tool or by using java code ?

Harry,
In 11gR2 the JProjectLibraries class is located in oracle.ide.library.jar. I've asked some of the engineers to see if I can get some more in depth examples on what you're doing, but hopefully the class location will help you a little while I wait for more info.
--jb                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Projects that has used OPA via Java library

    Hi All,
    Would like to know if OPA been used as a Java library in an actual project/implementation. At the moment I would like to know the approach/strategy and lessons learnt if we go this path - since there is a lot of implementation details to address.
    Its a possible integration at the moment for a client of ours - the pros/cons vs OPA as a webservice has been discussed, but due to high performance requirements may need to use OPA as a library. Currently no specific business scenarios for OPA, but the intention is to use it as wide as possible - since any rules not in OPA is likely to be Java.
    Cheers
    Noel
    Edited by: Noel Lim on Apr 3, 2012 3:00 AM

    I know several customers use OPA via the Determinations Engine API. We always recommend using the Determinations Server where possible in preference to the API, as upgrade is generally cleaner and it is generally easier to change the application separately from the policy models.
    See also the YouTube video here: http://www.youtube.com/watch?v=9-opkHsAyEI&list=UUtUHPDCD1EFH_ftnhR_i-dQ&index=4&feature=plcp which gives an introduction to the different OPA deployment options available.
    Edited by: Davin Fifield on 30-Apr-2012 00:49

  • Why using JDeveloper runing java program is faster

    I have written a java program by JDeveloper 3.0, press run button to run the java check
    the performance.
    and then close JDeveloper, try to run the java program only on NT workstation.
    I found that the performance is lower than
    running inside JDeveloper.
    Why the reason ?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Rob (JDeveloper Team):
    If you are running under JDK 1.2, then the reason is that internally JDeveloper uses the OJVM (Oracle Java VM) which is faster than most other JVM's on NT. You may wish to try your app with the JDK 1.3 rc2 from the Javasoft website (which uses HotSpot) and will be faster than the stock JDK 1.2.
    <HR></BLOCKQUOTE>
    Is compatiable using SQLJ for HotSpot ?
    and if not using HotSpot
    Can I uses OJVM only to run my program ?
    How to do ?
    Thank you
    null

  • Need help in DB2 JDBC connection from JDeveloper extension

    Hi,
    I am using JDeveloper extension to build my application. Here in the preferences, I have a UI in which I need to specify DB2 database connection parameters for establishing JDBC connection. After copying the required driver jar and license jar to the extension folder and specifying the CLASSPATH in extension.xml file, I am able to get the DB Connection. But the issue here is, I do not want the user to copy the driver jars to the extension path and neither to hardcode the driver CLASSPATH in extension.xml. Instead, if the user loads the driver jar in the CLASSPATH using command line, after launching JDev plug-in, I need to still be able to connect to the DB2 JDBC which is not happening. I am getting the error which says "Missing class com.ibm.db2.jcc.DB2Driver". I have ensured that the CLASSPTH is set for the driver and licensing jars for DB2. How can I get rid of this error without specifying the classpath in extension.xml file.
    Thanks,
    Sudha.
    Edited by: sudha.singh on Dec 13, 2010 1:08 AM
    Edited by: sudha.singh on Dec 13, 2010 1:08 AM

    drivers for DB2 for the JDBC adapter.
    1. db2jcc.jar
    2. db2_license_cu.jar
    3. db2_license_cisuz.jar
    Driver = com.ibm.db2.jcc.DB2Driver
    URL = jdbc:db2://<hostname>:5021/<dbname>:
    http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/ad/rjvjcdif.htm
    http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.apdv.java.doc/doc/t0010264.htm

  • Deploying SQLJ classes as Java Stored Procedures using JDeveloper 10g

    Hello,
    I have defined a SQLJ class, MwaSqljDao.sqlj, in JDeveloper. When I right click on the SQLJ class and "make" the class. It appears to succeed.
    However when I attempt to build the project in which the SQLJ class is a member of, a class that uses the SQLJ class has the following compile error:
    - MwaSqljDao not found.
    After a little digging it appears JDeveloper is able to compile the .sqlj file to a .java file in the classes output directory. However it does not take it to the next step of compiling the .java file into a .class file.
    Is SQLJ still a main stream Oracle technology? Or has it been cast to way side to make way for other technology?
    If SQLJ is still a supported Oracle technology how do go about compiling the SQLJ class using JDeveloper?
    My goal is to deploy SQLJ into JServer as a Java Stored Procedure class.
    Thank you,
    Rob

    Excellent.
    Especially that you resolved it and even more so that you posted the solution.
    I do wonder whether you would have gotten help (faster) has you asked in a JDeveloper-related forum such as " Forum Home » Developer Tools » JDeveloper and ADF" at JDeveloper and ADF

  • How to use mapviewer extension for jdevelop?

    I am working on the mapviewer. But my problem is that I can not connect mapviewer, or I can not start mapviewer using the embedded oc4j by jdeveloper. In mapviewer faq I read that:
    "How do I view the mapping metadata through JDeveloper's Connections Navigator?
    We have developed an Oracle JDeveloper extension that lets you browse the available list of styles, themes and basemaps defined in a datasource through JDeveloper's Connections Navigator. To do this, you will first need to download the mvconnection.jar file from OTN's MapViewer site. This jar contains the code that defines a MapViewer connection type for JDeveloper. To install, simply drop this jar file to the JDeveloper extension directory, normally $JDEV_HOME/jdev/lib/ext. Then restart JDeveloper, and you are all set.
    But when I restart jdeveloper, I got the message:
    "H:\Programme\jdev\jdev\lib\ext\mvpalette.jar!\META-INF\jdev-ext.xml
    Error: jar:file:/H:/Programme/jdev/jdev/lib/ext/mvpalette.jar!/META-INF/jdev-ext.xml<Line 105, Column 18>: XSD-2021: (Error) Element not completed: 'jsplibrary'
    H:\Programme\jdev\jdev\lib\ext\mvconnection.jar!\META-INF\jdev-ext.xml
    Error: jar:file:/H:/Programme/jdev/jdev/lib/ext/mvconnection.jar!/META-INF/jdev-ext.xml<Line 25, Column 20>: XSD-2034: (Error) Element 'description' not expected.
    Error: jar:file:/H:/Programme/jdev/jdev/lib/ext/mvconnection.jar!/META-INF/jdev-ext.xml<Line 26, Column 13>: XSD-2034: (Error) Element 'help' not expected.
    I use Jdeveloper 10g. Have you ever met the same problem?
    Thanks in advance

    The Map Viewer extension is still not available for JDeveloper 10g. It works with JDeveloper 9.
    The Mapping group is currently working on an upgrade.

  • How to create JDeveloper Extension for new Projects ??

    I want to create a JDeveloper Extension for creating new project with following: (11gR2)
    1. Maven Support
    2. pre-defined dependencies in pom.xml
    3. pre-defined project feature (e.g. ADF Business Components)
    4. pre-defined Custom Base classes for ADF Business Componets
    Are there any documents / samples that i can reference ?!

    Some of these can be added declaratively using the template_hook in the extension.xml file and defining an application and project template. Others will need to be added directly.
    1. Add Maven Support
    This can be added declaratively, as technology in the project template hook.
    2. pre-defined dependencies in pom.xml
    This is going to need to be added to your project after it's created.
    3. pre-defined project feature (e.g. ADF Business Components)
    Same as Maven support.
    4. pre-defined Custom Base classes for ADF Business Componets
    You should be able to use the library hook for this, but I'm not quite clear on what this means.
    Here is an example template-hook that describes the creation of a Maven Application and the Maven Project that will be included with it. The <template-hook> element is placed inside the <triggers> section of the extension.xml file in 11gR2 (this won't work in 11gR1). This template-hook is what makes the Maven Application item show up in the New Gallery. Take a look at how that New Maven Application process works, and then look over this example. The <technologyKey> setting what adds the features to your application/project. In the example below, the Maven feature is being added to the project. The technologyKey for ADF Business Components is "ADFbc"
    The commented out lines below are either just comments, or they are optional elements for the project and application template hooks. It's pretty obvious which is which.
         <template-hook>
            <!--Maven Project template-->
            <projectTemplate>
              <templateId>mavenProjectTemplate</templateId>
              <name>Maven Project Template</name>
              <description>${MAVEN_PROJECT_TEMPLATE_DESCRIPTION}</description>
              <!-- <toolTip /> -->
              <!-- <weight /> -->
              <!-- <icon /> -->
              <!-- <galleryFolder /> -->
              <!-- <unsorted /> -->
              <projectName>mavenProj</projectName>
              <!-- <deploymentProfile>a.b.c.D</deploymentProfile> -->
              <technologyScope>
                <technologyKey>Maven</technologyKey>
              </technologyScope>
            </projectTemplate>
            <!-- Maven Application template -->
            <applicationTemplate>
              <templateId>#mavenApplicationTemplate</templateId>
              <!-- <templateClass /> -->
              <name>Maven Application</name>
              <description>${MAVEN_APPLICATION_TEMPLATE_DESCRIPTION}</description>
              <!-- <toolTip /> -->
              <weight>1.0</weight>
              <icon>/oracle/javatools/icons/application.png</icon>
              <!-- <galleryFolder /> -->
              <unsorted>false</unsorted>
              <applicationName>MavenApp</applicationName>
              <!-- <deploymentProfile>a.b.c.D</deploymentProfile> -->
              <projectTemplates>
                <projectTemplate>
                  <templateId>mavenProjectTemplate</templateId>
                  <!-- <name /> -->
                  <!-- <description /> -->
                  <!-- <projectName /> -->
                  <!-- <promptForProjectName /> -->
                  <!-- <deploymentProfile /> -->
                  <technologyScope>
                    <technologyKey>Maven</technologyKey>
                  </technologyScope>
                </projectTemplate>
              </projectTemplates>
            </applicationTemplate>
          </template-hook>For including predefined pom.xml settings, you can either edit the generated pom.xml file after the project is created, or you can add a predefined pom.xml file to the project. You can see more about working with files in a project on the [url https://blogs.oracle.com/jdevextensions/tags/files] JDev Extensions Blog
    Not quite sure what you are looking to do with the last item. If it's libraries that you're looking to add, you can take a look into the <libraries> hook.
    Staying with the Maven example... Here is a partial <libraries> element
          <libraries xmlns="http://xmlns.oracle.com/jdeveloper/1013/jdev-libraries">
            <library name="Apache Maven 3.0.3">
              <classpath>../../apache-maven-3.0.3/lib/maven-aether-provider-3.0.3.jar</classpath>
               <classpath>../../apache-maven-3.0.3/lib/maven-artifact-3.0.3.jar</classpath>
           <classpath>../../apache-maven-3.0.3/lib/maven-compat-3.0.3.jar</classpath>
           <classpath>../../apache-maven-3.0.3/lib/maven-core-3.0.3.jar</classpath>
           <classpath>../../apache-maven-3.0.3/lib/maven-embedder-3.0.3.jar</classpath>
           <classpath>../../apache-maven-3.0.3/lib/maven-model-3.0.3.jar</classpath>
            </library>
          </libraries>Hope all of this helps, Please feel free to contact me directly via email if that would help you out. john<dot>brock<AT>oracle.com
    --jb                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Error while deploying a Java Stored Procedure using JDeveloper

    Hi,
    I was going thru the Oracle By Example article: "Developing SQL and PL/SQL with JDeveloper". (http://www.oracle.com/technology/obe/obe9051jdev/ide1012/plsqlobe/obeplsql.htm)
    One of the items in this article is - "Creating and Deploying a Java Stored Procedure"
    I was able to create a java class, compile it. Created a deployment profile. created a pl/sql wrapper. While trying to deploy the java stored procedure, I am getting the following error:
    Invoking loadjava on connection 'hr_conn' with arguments:
    -order -resolve -thin
    errors : class package1/mypackage/JavaStoredProc
    ORA-29521: referenced name java/lang/StringBuilder could not be found
    The following operations failed
    class package1/mypackage/JavaStoredProc: resolution
    oracle.aurora.server.tools.loadjava.ToolsException: Failures occurred during processing
         at oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:863)
         at oracle.jdeveloper.deploy.tools.OracleLoadjava.deploy(OracleLoadjava.java:116)
         at oracle.jdeveloper.deploy.tools.OracleLoadjava.deploy(OracleLoadjava.java:46)
         at oracle.jdevimpl.deploy.OracleDeployer.deploy(OracleDeployer.java:97)
         at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:474)
         at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:361)
         at oracle.jdevimpl.deploy.StoredProcHandler.doDeploy(StoredProcHandler.java:285)
         at oracle.jdevimpl.deploy.StoredProcProfileDt$Action$1.run(StoredProcProfileDt.java:383)
    #### Deployment incomplete. #### Oct 27, 2005 1:38:56 PM
    Appreciate your help on this..

    I am using Jdeveloper 10.1.3 Early Access Version. JDK comes with it. I also have another JDK on my machine (JDK1.4.2_09)

  • Information Retrieval with Genetic Programming using J2ME and Java WTK

    i have a big project to make a software using java programming especially n using J2ME and Java Wireless Toolkit, and i'm a begginer for java programming. I have no idea for the interface and how to setting connection between my phone mobile and GPRS. what should i do? thank you

    I believe MIT has lots of sourcecode. Try searching their site.

  • How to convert oracle form fmb file to java swing file using Jdeveloper

    how to convert oracle form fmb file to java swing file using Jdeveloper.Please explain with detailes steps if possible or please give a link where it is available
    thanks
    Message was edited by:
    user591884

    There is no automatic way to do this in JDeveloper. I know there are some Oracle Partners offering forms to java conversion, I don't know how much of their tools are automated and done with JDeveloper. With JDeveloper+ADF you basically rewriting the Forms application from scratch (and using ADF is helpful during this process).

  • Use Custom Extension Web Item to Retrieve DSO Data Directly

    Hi experts,
    Is it possible to use Custom Extension Item in BEx WAD to retrieve DSO data directly? The idea is to display master data for a line item (e.g. customer name, id, address etc.) in the header section of a Web Template. If it is possible, how can I implement that?
    If not, is there any other possibility to fulfill the requirement?
    Thanks in advance.
    Regards,
    Joon

    Hi experts,
    any update on this?
    Thanks,
    Joon

  • Deploy project using  Jdeveloper with native library (dll)

    hi
    i need to deploy project using Jdeveloper but the generated jar dose not include native library dll file .

    it is ok now
    using deployment in properties of project and add new file group of type dependency analysis

  • Copying complete directory structure using java.io.File

    Is there a solution to problem when you want to copy a complete directory structure using java.io.File class as you can copy when using FTP connection.

    Is there a solution to problem when you want to copy
    a complete directory structure using java.io.File
    class as you can copy when using FTP connection.FTP does not have a command to transfer all the files in a directory. FTP clients implement this by invoking single file transfer for each file in a directory.

  • Sun recommended Java EE project directory structure?

    Hello,
    It's said that there's a Java EE project directory structure recommended by Sun.
    How to get it?
    I find a link as following,
    http://java.sun.com/blueprints/code/projectconventions.html
    The article is my want? Thanks!
    a cup of Java, cheers!
    Sha Jiang

    I got this worked out.

  • Add a posixaccount user in posixgroup in sun directory server using java

    Hi
    Anybody now how to add posixaccount user in posixgroup in sun directory server using java code.
    I am able to add normal directory server user in ldap group in java.
    But i am getting any luck to add posixaccount user in posixgroup.
    I know we can set uid value in memberuid attribute but how to add through java program.
    Anybody can paste code for that.
    Thanks.

    To CRabel,
    My company have restriction on using the open sources product/code, but i will take a look on netscape ldap sdk as a reference~
    To raghu1978 ,
    i find a product call Directory Editor 1 2005Q1, I hope it is useful.
    thz all~

Maybe you are looking for