Workshop error during compilation of Java class

Hi,
I am starting to use Workshop for development. I am getting the following error when I start the debugger.
I am trying to compile a Java class and don't know how to proceed. Any help is appreciated.
build:
Deleting directory C:\DOCUME~1\name\LOCALS~1\Temp\wlw-temp-23835\wlw_compile55184
Created dir: C:\DOCUME~1\name\LOCALS~1\Temp\wlw-temp-23835\wlw_compile55184
C:\bea\user_projects\applications\CVXMLBeansApplication\CVXMLBeansClient\
ERROR: XMLBeansClient.java:12: The package of this type does not match its location on the source path: .
ERROR: 1 error(s), 0 warning(s).
BUILD FAILED
ERROR: Errors found.

I found the answer nested in the documentation. I had to create folders that mirror the package structure and then place the source file in its appropriate folder.

Similar Messages

  • Error while compiling VO  java files

    I am getting following error while compiling VO java class in my instance
    Exception in thread "main" java.lang.ClassFormatError: com.sun.tools.javac.main.Main (erroneous method access flags)
    at JvClassReader.throw_class_format_error(byte) (/usr/lib/libgcj.so.5.0.0)
    at JvClassReader.handleMethod(int, int, int, int) (/usr/lib/libgcj.so.5.0.0)
    at JvClassReader.read_methods() (/usr/lib/libgcj.so.5.0.0)
    at JvClassReader.parse() (/usr/lib/libgcj.so.5.0.0)
    at JvDefineClass(java.lang.Class, byte[], int, int) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.defineClass(java.lang.ClassLoader, java.lang.String, byte[], int, int, java.security.ProtectionDomain) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int, java.security.ProtectionDomain) (/usr/lib/libgcj.so.5.0.0)
    at java.security.SecureClassLoader.defineClass(java.lang.String, byte[], int, int, java.security.CodeSource) (/usr/lib/libgcj.so.5.0.0)
    at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
    at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.5.0.0)
    at JvFindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
    at JvBytecodeVerifier.verify_instructions_0() (/usr/lib/libgcj.so.5.0.0)
    at JvVerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0)
    at JvPrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at JvWaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
    at java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
    at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
    at JvThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
    at JvRunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
    at __libc_start_main (/lib/tls/libc-2.3.4.so)
    Please advise me to get rid of this one.
    -- Manoj
    Edited by: 856261 on May 4, 2011 12:55 AM

    I created custom VO and files in my local JDev and it is working properly.
    I wanna migrate it to actual instance.So my question is is it mandatory to compile custom java file in application server or i can use same which i used in my local machine(windows)?
    -- Manoj

  • Unable to compile the java class in the SQL PLUS

    Hi Team,
    I am unable to compile the java class in the SQL PLUS in dev1 and dev2. It is giving the following error.
    But the same class get Compiled in the Toad(Tool) without any error and working fine. Could someone help me
    What to do for this for your reference ,Attaching the java class file.
    “ORA-29536: badly formed source: Encountered "<EOF>" at line 1, column 28.
    Was expecting one of:
    ----------------------Here is the Java class Code.....................
    create or replace and compile java source named "XXVM_ZipFileUtil_Ela"
    as
    import java.math.BigDecimal;
    import java.util.zip.Deflater;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipOutputStream;
    import oracle.sql.*;
    import oracle.jdbc.*;
    import java.sql.*;
    import java.io.*;
    public class XXVM_ZipFileUtil_Ela
    public static oracle.sql.BLOB getZipFile(
    oracle.sql.CHAR zipFilePathCHAR, oracle.sql.CHAR zipFileNameCHAR,
    int fileBufferSize, int zipFileBufferSize,
    boolean deleteZipFile, java.sql.Array fileNames, java.sql.Array fileContents, java.sql.Array fileContentsLength)
    throws IllegalArgumentException, FileNotFoundException, IOException, java.sql.SQLException
    String zipFilePath = (zipFilePathCHAR == null) ? null : zipFilePathCHAR.stringValue();
    String zipFileName = (zipFileNameCHAR == null) ? null : zipFileNameCHAR.stringValue();
    String zipPathAndFileName = new String(
    new String(zipFilePath == null || zipFilePath == "" ? "/tmp/" : zipFilePath) +
    new String(zipFileName == null || zipFileName == "" ? System.currentTimeMillis() + ".zip" : zipFileName));
    byte[] buffer = new byte[fileBufferSize == 0 ? 100000000 : fileBufferSize];
    try
    Connection conn = DriverManager.getConnection("jdbc:default:connection:");
    oracle.sql.CLOB[] fileContentsCLOB = (oracle.sql.CLOB[])fileContents.getArray();
    String[] fileNamesString = (String[])fileNames.getArray();
    BigDecimal[] fileContentsLengthNumber = (BigDecimal[])fileContentsLength.getArray();
    ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(zipPathAndFileName));
    zipOut.setLevel(Deflater.DEFAULT_COMPRESSION);
    for (int i = 0; i < fileNamesString.length; i++) {
    System.out.println(i);
    zipOut.putNextEntry(new ZipEntry(fileNamesString));
    InputStream asciiStream = fileContentsCLOB[i].getAsciiStream(1L);
    int asciiReadCount = asciiStream.read(buffer,0,fileContentsLengthNumber[i].intValue());
    zipOut.write(buffer, 0, fileContentsLengthNumber[i].intValue());
    zipOut.closeEntry();
    zipOut.close();
    byte zipFileContents[] = new byte[zipFileBufferSize == 0 ? 100000000 : zipFileBufferSize];
    FileInputStream zipIn = new FileInputStream(zipPathAndFileName);
    int byteCount = zipIn.read(zipFileContents);
    zipIn.close();
    byte returnFileContents[] = new byte[byteCount];
    System.arraycopy(zipFileContents,0,returnFileContents,0,byteCount);
    String returnFileContentsString = new String(returnFileContents);
    if (deleteZipFile)
    boolean deletedFile = (new File(zipPathAndFileName)).delete();
    oracle.sql.BLOB returnFileContentsBLOB = null;
    returnFileContentsBLOB = BLOB.createTemporary(conn, true, BLOB.DURATION_SESSION);
    returnFileContentsBLOB.open(BLOB.MODE_READWRITE);
    //OutputStream tempBlobWriter = returnFileContentsBLOB.getBinaryOutputStream();
    OutputStream tempBlobWriter = returnFileContentsBLOB.setBinaryStream(1);
    tempBlobWriter.write(returnFileContents);
    tempBlobWriter.flush();
    tempBlobWriter.close();
    returnFileContentsBLOB.close();
    return returnFileContentsBLOB;
    catch (IllegalArgumentException ex) {
    ex.printStackTrace();
    throw ex;
    catch (FileNotFoundException ex) {
    ex.printStackTrace();
    throw ex;
    catch (IOException ex)
    ex.printStackTrace();
    throw ex;
    catch (java.sql.SQLException ex)
    ex.printStackTrace();
    throw ex;

    860411 wrote:
    Hi Team,
    I am unable to compile the java class in the SQL PLUS in dev1 and dev2. It is giving the following error.
    But the same class get Compiled in the Toad(Tool) without any error and working fine. Could someone help me
    What to do for this for your reference ,Attaching the java class file.
    “ORA-29536: badly formed source: Encountered "<EOF>" at line 1, column 28.
    Was expecting one of:
    I believe the error message is clear and self-explanatory.
    ----------------------Here is the Java class Code.....................
    create or replace and compile java source named "XXVM_ZipFileUtil_Ela"
    as
    import java.math.BigDecimal;
    import java.util.zip.Deflater;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipOutputStream;
    import oracle.sql.*;
    import oracle.jdbc.*;
    import java.sql.*;
    import java.io.*;
    public class XXVM_ZipFileUtil_Ela
    public static oracle.sql.BLOB getZipFile(
    oracle.sql.CHAR zipFilePathCHAR, oracle.sql.CHAR zipFileNameCHAR,
    int fileBufferSize, int zipFileBufferSize,
    boolean deleteZipFile, java.sql.Array fileNames, java.sql.Array fileContents, java.sql.Array fileContentsLength)
    throws IllegalArgumentException, FileNotFoundException, IOException, java.sql.SQLException
    String zipFilePath = (zipFilePathCHAR == null) ? null : zipFilePathCHAR.stringValue();
    String zipFileName = (zipFileNameCHAR == null) ? null : zipFileNameCHAR.stringValue();
    String zipPathAndFileName = new String(
    new String(zipFilePath == null || zipFilePath == "" ? "/tmp/" : zipFilePath) +
    new String(zipFileName == null || zipFileName == "" ? System.currentTimeMillis() + ".zip" : zipFileName));
    byte[] buffer = new byte[fileBufferSize == 0 ? 100000000 : fileBufferSize];
    try
    Connection conn = DriverManager.getConnection("jdbc:default:connection:");
    oracle.sql.CLOB[] fileContentsCLOB = (oracle.sql.CLOB[])fileContents.getArray();
    String[] fileNamesString = (String[])fileNames.getArray();
    BigDecimal[] fileContentsLengthNumber = (BigDecimal[])fileContentsLength.getArray();
    ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(zipPathAndFileName));
    zipOut.setLevel(Deflater.DEFAULT_COMPRESSION);
    for (int i = 0; i < fileNamesString.length; i++) {
    System.out.println(i);
    zipOut.putNextEntry(new ZipEntry(fileNamesString));
    InputStream asciiStream = fileContentsCLOB[i].getAsciiStream(1L);
    int asciiReadCount = asciiStream.read(buffer,0,fileContentsLengthNumber[i].intValue());
    zipOut.write(buffer, 0, fileContentsLengthNumber[i].intValue());
    zipOut.closeEntry();
    zipOut.close();
    byte zipFileContents[] = new byte[zipFileBufferSize == 0 ? 100000000 : zipFileBufferSize];
    FileInputStream zipIn = new FileInputStream(zipPathAndFileName);
    int byteCount = zipIn.read(zipFileContents);
    zipIn.close();
    byte returnFileContents[] = new byte[byteCount];
    System.arraycopy(zipFileContents,0,returnFileContents,0,byteCount);
    String returnFileContentsString = new String(returnFileContents);
    if (deleteZipFile)
    boolean deletedFile = (new File(zipPathAndFileName)).delete();
    oracle.sql.BLOB returnFileContentsBLOB = null;
    returnFileContentsBLOB = BLOB.createTemporary(conn, true, BLOB.DURATION_SESSION);
    returnFileContentsBLOB.open(BLOB.MODE_READWRITE);
    //OutputStream tempBlobWriter = returnFileContentsBLOB.getBinaryOutputStream();
    OutputStream tempBlobWriter = returnFileContentsBLOB.setBinaryStream(1);
    tempBlobWriter.write(returnFileContents);
    tempBlobWriter.flush();
    tempBlobWriter.close();
    returnFileContentsBLOB.close();
    return returnFileContentsBLOB;
    catch (IllegalArgumentException ex) {
    ex.printStackTrace();
    throw ex;
    catch (FileNotFoundException ex) {
    ex.printStackTrace();
    throw ex;
    catch (IOException ex)
    ex.printStackTrace();
    throw ex;
    catch (java.sql.SQLException ex)
    ex.printStackTrace();
    throw ex;
    The last two lines above should be
    /Srini

  • SAPInst ECC6.0 - Error during phase "Create Java Users"

    Hello,
    I am currently installing ECC6.0 IDES with windows server 2003 & MaxDB.
    I am getting an error during the "Create Java Users" phase. The initial error stated that the user SAPJSF already existed. During retry a different error came up - that the user SAPJSF has no password.
    Can anyone advise what I can do here to resolve this problem?
    Regards,
    Nicholas Wilson

    Hello Again,
    Just to provide some further information, this is the log which I received when the SAPInst first errored:
    Jan 12, 2007 10:12:31... Info: User management tool (com.sap.security.tools.UserCheck) called for action "checkCreate"
    Jan 12, 2007 10:12:32... Info: Connected to backend system Z01 client 001 as user DDIC
    Jan 12, 2007 10:12:32... Info: Called for user SAPJSF
    Jan 12, 2007 10:12:39... Info: Formal password check successful
    Jan 12, 2007 10:12:39... Info: Will create user SAPJSF
    Jan 12, 2007 10:16:54... Warning: Error during creation of user SAPJSF. Will remove user again to ensure clean exit state
    Jan 12, 2007 10:17:03... Error: Exception during execution of the operation
    [EXCEPTION]
    com.sap.security.tools.UserCheck$DetailException: User SAPJSF already exists
    Diagnosis
    You have tried to create an existing user using the copy function.
    Procedure
    Please edit the existing user or first delete the user and then use the
    copy function. Or choose another user name, for example, by appending
    part of the first name.
    [System: Z01(001), Message: 01 224]
         at com.sap.security.tools.UserCheck.handleBapiRet2Table(UserCheck.java:1252)
         at com.sap.security.tools.UserCheck.createUser(UserCheck.java:1795)
         at com.sap.security.tools.UserCheck.main(UserCheck.java:289)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
    Jan 12, 2007 10:17:07... Info: Leaving with return code -2
    Reserved 1610612736 (0x60000000) bytes before loading DLLs.
    According to the log, the system believed the user SAPJSF to have already been created.
    When I carried out a retry, I receive the following log:
    Jan 12, 2007 10:23:45... Info: User management tool (com.sap.security.tools.UserCheck) called for action "checkCreate"
    Jan 12, 2007 10:23:45... Info: Connected to backend system Z01 client 001 as user DDIC
    Jan 12, 2007 10:23:45... Info: Called for user SAPJSF
    Jan 12, 2007 10:23:45... Info: User SAPJSF exists
    Jan 12, 2007 10:23:45... Error: Exception during execution of the operation
    [EXCEPTION]
    com.sap.security.tools.UserCheck$UserLogonException: User account SAPJSF has no password (USER_HAS_NO_PASSWORD)
         at com.sap.security.tools.UserCheck.checkUser(UserCheck.java:833)
         at com.sap.security.tools.UserCheck.main(UserCheck.java:268)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
    Jan 12, 2007 10:23:45... Info: Leaving with return code 2
    Reserved 1610612736 (0x60000000) bytes before loading DLLs.
    In this log, it accepts that the user SAPJSF is already created, but errors because the user does not have a password.
    Any suggestions greatly appreciated.
    Regards,
    Nicholas.

  • Error Message: A main Java class needs to be specified to run the program.

    Hi,
    I am adding a program object to cms using java program, and trying to run it. I am getting an error message like
    Error Message: A main Java class needs to be specified to run the program.
    Could you please help me on this., please find the pasted program object pasted below
    public class MoveReports   {
    public void run(IEnterpriseSession enterpriseSession, IInfoStore infoStore,
                   String[] args) throws SDKException {
        int objectSize = ;
        String cms = "";
         String username = "";
         String password = "";
         String auth = "";
        try {
              ISessionMgr sm = CrystalEnterprise.getSessionMgr();
             enterpriseSession = sm.logon(username, password, cms, auth);
             IInfoStore oInfoStore=(IInfoStore)enterpriseSession.getService("", "InfoStore");
                 IInfoObjects iObjects = null;
                   iObjects = oInfoStore.query("Select * from CI_INFOOBJECTS where SI_PARENTID = 44104 AND SI_PROGID LIKE '%CrystalEnterprise.Excel%'");
                   // Getting total number of reports
                   objectSize = iObjects.size();
                   if(objectSize > 0)
                        for (int count = 0; count < objectSize; count++)
                             IInfoObject obj = (IInfoObject) iObjects.get(count);
                             // Specify the Destination parent Id to move the reports
                             obj.setParentID(44102);
                        oInfoStore.commit(iObjects);
                        System.out.println("Reports Moved Successfully");
                   else
                        System.out.println("Reports Not Available");
             catch (SDKException e) {
                 e.printStackTrace();
                 System.out.println("Error : " + e.getMessage());
    Thanks&Regards
    Damodar
    Edited by: Damodaram B on Nov 2, 2009 1:29 PM

    There's couple of things at issue here - you've not specified the proper interface (IProgramBase or IProgramBaseEx), and the program job server can't find the class in question (a deployment issue).
    You may want to open a support ticket with SAP.
    Sincerely,
    Ted Ueda

  • How to compile a java class via SQL?

    Hello,
    What is the pl/sql command-line syntax for compiling a java class uploaded to the database?
    I'm looking for a command i can use to compile some java code manually similar to:
    ALTER TRIGGER SCHEMA.TRG_MYTRIGGER COMPILE;
    Thanks

    could try dynamic code generation, cglib, asm, eg
    http://68.142.231.85/myresults/mycache?u=http%3A%2F%2F
    www2.sys-con.com%2FITSG%2Fvirtualcd%2FJava%2Farchives%
    2F0702%2Frichards&docid=FToU9dUOIw4HRHa%2F26Zi5Q&.intl
    =us&.done=http%3A%2F%2Fmyweb.yahoo.com%2Fmyweb%3Fei%3D
    UTF-8%26tag%3Dcode%2Bgenerationhmmmm, yes, bytecode generation is so much simpler, isn't it :-)

  • Jdeveloper 2.0-FATAL ERROR DURING COMPILING APPLET

    Can anyone help me about this error during the compilation of a
    applet?
    "Fatal error:cannot access class
    borland.jbcl.util.DispatchableEvent;no source found;must be
    compiled;because supefclass java.utilEventObject of class
    borland.jbcl.util.DispatchableEvent has changed"...
    1) how can i compile it?
    2) where can i find the source?
    another question..
    some compilation warning say me" there are some deprecatio
    warnig--consulting documentation for better alternative..
    Where are this documentation?
    Thanks
    null

    Official reply from Oracle via CS:
    "MacOSx 10.6.5 with Java 1.6.0_22 is not supported for JDeveloper version 11.1.1.2 and later. This has not been certified yet."

  • Stack overflow error when "compiling" a TagHandler class in IBM

    meda karthik, Aug 7, 2004
    Hi,
    I am getting a StackOverFlowError during compilation(yes StackOverFlow during compilation !) of a TagHandler class when i am compiling with IBM JDK 1.4.2. The strange thing is, that i dont get the error when i compile the same class with IBM JDK 1.3.1. I am sure that this class is causing the error, because without it,the build goes through fine. I am doing a build of my component through ant. The following is the error i get :
    ---------------------------ERROR-----------------------------
    [javac] The system is out of resources.
    [javac] Consult the following stack trace for details.
    [javac] java.lang.StackOverflowError
    [javac] at com.sun.tools.javac.v8.code.Type$ClassType.constType(Type.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.visitLiteral(Attr.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.tree.Tree$Literal.accept(Tree.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java(Inlined Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.attribArgs(Attr.java(Inlined Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.visitApply(Attr.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.tree.Tree$Apply.accept(Tree.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.visitSelect(Attr.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.tree.Tree$Select.accept(Tree.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.attribExpr(Attr.java(Inlined Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.visitApply(Attr.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.tree.Tree$Apply.accept(Tree.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.visitSelect(Attr.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.tree.Tree$Select.accept(Tree.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.attribExpr(Attr.java(Inlined Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.visitApply(Attr.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.tree.Tree$Apply.accept(Tree.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.visitSelect(Attr.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.tree.Tree$Select.accept(Tree.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.attribExpr(Attr.java(Inlined Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.visitApply(Attr.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.tree.Tree$Apply.accept(Tree.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.visitSelect(Attr.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.tree.Tree$Select.accept(Tree.java(Compiled Code))
    The above messages continue repeating and finally ends with...
    [javac] at com.sun.tools.javac.v8.tree.Tree$MethodDef.accept(Tree.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java(Inlined Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java(Inlined Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.attribClassBody(Attr.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.attribClass(Attr.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.comp.Attr.attribClass(Attr.java:1349)
    [javac] at com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java(Compiled Code))
    [javac] at com.sun.tools.javac.v8.Main.compile(Main.java:586)
    [javac] at com.sun.tools.javac.Main.compile(Main.java:67)
    [javac] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [javac] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
    [javac] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
    [javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
    [javac] at java.lang.reflect.Method.invoke(Method.java:391)
    [javac] at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:100)
    [javac] at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842)
    [javac] at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
    [javac] at org.apache.tools.ant.Task.perform(Task.java:341)
    [javac] at org.apache.tools.ant.Target.execute(Target.java:309)
    [javac] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [javac] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [javac] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
    [javac] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)
    [javac] at org.apache.tools.ant.Task.perform(Task.java:341)
    [javac] at org.apache.tools.ant.Target.execute(Target.java:309)
    [javac] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [javac] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [javac] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
    [javac] at org.apache.tools.ant.Task.perform(Task.java:341)
    [javac] at org.apache.tools.ant.Target.execute(Target.java:309)
    [javac] at org.apache.tools.ant.Target.performTasks(Target.java:336)
    [javac] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    [javac] at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    [javac] at org.apache.tools.ant.Main.runBuild(Main.java:609)
    [javac] at org.apache.tools.ant.Main.start(Main.java:196)
    [javac] at org.apache.tools.ant.Main.main(Main.java:235)
    ---------------------------ERROR----------------------------- I am also attaching the first few lines of the tag, incase you find some imports are being referenced circularly....here is the TagHandlerClass.........: ------------------CLASS-------------------------------------
    package com.ibm.bcg.consoleUI.tags;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpSession;
    import javax.servlet.jsp.JspException;
    import javax.servlet.jsp.JspWriter;
    import javax.servlet.jsp.tagext.TagSupport;
    import org.apache.struts.util.MessageResources;
    import com.ibm.bcg.consoleUI.forms.FormConstants;
    import com.ibm.bcg.consoleUI.forms.SchedulerForm;
    import com.ibm.bcg.consoleUI.forms.VCBaseForm;
    import com.ibm.bcg.consoleUI.locale.LocaleUtils;
    import com.ibm.bcg.shared.ClientInfo;
    import com.ibm.bcg.shared.NameIdAssoc;
    import com.ibm.bcg.shared.logging.Logger;
    import com.ibm.bcg.shared.logging.LoggerFactory;
    import java.util.*;
    import com.ibm.bcg.consoleUI.action.ActionLists;
    import com.ibm.bcg.consoleUI.action.alerts.AlertActionUtil;
    import com.ibm.icu.util.Calendar;
    import com.ibm.icu.text.NumberFormat;
    * @author karthikd
    * @version 1.0
    public class ScheduleTag extends TagSupport {
    // The following 3 fields denote the attributes of the tag.
    private String formName;
    private String requestKey;
    private String scheduleController;
    private SchedulerForm schedulerForm;
    private Logger logger;
    private MessageResources resources;
    private ClientInfo clientInfo;
    private Locale locale;
    private HttpServletRequest request;
    private JspWriter writer;
    private HttpSession session;
    private String newLine = "\r\n";
    private Calendar cal = null;
    public int doStartTag() throws JspException
    try
    logger = LoggerFactory.getLoggerInstance();
    logger.log(this.getClass(),Logger.PRIORITY_DEBUG,"staring SchedulerTag ******");
    request = (HttpServletRequest)pageContext.getRequest();
    writer = (JspWriter)pageContext.getOut();
    schedulerForm = (SchedulerForm) request.getAttribute(getRequestKey());
    session = (HttpSession)pageContext.getSession();
    clientInfo = (ClientInfo) session.getAttribute( "clientInfo" );
    locale = clientInfo.getLocale();
    resources = LocaleUtils.getMessageResources(VCBaseForm.CONSOLE_BUNDLE);
    cal = Calendar.getInstance( clientInfo.getFormatLocale() );
    // write out the various JavaScript functions required.
    writer.println(getScripts());
    //write out the main options,i.e Interval Based and Calendar based scheduling options
    writer.println(getOptions());
    //decide what kind of scheduling screen is needed.
    if(schedulerForm.isIntervalBased())
    logger.log(this.getClass(),Logger.PRIORITY_DEBUG,"Interval based scheduling ******* ");
    writer.println(getIntervalScreen());
    else
    logger.log(this.getClass(),Logger.PRIORITY_DEBUG,"Calendarbased scheduling ******* ");
    writer.println(getCalendarScreen());
    writer.println(initCalendarScreen());
    catch (Exception e)
    logger.log(this.getClass(),Logger.PRIORITY_ERROR,"SchedulerTag Handler Exception ******** ");
    logger.log(this.getClass(),Logger.PRIORITY_DEBUG,"Inside the catch block of Scheduler Tag ****** ");
    throw new JspException("SchedulerTag : " + e.getMessage());
    return SKIP_BODY;
    ------------------CLASS-------------------------------------
    What could cause such a problem? Please help , in need of urgent help !!
    regards, karthik .

    Hi,
    No i have not tried to compile it manually as the file is part of a larger project and there are a lot of other dependencies before i can compile this manually.
    In any case i found a work around for the porblem. What was happening is that i had a fairly large function, which was about 250 lines, with a larger number of calls to the "append()" function of the StringBuffer class.
    I broke the large function into smaller pieces and now i dont get the error.!
    But can somebody explain why this solved the problem. Is it because the compiler is not able to stack up all the activation records for execution during runtime ? But like i mentioned what is it in IBM JDK 1.4.2 which is not allowing this, whereas IBM JDK 1.3.1 is able to do it ?
    I did solve my problem, but havent got a logical answer to why this was happening !
    would appreciate it if someone sheds some light on this topic .
    thanks and regards,
    Karthik

  • How to compile the Java classes generated in JAXB

    I am using Windows 2000 Operating System. I found a xjc
    batch file on the sun's java forum.
    I used that to generate classes from XML. After generating
    the classes I could not compile
    the classes each depends on other AND THEY REQUIRE BOTH
    CLASS FILES.
    I will attach the schema file and dtd . Can you explaine me the problem.
    #<transactions.dtd>
    <?xml version="1.0" encoding="UTF-8"?>
    <!ELEMENT transactions (cardtocard*)>
    <!ELEMENT cardtocard (tocard, fromcard, fromcardver, amount, transdate, transid)
    >
    <!ELEMENT tocard (#PCDATA)>
    <!ELEMENT fromcard (#PCDATA)>
    <!ELEMENT fromcardver (#PCDATA)>
    <!ELEMENT amount (#PCDATA)>
    <!ELEMENT transdate (#PCDATA)>
    <!ELEMENT transid (#PCDATA)>
    transactions.xjs
    <xml-java-binding-schema>
    <element name="transactions" type="class" root="true"/>
    <element name="cardtocard" type="class"/>
    </xml-java-binding-schema>
    XML file
    ?xml version="1.0" encoding="UTF-8"?>
    <!--Sample XML file generated by XML Spy v4.4 U (http://www.xmlspy.com)-->
    <transactions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="C:\My Documents\Xml\SVTConcord.xsd">
    <cardtocard>
    <tocard>1111222233334444</tocard>
    <fromcard>6666777788889999</fromcard>
    <fromcardver>567</fromcardver>
    <amount>100.00</amount>
    <transdate>2002-06-04 00:00:00.000</transdate>
    <transid>1111222202</transid>
    </cardtocard>
    </transactions>
    the XJC compiler for windows is
    @echo off
    echo JAXB Schema Compiler
    echo --------------------
    if "%JAVA_HOME%" == "" goto errorJVM
    if "%JAXB_HOME%" == "" goto errorJAXB
    set JAXB_LIB=%JAXB_HOME%\lib
    set JAXB_CLASSES=%JAXB_HOME%\classes
    echo %JAVA_HOME%\bin\java.exe -jar %JAXB_LIB%\jaxb-xjc-1.0-ea.jar %1 %2 %3 %4 %5
    %JAVA_HOME%\bin\java.exe -jar %JAXB_LIB%\jaxb-xjc-1.0-ea.jar %1 %2 %3 %4 %5
    goto end
    :errorJVM
    echo ERROR: JAVA_HOME not found in your environment.
    echo Please, set the JAVA_HOME variable in your environment to match the
    echo location of the Java Virtual Machine you want to use.
    echo For example:
    echo set JAVA_HOME=c:\jdk1.4.0_01
    goto end
    :errorJAXB
    echo ERROR: JAXB_HOME not found in your environment.
    echo Please, set the JAXB_HOME variable in your environment to match the
    echo location of the JAXB installation directory.
    echo For example:
    echo set JAXB_HOME=c:\jdk1.4.0_01\jaxb-1.0-ea
    :end

    When you compile the generated classes, be sure to put jaxb-rt-1.0-ea.jar in your classpath!

  • Error when compiling multiple java code files

    Hi,
    Since I installed J2SDK downloaded from this website, it has never compiled my code correctly when written in multiple java files. Below is a sample of my code and the error message I am getting:
    File#1
    class testprint{
    public static void main(String args[]){
         myprint mp = new myprint();
         mp.manageprint();
    File#2
    class myprint{
    void manageprint(){
         System.out.print("please print");
    Here is my error message from the command line:
    c:\print>javac testprint.java
    testprint.java:4: cannot resolve symbol
    symbol : class myprint
    location: class testprint
         myprint mp = new myprint();
    ^
    testprint.java:4: cannot resolve symbol
    symbol : class myprint
    location: class testprint
         myprint my = new myprint();
                   ^
    2 errors
    C:\
    It seems Java is not recognizing myprint.java file. Do I need to configure anything to make my code work? Please help!
    Thanks in advance.

    Are both files in the same directory? Is the directory in your classpath?

  • Error when compiling SearchBean.jav

    IN the scheduler portlet installation steps using the latest JPDK 3.0.9.1, when compiling SearchBean.java i get the following error :
    D:\OiAS\Apache\Apache\htdocs\schedulerportlet>javac ConnectionParams.java
    D:\OiAS\Apache\Apache\htdocs\schedulerportlet>javac SearchBean.java
    SearchBean.java:607: Undefined variable or class name: ConnectionParams
    "(DESCRIPTION=(ADDRESS=(HOST="+ConnectionParams.s_hostName+")"+
    ^
    SearchBean.java:608: Undefined variable or class name: ConnectionParams
    "(PROTOCOL=tcp)(PORT="+ConnectionParams.s_portNumber+"))"+
    ^
    SearchBean.java:609: Undefined variable or class name: ConnectionParams
    "(CONNECT_DATA=(SID="+ConnectionParams.s_databaseSID+")))";
    ^
    3 errors
    D:\OiAS\Apache\Apache\htdocs\schedulerportlet>
    Can any one tell me the reason of these 3 errors ?
    please I need help
    null

    I've got exactly the same problem.
    Some advices would be nice.
    Thanks.

  • Error while compiling PricingUserExits.Java on IPC Server

    Hi,
    While compiling PricingUserExits.Java on IPC Server, I am getting "cannot resolve symbol" error for class object.
    Can anyone reply back procedure of how to complie this Java Program and neccessary steps....
    Thank you for support.
    Regards,
    Sameer

    Dear Andrew,
    Thanks for reply.
    As per our understanding, after compilation of java file we get class file.
    While compilation we are getting following error:
    On DOS Prompt:
    E:\usr\sap\ipc\lib\userexits>javac PricingUserExits.java
    PricingUserExits.java:172: cannot resolve symbol
    symbol  : class FormulaNotImplementedException
    location: class userexits.PricingUserExits
                                    throw new FormulaNotImplementedException(prItem,
    "group key formula", keyFormNo);
                                              ^
    PricingUserExits.java:195: cannot resolve symbol
    symbol  : class FormulaNotImplementedException
    location: class userexits.PricingUserExits
                                    throw new FormulaNotImplementedException(prItem,
    "copy formula", copyFormulaNo);
                                              ^
    Please reply back which IPC Java libraries are required and what is the path.
    If you have any documentation related to it then please email it to [email protected]
    Regards,
    Sameer

  • Error when compiling the Java file

    Hi I have created a jsp program that uses the java files. i have jboss installed. when i compile the java file it gives compilation error saying that javax.servlet.jsp.tagext.TagSupport not found.
    Although when i installed the Tomcat seperately i did not get any compilation error. can anyone tell me how to get out of this problem when Tomcat is not installed seperately.
    Thanks,
    Rakesh

    Hi
    I think these errors are due to incorrect classpath settings.While compiling HelloHome ..Helloremote must be in classpath.Also if u have packaged them u must be in the package root during compilation ie if uor remote & home interface is in a package called "ejbserver"
    then while compiling u must be in the folder above ejbserver & compile command is
    javac .\ejbserver\*.java
    If uor home & remote interface is in different folder check wheather u have imported the remote interface inside home interface file.

  • Javac generating Wierd error during compilation

    Hello friends
    I am reading Kathy Sierra and I wish to give SCJP exam.
    Today when I tried to test the concept of protected V/S Default access modifier I got struck with a problem.
    Below is the code:
    package xyz;
    class ProtTestParent
         protected int x=10;
    public class ProtTestChild extends ProtTestParent
         public static void main(String[] ar)
              new ProtTestChild().get();
         public void get()
              System.out.println("Value of x "+x);
    If I try to compile it I get following error:
    C:\Program Files\Java\jdk1.5.0_06\bin>javac ProtTestChild.java error: cannot read: ProtTestChild.java 1 error C:\Program Files\Java\jdk1.5.0_06\bin>
    Can anyone tell me what could be the problem??
    Thanks
    BR
    Suvojit

    Please use code tags around your posted code, it makes it much easier to read.
    I see a couple of issues.
    First, you are calling javac from the binary directory it is in - is that also where you put your code? If your code is in java's \bin directory - that's generally bad practice.
    If java is correctly installed, you should be able to call javac from anywhere, because the java \bin directory will be in your path.
    Also, the ProtTestChild code indicates that it is in package xyz - so the file has to be in a directory named xyz, and you have to call the compiler from the directory that contains this xyz directory. So, for example, if the java file is in C:\myJavaCode\xyz, you need to be in C:\myJavaCode, and type the command "javac xyz\ProtChildTest.java".
    Try that, see if it works. I don't use the command line much anymore, so I could be wrong.

  • Differences in optimizations during compilation between java 1.4 and 1.5

    Hi
    I have an application which frequently runs into out of memory error. After doing some profiling, I found that it has more to do with the throughput of the application. Because which, messages that have to be polled from a queue are not being dequeued. This application has been compiled in java 1.5. But when I compiled the same in java 1.4, I didn't get into this problem.
    When I de-compiled the class files, I found that in 1.5, for every string concatenation, the compiler replaces it with StringBuilder() and appends the string. To check whether this object instantiation might be causing the trouble, I wrote a small snippet:
    private static void doWithConcatenationOperator() {
    for (int idx = 0; idx < fNumIterations; idx++) {
    String result = "Does" + "StringBuilder()" + "reduce"
    + "ThroughPut" + "of the" + "Application";
    private static void doWithStringBuilder() {
    for (int idx = 0; idx < fNumIterations; idx++) {
    (new StringBuilder()).append("Does").append("StringBuilder()")
    .append("reduce").append("ThroughPut").append("of the")
    .append("Application").toString();
    When I iterate through these loops( 1 million iterations), the concatenation operation takes less than 16 milliseconds whereas the StringBuilder takes upwards of 512 milliseconds.
    My question being; are there any other so called optimizations that can reduce the throughput when compiled in 1.5.
    Thanks
    Edited by: Incubus on Jan 18, 2009 11:00 PM

    Incubus wrote:
    say I have a code that does:
    public void StringConcat(){
    int noOfIter = 10000;
    for(int i = 0; i < noOfIter; i++){
    String s = "String " + i + " Being " + i + "concatenated " + i + "using " + i + "String" + i + "Builder";
    If I compile this in 1.4 ( i.e using javac -source 1.4); the decompiled code looks the same.
    But if I do so in 1.5 ( i.e if I decompile the same code compiled using javac -source 1.5), this is how it looks:
    public void StringConcat(){
    int noOfIter = 10000;
    for(int i = 0; i < noOfIter; i++){
    String s = (new StringBuilder).append("String ").append( i).append( " Being ").append( i).append( "concatenated ").append( i).append( "using ").append( i).append( "String").append( i).append( "Builder").toString();
    The above was the compile time optimization I was talking about.What makes you think that the decompiler is not the problem?
    The ONLY difference between 1.5 and 1.4 in that case is that one uses StringBuilder and one uses StringBuffer. And StringBuffer is faster.
    Just wanted to know, are there any other differences in compile time optimizations between 1.4 and 1.5.I suggest that you go look at the read me. And I also suggest that you become familar with byte codes and stop assuming that a decompiler is going to tell you anything.

Maybe you are looking for