Import only Java classes

Hi,
I've got a export dump (with rows=N) and now I would like to import only the JAVA CLASSES/RESOURCE from this export dump .
Can someone please assist in the procedure to follow?
Thanks.

I dont believe that you can specifically ask for java classes to be imported with imp. You can with datapump import.
You could do an import with the indexfile parameter and look at the DDL that would have been run, and pick out your java classes out of this?

Similar Messages

  • How to import a java class in a JSP

    Hi All,
    I have a java class file called myTest.class (i made after compilation of myTest.java). I have a JSP page that uses this java class file.
    These 2 files are in same folder called c:/test
    and iam importing this java class file into my jsp file and that too at the start of this jsp file:
    <%@page import="myTest" %>
    BUt iam getting an error ..............when iam running this JSP page:
    /opt/bea81sp2/user_projects/domains/wliDomain/./Managed2/.wlnotdelete/extract/Managed2_myTest_myTest/jsp_servlet/__test.java:20: '.' expected
    probably occurred due to an error in /test.jsp line 5:
    <%@page import="myTest" %>
    Please advise how to solve this problem
    -sangita

    Don't bother with the import
    when iam not importing this class file into my JSP, then on my JSP, the class file is not found.
    Here is my code: and these 2 class file are in c:/test
    import org.apache.tools.ant.taskdefs.Ant;
    import org.apache.tools.ant.taskdefs.Property;
    import org.apache.tools.ant.types.*;
    import org.apache.tools.ant.*;
    import org.apache.tools.ant.taskdefs.ExecTask;
    import org.apache.tools.ant.types.Commandline;
    import java.io.File;
    * Creates an Ant project to run an Ant build
    * @author myself
    * @version 1.0
    public class RunTest extends Ant {
        String applicationName;
        String buttonClicked;
        String boxName;
        String targetName;
        public void applicationName(String applicationName){
         this.applicationName = applicationName;
        public void boxName(String boxName){
         this.boxName = boxName;
        public void buttonClicked(String buttonClicked){
         this.buttonClicked = buttonClicked;
      public RunTest() {
    public void goTest() {
         if(this.buttonClicked.equalsIgnoreCase("deploy") && this.applicationName.equalsIgnoreCase("scsmail") && this.boxName.equalsIgnoreCase("testnet")){
           this.targetName = "deploy-scsmail-testnet";
         if(this.buttonClicked.equalsIgnoreCase("undeploy") && this.applicationName.equalsIgnoreCase("scsmail") && this.boxName.equalsIgnoreCase("testnet")){
           this.targetName = "undeploy-scsmail-testnet";
        Project project = new Project();
        project.init();
        System.out.println("printing 1 ....");
        ExecTask exec = new ExecTask();
        exec.setProject(project);
        exec.setExecutable("/opt/bea/weblogic81/server/bin/ant.bat");
         exec.setDir(new java.io.File("/export/home/beamon/bin"));
         Commandline.Argument arg = exec.createArg();
         // arg.setLine("-f scsmail.xml test -listener org.apache.tools.ant.XmlLogger -logfile D:/antProject/src/log.xml");
         arg.setLine("-f build.xml "+ targetName + " -listener org.apache.tools.ant.XmlLogger -logfile /export/home/beamon/bin/log.xml");
         System.out.println("printing 2....");
        //exec.setOutput(new File("D:/antProject/logs/prob.txt"));
        exec.execute();
        System.out.println("printing 3....");
    -----------------------the JSP page is called as test.jsp
    <%@page contentType="text/html" %>
    <%@page import="java.io.*" %>
    <%@page import="java.util.*" %>
    <%@page import="java.net.*" %>
    <%@page import="RunTest" %>
    <HTML>
    <TITLE>TESTING ANT GUI</TITLE>
    <HEAD>
    <META HTTP-EQUIV="Refresh" CONTENT="3000" >
    <meta http-equiv="Cache-Control" content="no-cache">
    </HEAD>
    <BODY BGCOLOR="silver" TEXT="333333">
    <table border=0>
    <tr align="left"><td align="left"><FONT SIZE="-1"><B>  Test Page <FONT SIZE="-1"><B></td></tr>
    </table>
    <hr></center>
    <form action="./test.jsp" method="POST" name="testForm">
    <table>
    <tr>
    <td>
    <select name="appName" size=1>
    <option value="">Select Application Name
    <option value="scsmail">scsMail
    <option value="clientmanager">ClientManager
    </select>
    </td>
    <td>
    <select name="boxName" size=1>
    <option value="">Select Box Name
    <option value="testnet">TestNet
    <option value="production">Production
    </select>
    </td>
    </table>
    <table>
    <input type="submit" name="deploy" value="deploy">
    <input type="submit" name="undeploy" value="undeploy">
    </table>
    <%
       RunTest rt = new RunTest();
       rt.applicationName(request.getParameter("appName"));
        String deployButton = "";
        deployButton=request.getParameter("deploy");
        String undeployButton = "";
        undeployButton=request.getParameter("undeploy");
        if(!deployButton.equalsIgnoreCase("")){
            rt.buttonClicked(request.getParameter("deployButton"));
        if(!undeployButton.equalsIgnoreCase("")){
            rt.buttonClicked(request.getParameter("undeployButton"));
       rt.boxName(request.getParameter("boxName"));
        rt.goTest();
    %>
    </form>
    </table>
    </BODY>
    </HTML>

  • Unable to import a java class in a jsp file

    Hi,
    I am trying to import a java class in my jsp.
    ------------------jsp---------------
    <jsp:useBean id="form" class="com.company.portlets.searchApps.object.SearchOBJ" scope="request" />
    <jsp:setProperty name="form" property="*" />
    <input type="TEXT" name="projectID" value='<%= form.getProjectID() %>'>
    When I run the above JSP, it says that class 'com.company.portlets.searchApps.object.SearchOBJ' cannot be found.
    Why?
    My project structure looks like this:
    Project
    +Application Sources
    ++com.company.portlets.searchApps.object
    +++SearchOBJ.java
    +Web Content
    ++htdocs
    +++searchappsportlet
    ++++SearchAppsPortletShowPage.jsp
    ++WEB-INF
    +++index.jsp
    +Resources
    ++SearchApps.deploy
    Please advice...thanks!

    The way that JDeveloper organized the files was like this:
    C:\jdev1012\jdev\mywork\WksSearchApps\Project\classes\com\company\portlets\searchAPPS\object\SearchOBJ.class
    I am assuming that JDeveloper puts the file where they are suppose to be...if not, how do I change that?
    thanks,
    hussain

  • ADF : How to import a java class in jspx page

    Hi All,
    In jsp we have page directive to import a java class. Do we have anything similar to that in a jspx page?

    Hello,
    If you create a new jspx file in jdeveloper, the untitled file generated will be this:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=UTF-8" import="java.util.*"/>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>untitled1</title>
    </head>
    <body></body>
    </html>
    </jsp:root>
    You can see the page directive there!

  • To Unable to Import Customize Java classes in Report Builder 10g

    Hi,
    In Report Builder 10g , I am trying to load image from Remote server
    URL:"http://imagecache5.art.com/p/LRG/15/1544/1ABDD00Z/muhammad-ali-vs-sonny-liston.jpg"
    Steps did in Report Builder 10g
    1.In Report Builder Created a Formula column with
    Datatype : Character
    Read from File: Yes
    File Format: Image
    In Formula columns trying to Unable to Import Customize Java classes.
    To read methods from Java classes.
    Please help on this.
    Ranga

    Hello,
    To import the Java classes:
    Add your jar in the REPORTS_CLASSPATH
    Launch Reports Builder.
    Note:
    You must launch Reports Builder now so that the new REPORTS_CLASSPATH is used.
    Choose Program > Import Java Classes to display the Import Java Classes dialog box.
    Regards

  • How to import a java class

    Hi
    I want to know how can i import some java classes to my application.
    I'm trying to write a little class as:
    package paco.view;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import javax.faces.convert.Converter;
    import javax.faces.convert.ConverterException;
    import oracle.jbo.domain.ClobDomain;
    public class ClobConverter implements Converter {
    public ClobConverter() {
    public Object getAsObject(FacesContext context,
    UIComponent component,
    String value) {
    if (context == null || component == null) {
    throw new NullPointerException("FacesContext and UIComponent can not be null");
    if (value == null) {
    return null;
    try {
    return new ClobDomain(value);
    } catch (Exception ex) {
    final String message =
    String.format("Unable to convert boolean value \"%s\" into a oracle.jbo.domain.Number",
    value);
    throw new ConverterException(message, ex);
    public String getAsString(FacesContext context,
    UIComponent component,
    Object value) {
    if (context == null || component == null) {
    throw new NullPointerException("FacesContext and UIComponent can not be null");
    return value.toString();
    but I'got this message:
    Error(3,8): class javax.faces.component.UIComponent not found
    Error(4,8): class javax.faces.context.FacesContext not found
    Error(5,8): class javax.faces.convert.Converter not found
    Error(6,8): class javax.faces.convert.ConverterException not found
    What should I do?
    Thanks in advance
    FRANCISCO

    You need to add the faces library to you project. To do this, select the project properties, go to libraries and class path and select the faces library.
    Using JDev you can also choose one or more project technologies (project properties->technology scope) which will add the needed libraries to the project.
    Timo

  • Import new java classes into a running programm

    Hello, i have a small Java problem, i hope somebody knows an answer ...
    I try to write a Java Programm, this programm starts and load a new class, this class is not defined inside the running programm, but the running programm should use the new class.
    example:
    // a class file in a directory somewhere at my harddisk
    public void class X
    void doSomething()
    //Print "Hello world"
    start programm A
    Programm A does something, but doesn�t "know" class X, class X is not compiled with program A
    after some seconds, A should load class X.
    if (M == N) "import class X"
    // At this moment, Programm A knows class X
    X NewObjektX = new X();
    NewObjektX.doSometing();
    Thats my problem :)
    I am sorry about my bad english, but its sadly not my first language.

    Hello :)
    Thx for an answer, i tried your solution, but i get another problem.
    The type to create an object ist unknown.
    i?ll post my exmaple code :
    This class is not compiled with the main programm, only the class file is inside the directory of the main program.
    public class SimpleClass
         int Information = 0;
         void printOnScreen()
             System.out.println("Varibale of the class:"
               + this.Information);   
    This is the main programm:
    public class Main {
         public static void main(String[] args)
              try
                Class newClass = Class.forName("SimpleClass");
                Object instance = newClass.newInstance(); 
                  System.out.println(instance.getClass());
                  // At this point no errors, the tpye of instance is
                     "SimpleClass"
                  // This line occurs an error, the type "SimpleClass" is
                  // unknown.
                SimpleClass newClassInstance = (SimpleClass) instance;
              catch (ClassNotFoundException e)
                System.out.println("Can?t open Class");
                System.err.println(e.getMessage());
              catch (InstantiationException e)
               System.out.println("Error1");
               System.err.println(e.getMessage());
              catch (IllegalAccessException e)
                 System.out.println("Error2");
               System.err.println(e.getMessage());
          } // public static void main(String[] args)
    } // public class MainI tried another solution with inheritance, i programmed a superclass, and choose the superclass as the type (the Superclass was compiled with the main programm).
    The SimpleClass extends Superclass.
    // works fine, but i dont want this type of solution :)
    Superclass newClassInstance = (Superclass) instance;
    How cann i solve the "unknown type" problem ?
    SimpleClass newClassInstance = (SimpleClass) instance;

  • Importing a Java class into a servlet...?

    Hi guys..!
    I have a java class that I would like to import or use in my servlet class....does any of you knows how to do that...?? and in which directory should I put the java class..??
    Any help will be appreciated...
    Thanks,

    Same way you would import any other class into any other class. With an "import" statement. There is nothing special about servlets in this case, and there is nothing special about the fact that the class was written by you. The only requirement is that imported classes must be in a package.

  • Import nativa java class in UCM page

    I need to integrate couple of java classes in existing UCM pages. Let's say we have some class like this one: http://pastebin.com/aybc6rnF
    The point is to be imported in lots of templates like this:
    <%@page buffer="8kb" import="somepath.EGNChecker"%>
    and used like this:
    <%
    EgnChecker r = new EgnChecker("132253462355");
    %>
    &lt;div class="something"&gt;<% if(r.isValid()) { %> Hip Hip Hurray! <% } %> &lt;/div&gt;
    What is the fastest and easier way to accomplish that?
    Edited by: 883953 on Sep 9, 2011 7:09 AM

    create a new idoc script function as sample #7 in the howtocomponents shows.
    http://www.google.com/search?aq=f&sourceid=chrome&ie=UTF-8&q=howtocomponents+sample+oracle
    the first hit should be a good one. The single component is a bundle of 10 samples if memory serves and number 7 is the sample for new IDOC script functions that have pure java behind them.

  • Need to import my java class. Please help

    Dear all.
    I made a java class named GetOS which contains a method that return th OS name. Then I deployed this class to a Jar file called tarek.jar.
    now I need to import this jar file in my form
    i'm using forms9i release2
    I did the following:
    I copied "tarek.jar" to \\developerhome\forms90\java\
    then I opend the forms builder - program-import java class but my jar file "tarek" doesn't exist in the list.
    please help.

    Dear all
    I solved this problem. I editing the class path of the system control panel>system>advanced and it works fine
    Now i can import my class easly without any problems
    But when the forms builder imported my class , it generates a pl/sql package which contains a function with the same name of the method i did in my class.The problem is I do not know how to call this function
    Function getOSname( obj ora_java.jobject)
    return varchar2 is
    begin
    cls := jni.get

  • Importing  UI java classes in model project

    Dear All,
    Am using Jdeveloper 11.1.1.3 , I have a java class under UI and am trying to call this java class from the implementation class for an entity ... can i do that or this is not supported ?
    Thanks for all,

    DEAR John,
    am used to work on oracle developer and in oracle developer i can do what ever validations i need on the when-validate-item and show a message in the same pl/sql ,
    and this is what am trying to do ( even in a work around ) in the JDeveloper
    I'll try to explain my use case,
    I have a loan application module , and int that application i have a transaction page where the user can enter the payments for the applications... now the user normally enter the payments for the active ( not closed) applications so when the user specify the application number , i should check the status for that application if its closed or not and if its closed i should give a message for the client to warn him that this application is closed , i know i can do these validation when pressing the commit button but i need to know if i can do it on the attribute level

  • How to import a Java class using Rule Author ?

    I want to recreate the following ruleset using the Oracle Rule author
    RL> ruleset parse {
    import java.lang.Integer;
    rule A {
    String total = "12";
    int t = Integer.parseInt(total);
    if (t == 12) {
    println("Total=" + t);
    Does anyone know how to create the RL line "import java.lang.Integer;" using Rule Author ?

    The line "import java.lang.Integer" isn't necessary if you fully qualify the reference to Integer.

  • Import custom java classes

    Hi,
              I am playing with WL6.0SP2. I started the exampleServer and can render the
              HelloWorld.jsp page using
              http://localhost:7001/examplesWebApp/HelloWorld.jsp. I added a line in
              HelloWorld.jsp like <@ page import="com.xxx.common.*" %> and put the
              exploded com.xxx.common classes under
              \config\examples\applications\examplesWebApp\WEB-INF\calsses directory.
              However, Weblogic failed to compile HelloWorld.jsp, complaining
              com.xxx.common package can not be found. Where should I put the custom
              classes do that it can be found by WL?
              Thanks,
              Shannon.
              

    Hi,
              I am playing with WL6.0SP2. I started the exampleServer and can render the
              HelloWorld.jsp page using
              http://localhost:7001/examplesWebApp/HelloWorld.jsp. I added a line in
              HelloWorld.jsp like <@ page import="com.xxx.common.*" %> and put the
              exploded com.xxx.common classes under
              \config\examples\applications\examplesWebApp\WEB-INF\calsses directory.
              However, Weblogic failed to compile HelloWorld.jsp, complaining
              com.xxx.common package can not be found. Where should I put the custom
              classes do that it can be found by WL?
              Thanks,
              Shannon.
              

  • Do we have INCLUDE=JAVA CLASS AND INCLUDE=JAVA SOURCE OPTION IN DATA PUMP

    Hi All ,
    Can any one please tell me ,
    how to import only java class and java source from datapump export file.
    Include=java class or include=java source is not working ..
    Thanks in advance,
    Sanjeev.

    Duplicate post.
    datapump include option.
    Lock this thread

  • Exceptions thrown when Java Class is imported.

    hi
    This problem comes when I imported a java class in forms 6i. To dig out problem, I made a simple "Hello World" class, import it to forms, use it. It works fine in client/server and on web as well. BUT when i close the form on web (only)by exiting from browser, it throws as exception. message appeared on screen is as
    "ifweb60.ese -- Application error
    "The exception unknown software exception occurred in the application at location ..."
    I m using forms 6i with patch 4a, this problem is occurring with every java class. I even used ORA_JAVA.delete_global_ref( object), after using java class. but i doubt that object could n't deleted with it. cuz after using delete method, i checked the object with ORA_JAVA.IS_NULL and it is not found null :)
    Any one, who has come across this problem and got soln, please help me
    Thanks
    Asif
    null

    Bola,
    This is a benign warning message, but indeed a bug. It is currently being tracked
    as CR059395 internally. It did not make it into the upcoming 3.5 sp2. If this
    problem is causing you trouble, you may wish to request a patch through your Support
    channel.
    Cheers,
    PJL
    "Bola Taylor" <[email protected]> wrote:
    >
    >
    >
    Hi all
    I am currently getting some exceptins thrown each time I view any news
    items without
    logging into personalisation server.
    It is a warning but exceptions are being thrown
    Here are the errors in the attached file
    Any help would be appreciated
    Bola

Maybe you are looking for