How to run the imported java class in form

Help!!!!!
Pls help me to run the imported java class in forms.
Package is created in forms while imported one class called
singlexml.class and that package has one procedure and one
function.
I just wanted to run that class.I mean the new package.
Thanks
Anil

Hi,
It is because the converter works on byte code and it only supports a subset of the Java language (see the JC specifications). It is kind of like compiling you code on Java 6 and trying to run it on Java 5. The JCDK outlines the required compiler version.
Cheers,
Shane

Similar Messages

  • How to run the deployed java file

    Hi friends
    please guide me hoe to run the deployed Java class file on the machine on which the java sdk is not installed please tell me also the it is necessary to change environment variables
    becoz i have created one small package & i want to deploy & capable to work it on machine on which there is no java SDK is installed

    Does your application have a GUI (e.g. Swing or AWT)? Can you distribute it from a web site?

  • How to find the main java class file

    I need to write a Java program which MUST know one of these:
    1) the full path to the main java class (the class with "main" method)
    or
    2) access to the main class as byte array.
    If i know (1) then I have no problems reading the main class into byte array, but the main target is still (2).
    Another option is if the main file is in JAR, which again leads to problems, because I cannot access the file in normal way, but I still need access to the exact byte stream.
    Any help is highly appreciated! Thanks!
    <<< Ivan Davidov >>>

    You could try somthing like this in your main-method:
    InputStream is = getClass().getResourceAsStream(<"myModifiedPackageName/MyClass.class">);I don't know if this works though.
    Have a look at the API doc for this method.
    -Puce

  • Importing java class from forms 6i

    Dear people
    I want to import very simple java class from forms 6i, i went to programs then i choose import java classes, then it gives me error message PDE-UJ1001 failed to create the jvm.
    please tell me how to solve the problem.
    Yasser

    +... not a Java question. Post moved from the New To Java to the Forms forum.+

  • Cannot import Java classes to form

    I am using Forms Forms [32 Bit] Version 10.1.2.0.2 (Production).
    I want to use the Persian Calendar from this web-site http://persiancalendar.sourceforge.net/.
    I download the stuff and there are 2 JAR files.
    I did this:
    -- Put the JAR files in my E:\Ora_Dev_10g_R2\forms\java directory
    -- Made an entry of these 2 in the E:\Ora_Dev_10g_R2\forms\server\formsweb.cfg file
    Now, when I open a form and got IMPORT JAVA CLASSES, I Can't see the classes.
    The directory structure of the 2 JAR files (after expanding is like this):
    persiancalendar.jar
    -> E:\Ora_Dev_10g_R2\forms\java\persiancalendar\com\ghasemkiani\util
    -> under util there is the sub-dir icu
    icu4j_3_2_calendar.jar
    -> E:\Ora_Dev_10g_R2\forms\java\icu4j_3_2_calendar\com\ibm\icu
    -> under icu there are these sub-directories impl, lang, math, text, util
    The E:\Ora_Dev_10g_R2\forms\java is in my CLASSPATH:
    C:\>echo %CLASSPATH%
    .;e:\Ora_Dev_10g_R2;*e:\Ora_Dev_10g_R2\forms\java*;D:\Program Files\QuickTime\QTSy
    stem\QTJava.zip;

    Scott,
    I agree with Abdetu, you should create your own thread for your question. However, to set an environment variable in UNIX you declare the variable and then export it. For example, in your default profile you could add the following:
    FORMS_BUILDER_CLASSPATH='Your Path Here'
    export FORMS_BUILDER_CLASSPATHCraig...
    Edited by: CraigB on Feb 4, 2011 11:24 AM

  • Importing Java classes in Forms 6i

    Hi
    When I try to import java classes using the option available in forms 6i,I get the following error
    PDE-UJI001 Failed to create the JVM.
    ne clue?
    Thanks
    Gangs

    You have installer the JDK 1.2 (This software located in a Sun Microsystems Web Site), and you have a configure the your PATH:
    PATH=%PATH%;< path your JDK installed >;
    If you have Designer 6i installed in your machine, then your Enviromento Variable PATH = PATH=< path your JDK installed >;%PATH%;
    After configure the PATH, you have a create another Enviroment Variable CLASSPATH with:
    Example:
    CLASSPATH=C:\oracle\designer\TOOLS\COMMON60\JAVA\IMPORTER.JAR;c:\jdk1.2.2;
    Test your Forms 6i.

  • How to run the simple java card program in eclipse?

    I am trying to run a simple HelloWorld program in eclipse 3.5 having java card development kit 2.2 installed in it.
    Firstly,I go to the JCWDE tab and press start..then when trying to deploy that package its giving me error like " com.hw.HelloWorld: unsupported class file format of version 50.0." can any one help me in this what is this error???n how to resolve n run this program..

    Hi,
    It is because the converter works on byte code and it only supports a subset of the Java language (see the JC specifications). It is kind of like compiling you code on Java 6 and trying to run it on Java 5. The JCDK outlines the required compiler version.
    Cheers,
    Shane

  • How to export and import java class?

    -- OS: RHEL5, Oracle 10.2.0.5
    Dear!
    I've got one schema contains only java and java-source, with some table object.
    Now, I'd like to find the way to export java class and import into the other database, however, I can not find the best way without datapump. My purpose is only export java class (not include java source, the other object). I tried to use dbms_metadata, but not worked with java.
    May you show me some thing about that?
    Thank you!

    Thank you for your reply!
    As I posted below, I tried to get from dbms_metatdata, but could not. So, please view an example:
    system@CLOUD> col object_name format a15
    system@CLOUD> col object_type format a15
    system@CLOUD> select object_name, object_type, status from dba_objects
      2  where owner='CLOUD_ADMIN'
      3  and object_type like 'JAVA%'
      4  and object_name like 'Ba%'
      5  /
    OBJECT_NAME     OBJECT_TYPE     STATUS
    Base64          JAVA CLASS      VALID
    Base64          JAVA SOURCE     VALID
    system@CLOUD> select dbms_metadata.get_ddl('JAVA CLASS','Base64','CLOUD_ADMIN
      2  from dual;
    DBMS_METADATA.GET_DDL('JAVA_CLASS','BASE64','CLOUD_ADMIN')
      BEGIN NULL; END;Well, the dbms_metadata did not get ddl from java class, but only Java-Source!
    Example:
    system@CLOUD> ed
    Wrote file afiedt.buf
      1  select dbms_metadata.get_ddl('JAVA_SOURCE','Base64','CLOUD_ADMIN')
      2* from dual
    system@CLOUD> /
    DBMS_METADATA.GET_DDL('JAVA_SOURCE','BASE64','CLOUD_ADMIN')
       CREATE JAVA SOURCE NAMED "CLOUD_ADMIN"."Base64" AS
    // To modify this template, edit file JavaS.txt in TEMPLATE// directory of SQL
    Navigator//// Purpose: Briefly explain the functionality of the procedure//// MO
    DIFICATION HISTORY// Person      Date    Comments// ---------   ------  --------
    -----------------------------------//import java.lang.*;import java.io.Unsupport
    edEncodingException;public class Base64 {       //private static int FACTOR =6;
    private final static String LANGUAGE = "ISO8859_1";        public static String
    cvt = "opqrstEFGHIJKLMNOPQRSAB3456CDTUVWXYZabcdefghijklmnuvwxyz012789-_";
      private static int fillchar1 = '.';        private static int fillchar2 = '.';
            public Base64(){};        public static String byteArrayToString(byte[]
    input)
    throws UnsupportedEncodingException{        if (input != null) return new String
    (input, LANGUAGE);        else return null;        }        public static byte[]
    stringToByteArray(String input) throws UnsupportedEncodingException{        if
    (input != null) return input.getBytes(LANGUAGE);        else return null;
    }        public  static String encode(String s) {            try {
           byte[] data = stringToByteArray(s);                    int c;
            int len = data.length;                    StringBuffer ret = new StringB
    uffer(((len / 3) + 1) * 4);                    for (int i = 0; i < len; ++i) {
                          c = (data[i] >> 2) & 0x3f;                        ret.appe
    nd(cvt.charAt(c));                        c = (data[i] << 4) & 0x3f;
                if (++i < len)                            c |= (data[i] >> 4) & 0x0f
    ;                        ret.append(cvt.charAt(c));                        if (i
    < len) {                            c = (data[i] << 2) & 0x3f;
               if (++i < len)                                c |= (data[i] >> 6) & 0
    x03;                            ret.append(cvt.charAt(c));
      } else {                            ++i;                            ret.append
    .....

  • How to keep the generated java classes for compiled jsp in WL9.2 Workshop

    Hi all,
              <p>
              It should be a very simple question for most of you, however, it seems a bit tricky to me: how to configure the Weblogic 9.2 workshop so that we could keep the generated java files for the compiled jsp when we ran the application within WL 9.2 workshop?
              <p>
              I try some configurations, but not working. Also, where are the generated java files stored?
              <p>
              Thanks for the help!
              <p>
              Agnes
              Edited by wingagnes at 03/21/2008 7:51 AM

    Hi yzeng,
              <p>
              Thanks for the reply. If I change the jsp-descriptor into the following:
              <p>
              <jsp-descriptor>
              <p>
              <keepgenerated>true</keepgenerated>
              <p>
              <working-dir>D:\temp\golGenerated</working-dir>
              <p>
              <debug>true</debug>
              <p>
              </jsp-descriptor>
              <p>
              I will get the following error message:
              <p>
              cvs-complex-type.2.3.d:Invalid content was found starting with element 'precompile'. No child element is expected at this point.
              <p>
              Thanks,
              <p>
              Agnes

  • Importing java class in form 10g

    hi
    I have successfully imported a java class in my form but when i am trying to import java.lang.float, it is throwing me the following error:
    Importing Class java.lang.float...
    Exception occurred: java.lang.ClassNotFoundException: java.lang.float
    Could anybody let me know what jar file i am missing and in what path should i add the jar file.
    Thanks in advance,

    Hello,
    float is not an object. Try : java.lang.Float
    Francois

  • Can't Import java class in form 10g

    Hi All,
    I have tried to call a web service from oracle form 10g
    so, I read your available document (How to call Web service from Form 10g)
    http://www.oracle.com/technology/obe/obe_as_10g/deploy/callws_fromforms/forms_webservice.htm#r1
    but when I've created a web service from WSDL file and I've deployed it to JAR file using Jdeveloper 10g (10.1.2.1.0).
    I tried to import it into form builder 10g but i have the error :
    java.lang.NoClassDefFoundError: oracle/jdeveloper/webservices/runtime/WrappedDocLiteralStub
    Please, can any body help me to solve this problem?

    Have you put the jar file in the classpaths??

  • Can't find the imported java class when run .jsp file

    Hi,
    I want to run a jsp web application using tomcat. I put all my .jsp files under "TOMCAT_HOME/webapps/junmin" directory, and put all .class files under "TOMCAT_HOME/webapps/junmin/WEB-INF/classes" directory. I set up TOMCAT_HOME AND JAVA_HOME already. But when I type in the address like below:
    http://db1.acad.emich.edu:8080/junmin/login.jsp
    The IE will give me error msg indicating that it can't find all the .class files which I imported them in login.jsp file.
    So, does anyone know that if I miss some configuration in order to let the .jsp file recognize the .class files. Thanks a lot!
    Sincerely, Junmin

    Ha, this might be the reason.
    Can I add sth like this:
    <Context path="/junmin" docbase="junmin" debug=0 reloadable=true>
    </Context>
    But in my local computer, I didn't add this <Context> either. It works well.
    Thanks a lot! I will ask the administrator to try this.
    And will write down the reason.
    Sincerely, Junmin

  • How to import java Classes in report Builder 10g

    How to import java Classes in report Builder 10g .....
    Arshad

    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 java Classes in report Builder

    Hi, I want to import classes from a jar file into Report Builder (10 g). I'm not able to find my JAR in -- Program --> Import Java Classes option.
    I have set the classpath pointing to my JAR.

    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

  • Import Java Classes

    Hello,
    Is anybody knows where i can find documentation about the Import Java Classes functions in Forms9i.
    What they are, how to implement them, etc. ?

    Hi,
    did you check teh online help for the Java Importer?
    also:
    http://otn.oracle.com/products/forms/pdf/forms_in_java_world.pdf
    http://otn.oracle.com/products/forms/pdf/javaimporter.pdf
    Frank

Maybe you are looking for

  • Material Document No ranges

    Hi all, Can Material Document No ranges be changed for every fiscal year ? say i want to discontinue the existing no range series and start the document range with a new series for the new fiscal year . is this possible ? i tried doing this but the s

  • Code sign failures submitting iOS Air App

    Hi folks, I wondering if any of you might be able to point me in the right direction on this. I'm likewise having issues trying to submit an ipa file to iTunes Connect via Application Loader, and got as far as zipping the .app file and submitting. I

  • Problem with activating integration model

    When I am trying to activate an integration model, that includes a scheduling agreement (type LF), the activation isn't successfull. It isn't blocked, but it never stops. In the screen I have a message called "determining delta model" but it never co

  • How we can pass the value of TECHKEY in ECC

    In SAP CRM they are passing SAP TECHKEY but in ECC it is not available. How they are setting the TECHKEY value in sap ISA B2B application. Advanced Thanks PC.M

  • Acessing a webservice (JSP)

    hi friends , i m trying to acess a jsp web service from abap . for this im using SOAP classes . the problem im facing here is tat im not able to acess a .jsp service i can acess a .asmx webservice from ma abap . it is probably because of the binding