Java package compile errors

I use a batch file to compile a java package. And I got the following errors:
TabPages: Java: 29: Cannot solve symbol
Symbol: class JSPFactory
Location: package JSP
JSPFactory = javax.Servlet.jsp.JSPFactory.getDefaulfFactory();
Note: Some input files use or override a deprecated APT.
Note: Recompile with -deprecation for details.
I am using New Atlanta servletExec 3.1 and IIS server. Can anyone help me figure our the above errors? Thanks!

if I add the "set classpath=".,C:/javax" to the begining of the batch file, will this override the classpath that I set in the Environment window? I am worried about this since we have a bunch of environment variables already been set there.
I tried to add the ";c:\javax" at the end of the classpath on my Environment window, and rebooted the server, but still got the same error message. Did I have some syntax error? What does the dot before ";C:/javax" mean? I deleted it when I added them to the classpath.
It will cause too much trouble to add the "javac XXX.java -classpath=".;C"/javax" to each file that needs this package because we don't have a single command for compiling a single java file. We have a huge amount of java files and we just use a single "javac -d" to compile every file under several folders. Our batch file is as follows:
del /F/Q ..\classes
javac -d ..\classes *.java htmltool\html\*.java ises\*.java DropDown\*.java frmselection\*.java grid\*.java treeView\*.java reportTreeMenu\*.java hs\types\*.java
del /F ..\lib\grid.jar
del /F ..\lib\TreeView.jar
cd ..\classes
jar cf ..\lib\grid.jar grid
rmdir /S/Q grid
jar cf ..\lib\TreeView.jar treeView
rmdir /S/Q treeView
cd ..\javasrc
Another thing is that: we have exact the same classpath and batch file on another server which works fine, and its classpath doesn't include explicitly stuff like";c:\javax", but we never have prolbem compiling the java source. So do I miss something else?

Similar Messages

  • Problem When Import Java Class -compilation error

    Hi all
    I made a java class that has methods to return Screen width and Height .
    package tarek;
    import java.awt.Dimension;
    import java.awt.Toolkit;
    public class Screen
    Dimension dim ;
    public Screen()
    dim = Toolkit.getDefaultToolkit().getScreenSize();
    public double getWidth()
    double w = dim.getWidth();
    return w;
    public double getHeight()
    double h=dim.getHeight();
    return h;
    I made the jar file " screen.jar" and make it ready to use in form builder
    I opened form builder and make import java class (From program>import java class>choose the class anc click import)
    The class now imported successfully and the PL/SQL package body is:
    PACKAGE Screen /* tarek.Screen */ IS
    -- DO NOT EDIT THIS FILE - it is machine generated!
    -- Constructor for signature ()V
    FUNCTION new RETURN ORA_JAVA.JOBJECT;
    -- Method: getHeight ()D
    FUNCTION getHeight(
    obj ORA_JAVA.JOBJECT) RETURN NUMBER;
    -- Method: getWidth ()D
    FUNCTION getWidth(
    obj ORA_JAVA.JOBJECT) RETURN NUMBER;
    END;
    Now I made a button on the form and i WRITE THIS CODE TO INVOKE THE CLASS on when_button_pressed
    DECLARE
         vScreen_Class ORA_JAVA.JOBJECT;     
    BEGIN
         vScreen_Class := SCREEN.NEW;
    END;
    My problem is I have compilation error
    error 306 AT LINE 5 , COLUMN 25
    wrong number or types of argument in call to "NEW"
    I do not know what is the reason of this compilation error?
    Is it because the method in java return "double datatype" while in oracle return "number datatype"
    Please help
    Edited by: [email protected] on Dec 28, 2009 10:24 AM

    Sarah, I ca not move my thread to JDeveloper because it is not java issue. The problem is with my PL/SQL code and the way I make Import Java class to forms Builder. The Java code is OK.
    Andreas Thank you so much for replying. In fact I made a full compile "Ctrl+Alt+K". but still error
    The following is the package Body
    PACKAGE BODY Screen IS
    -- DO NOT EDIT THIS FILE - it is machine generated!
    args JNI.ARGLIST;
    -- Constructor for signature ()V
    FUNCTION new RETURN ORA_JAVA.JOBJECT IS
    BEGIN
    args := NULL;
    RETURN (JNI.NEW_OBJECT('tarek/Screen', '()V', args));
    END;
    -- Method: getHeight ()D
    FUNCTION getHeight(
    obj ORA_JAVA.JOBJECT) RETURN NUMBER IS
    BEGIN
    args := NULL;
    RETURN JNI.CALL_DOUBLE_METHOD(FALSE, obj, 'tarek/Screen', 'getHeight', '()D', args);
    END;
    -- Method: getWidth ()D
    FUNCTION getWidth(
    obj ORA_JAVA.JOBJECT) RETURN NUMBER IS
    BEGIN
    args := NULL;
    RETURN JNI.CALL_DOUBLE_METHOD(FALSE, obj, 'tarek/Screen', 'getWidth', '()D', args);
    END;
    BEGIN
    NULL;
    END;
    ---------------------------------------------------------------------------------

  • Java Adapter Compile Error - Missing Libraries

    I am trying to convert my project from being deployed on Flex Data Services 2 To LiveCycle Data Services. I dont know very much about java and have hit a snag when trying to recompile my custom java adaptor.
    It compiles fine under a FDS2 project, but when compiled under a LCDS deployment on JRun, Eclipse gives me the following error when trying to compile:
    Project PTSChat_Java is missing required library: lib/commons-codec.jar
    Project PTSChat_Java is missing required library: lib/commons-httpclient.jar
    The project cannot be built until build path errors are resolved
    It appears that the libraries have been renamed to commons-codec-1.3.jar & commons-httpclient-3.0.1.jar in LCDS, but I am not sure where to update these references? They are not direct library imports in my java code.
    As a shot in the dark, I tried just copying the old FDS2 libraries back over to the WEB-INF\lib\ DIR since there are named differently. It resolved the missing library error, but then I got a compile error with service cannot be resolved in references to my MessageService msgService = (MessageService) service; java code. I quickly realized this is not the correct path to head down.
    Does anyone have any clues what I may be doing wrong? Any help is much appreciated.
    Thanks!

    I resovled the problems I was having.
    I was able to figure out how to change the library linking in eclipse and switched the commons-codec-1.3.jar & commons-httpclient-3.0.1.jar in the place of commons-codec.jar & commons-httpclient.jar libraries previously used with the project (properties:libraries).
    I was not able to correct the service cannot be resolved. Everything I did kept crashing and dropping my connection tot he channel. I ended up just switching the code in my java adapter from:
    MessageService msgService = (MessageService) service
    to
    MessageBroker broker = MessageBroker.getMessageBroker(null);
    MessageService msgService = (MessageService) broker.getService("message-service");
    This appears to be working as desired for my use of the java adapter for the session management & logging. I am not really certain why the "service" became undefined between FDS2 & LCDS, something must have been depreciated or changed around.

  • User defined java function-compilation error! Activation cancelled

    Hi all!
    I have written an User defined Function in java for converting XML to PDF which is available at this blog:
    /people/divya.vidyanandanprabhu/blog/2005/06/28/converting-xml-to-pdf-using-xi
    I added both dom4j-1.6.1.jar and itext-1.4.1.jar files in (XIserver machine)D:/usr/sap/....server0/bin.
    When i try to activate in IR, i got the following error.
    Activation of the change list canceled Check result for Message Mapping test | http://httpadp.com/send:  Starting compilation  Source code has syntax error:  D:/usr/sap/QN7/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map7bf962e0f21411daae8a00111120e6db/source/com/sap/xi/tf/_test_.java:3: package com.xml2pdf does not exist import com.sap.aii.mappingtool.tf3.;import com.sap.aii.mappingtool.tf3.rt.;import java.util.;import java.io.; import java.lang.reflect.*;import com.xml2pdf.XmlToPdf; ^ D:/usr/sap/QN7/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map7bf962e0f21411daae8a00111120e6db/source/com/sap/xi/tf/_test_.java:51: cannot resolve symbol symbol : class XmlToPdf location: class com.sap.xi.tf._test_ XmlToPdf x = new XmlToPdf("D:
    qf
    source
    Input.xml", "D:
    qf
    target
    Output.pdf"); ^ D:/usr/sap/QN7/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map7bf962e0f21411daae8a00111120e6db/source/com/sap/xi/tf/_test_.java:51: cannot resolve symbol symbol : class XmlToPdf location: class com.sap.xi.tf._test_ XmlToPdf x = new XmlToPdf("D:
    qf
    source
    Input.xml", "D:
    qf
    target
    Output.pdf");

    Hi
    My java program is:
    import com.xml2pdf.XmlToPdf;
    public String testing(String a,String b,String c,Container container){
    XmlToPdf  x = new XmlToPdf("D:
    qf
    source
    Input.xml", "D:
    qf
    target
    Output.pdf");
      x.Convet();
      return "";
    Can you please figureout any errors in my prg.
    I have imported the 2(itext-1.4.1 and dom4j-1.6.1) jars into Imported Archives in my scenario in IR.
    I placed these jars in D:/usr/sap/..../server0/bin
    also. I followed the blog thoroughly and carefully.
    Thanks a lot for your suggestion.

  • Package compiling error

    Hello,
    So I"m continuing to study java and I've been trying to create my first package but I keep getting problems whenever compiling via my java editor (JGrasp) and when trying to compile via the command prompt. I was hoping somebody could help me understand what I'm doing wrong with the code or compilation process. Thanks in advance for any help anybody could provide. (oh as one other sidenote these problems started happening after i'd done this at the command prompt to try to compile as well javac -d C:\ Entertainment.java)
    Josh
    JGrasp compiler problems
    ----jGRASP exec: javac -g C:\Entertainment.java
    ----at: Jun 23, 2006 7:35:32 AM
    ----jGRASP wedge: pid for wedge is 2788.
    ----JGRASP wedge2: pid for wedge2 is 3476.
    ----JGRASP wedge2: CLASSPATH is ".;;.;C:\Program Files\Java\jre1.5.0_06\lib\ext\QTJava.zip;C:\Program Files\jGRASP\extensions\classes".
    ----jGRASP wedge2: working directory is [C:\] platform id is 2.
    ----jGRASP wedge2: actual command sent ["C:\javac.exe" -g C:\Entertainment.java].
    ----JGRASP wedge2: pid for process is 3496.
    Can't determine application home
    ----jGRASP wedge2: exit code for process is 1.
    ----jGRASP: operation complete.
    Actual program
    import javax.swing.*;
    package com.eventhandlers.entertainment2;
    public abstract class Entertainment
    protected String entertainer=("");
    protected int fee=0;
    public Entertainment()
    setEntertainerName();
    setEntertainmentFee();
    public String getEntertainerName()
    return entertainer;
    public double getEntertainerFee()
    return fee;
    public void setEntertainerName()
    entertainer=JOptionPane.showInputDialog(null,
    "Enter Name of entertainer ");
    public abstract void setEntertainmentFee();
    }

    Actual program
    import javax.swing.*;
    package com.eventhandlers.entertainment2;I don't know if it will solve your problem, but these two lines should be
    the other way around, like this:package com.eventhandlers.entertainment2;
    import javax.swing.*;IOW, the package statement (if present) should be the first statement
    in your compilation unit (.java file).
    kind regards,
    Jos

  • Package compilation error

    Hi all,
    Just tried to compile a package in which the package definition and package body did not match. I was expecting an error. However I didnt get any. The "Script Output" windows states that the package and its body have been compiled successfully. Can anyone guide me if I am missing out something or is this a bug?
    Thanks in advance.

    The package definition has the stored procedure as below
    PROCEDURE spu_uTest(
    p_inot           IN NUMBER);
    The package body is as below
    PROCEDURE spu_Test(
    p_inot           IN NUMBER)
    IS
    --Updating Namo
    BEGIN
    UPDATE TEMPO
    SET NAMO = p_inot;
    END spu_Test;
    If you can see the procedure names do no match in the defintion and the body. However on compilation I do not get any error. Can you outline the steps for compiling a package sql file?

  • Java re-compilation error!!!!

    Hi All,
    I had got a set of .class files from a software provider.
    When i tried to run a command it used to give an error.
    I tried to contact that vendor but in vain.....
    So i decided to decompile the class files to get the reason for error.
    I took 1 class file which i was getting as error. I extracted all the .java files, in that class file. Now when i try to recompile them i'm getting an error
    symbol not declared!!!!!!
    And i checked in the source file. The variables are not declared in the file. How did it compile before??? Why it is not compiling now. Please help me out. I'm very new to java.
    Thanking you,
    Venki

    [email protected] wrote:
    Note: DataBrokerClass.java uses or overrides a deprecated API.
    Note: Recompile with -deprecation for details. Pardon me for asking a silly question, but did you compile with the "-deprecation" option?
    If yes, what was the command output?
    The error message you wrote that you are getting: "cannot resolve symbol", usually indicates that the relevant Oracle JDBC driver was not included in the classpath of the compiler command.
    Which JDBC driver are you using?
    How are you compiling this class?
    From the command line, using "javac"?
    From some IDE?
    I assume that "advointCfgHhcRecArrOut" is an instance of "oracle.sql.ARRAY"?
    Please verify.
    Good Luck,
    Avi.

  • Getting package compilation error

    Hi
    When I am compiling the package in TOAD it is compiling without any error but the same code when compile from sqlplus I am getting error saying that
    PLS-00103: Encountered the symbol "END" when expecting one of the
    following:
    begin case declare exit for goto if loop mod null pragma
    raise return select update while with <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall merge pipe
    Could someone please help me on this.
    Thanks,
    Y

    Hi Y;
    Did you try to run below?
    SQL>ALTER PACKAGE [schema.]package_name COMPILE
    [DEBUG PACKAGE|SPECIFICATION|BODY];
    SQL>show errors
    For more details please check:
    How to show errors in compiling package body
    Re: How to show errors in compiling package body
    Please also check below and see its helpful:
    PLS-00103 When trying to generate a Procedure [ID 122587.1]
    Common Reasons for PLS-00103 [ID 199421.1]
    Invalid Packages For BNE [ID 455454.1]
    Regard
    Helios

  • Java 3d compilation errors

    When I try to compile most of the demo examples of the Java3d API I get an error:
    in thread "main" ...... : no such method

    Are you sure you get that problem when you try to compile, not when you try to run it?

  • Java Servlet compile error

    I have written a little servlet program. When it is compiled, I get errors saying "javax.servlet does not exist".
    I have J2EE SDK 1.4 installed. Does the error mean the classpath is missing? Appreciate advise.

    Hi !
    I had same error yesterday. But later I was able to compile the servlet by setting CLASSPATH.
    Set CLASSPATH as follows if you have installed J2EE AppServer in c:\
    1. Locate j2ee.jar in the directory you installed J2EE AppServer which can be in:
    C:\Sun\AppServer\lib\j2ee.jar
    2. Go to My Computer properties
    3. Click on the Environmental variable button of Advanced tab
    4. If you already have CLASSPATH variable then click on Edit button else click on New to set the CLASSPATH as follows:
    CLASSPATH=C:\Sun\AppServer\lib\j2ee.jar
    I think this should work for you.
    Goodluck,
    Anurag

  • Package compile error

    Hello experts,
    I am running into a funny problem today. When I try to run my procedure for a customer it does not return anything. But when I recreate the package using replace all and change the package name to "pck_name_test" and run the procedure again for the same client it works.
    I am running out of ideas as to what could be my problem since both packages are virtually the same.
    Best regards,
    Igor

    Hi, Igor,
    Do both packages have the same owner?
    When you say the packages are "virtually" the same, what do you mean?
    Are there any differences other than the package name?
    Post simplified versions of the two packages that show the problem. I know the packages are probably large, but I'll bet the same problem could occur in a package with only about 30 lines of code. Chances are, you'll discover the problem in the process of isolating it; if not, the solution will be a lot clearer when you see it applied to a small package.

  • NoClassDefFound error when using custom Java package in scripting QPAC

    Hi,
    I compiled a little Java-package (.jar), which contains a class that uses
    com.adobe.workflow.datatype.form.FormDataTypeInstanceImpl.
    I put my library in the lib folder of JBoss (...\server\all\lib).
    Then I'm was trying to invoke my custom class in the scripting QPAC. But I'm constantly getting the error message
    NoClassDefFound com\adobe\workflow\datatype\form\FormDataTypeInstanceImpl. I already put
    adobe-wkf.jar (and various others) in the lib folder of JBoss. Without ever succeeding. Unfortunately.
    I'm going mad about this.
    Is there a way to address a custom package in the scripting QPAC, which uses
    FormDataTypeInstanceImpl?
    Steve

    Removing the LiceCycle jars from the lib folder did not work. I still get the same error message.
    What I wanted to do is provide some basic utilities, without having to spend a lot of time designing QPAC user interfaces.
    My utility class contains methods like this one:
    @param 
    pFormData
    @return
    @throws 
    ParserConfigurationException
    @throws 
    SAXException
    @throws 
    IOException
    public static 
    org.w3c.dom.Document formToXml
    FormDataTypeInstanceImpl pFormData
    throws 
    ParserConfigurationException, SAXException, IOException 
    byte
    data = pFormData.getXFAData
    InputStream objXMLInputStream = 
    new 
    ByteArrayInputStream
    data
    // create new Document object
    DocumentBuilderFactory objFactory = DocumentBuilderFactory.newInstance
    DocumentBuilder objBuilder = objFactory.newDocumentBuilder
    org.w3c.dom.Document objDocument = objBuilder.parse
    objXMLInputStream
    return 
    objDocument;
    Even without ever invoking the aforementioned method, I get the error
    NoClassDefFound: FormDataTypeInstanceImpl. Which is pretty weird.
    Do I have to write my own classloader?
    Steve

  • Using package getting compiler error

    I have a project at c:\myproject
    I have a file name as b.java in c:\myproject
    I have a sub-directory named as com\sski\ in c:\myproject
    In that subdirectory there is a file a.java (package of a.java is com.sski) which is using class b.
    I have compiled b.java successfully, But I am unable to compile a.java
    I am getting compiler error cannot resolve symbol
    Sourece of a.java is as follow package com.sski;
    //import b;
    public class  a
         public static void main(String[] args)
              b obj = new b();
              System.out.println("Inside a.java: " +obj);
    }i have even tried using import b;
    then i get error as '.' expected
    how do i successfully compile a.java, where do i place b.java.
    i dont want to put b.java inside any package.

    b.class is not being found in your classpath. If you are compiling in C:\myproject, b.class should end up in C:\myproject, since you are not putting it in a package (which, IMO, is a bad idea). This assumes that you are not using the -d <destination> command line option in the javac command line.
    To compile a.java, you need to use the -classpath command line option, as follows:
    javac -classpath C:\myproject a.java
    or
    javac -classpath . a.java (note the dot).
    � {�                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Do java programms after giving compilation error generates .class file?

    Do java programms after giving compilation error generates the .class file?
    Do any outer class may have the private as access modifier?
    If someone asks you that -do any program in java after giving a compilation error gives the .class file -do any class except(inner class)
    be defined as private or static or protected or abc or xxx Now type the
    following program
    private class test
    public static void main(String s[])
    System.out.println("Hello!How are You!!");
    -Compile it.... You must have
    received this error test.java:1:The type type can't be private. Package members are always accessible within the current package. private class
    test ^ 1 error
    Here please notify that compiler has given the
    error not the warning therfore .class file should not be created but now type
    >dir *.class
    ___________ and you will see that the
    test.class file existing in the directory nevertheless this .class file
    is executable. if you will type __________________ >java test
    it will
    wish you Hello! and suerly asks you that How are You!! ________________!
    You can test it with the following as acces modifiers and the progrm will run Ofcourse it will give you compilation error.
    protected
    xxx
    abc
    xyz
    private
    Do you have any justification?

    Hmm,
    I've been working with different versions of jdk since, if I'm not mistaken, jdk1.0.6 and never was able to get *.class with compilation errors. It was true for Windows*, Linux, and Solaris*.
    About the 'private'/'protected' modifier for the type (class) - it makes perfect sence not to allow it there: why would anyone want to create a type if no one can access it? There should be a reason for restricting your types - let's say, any inner class can be private/protected.
    For ex., you shouldn't have compile problems with this:
    class Test
    public static void main(String s[])
    System.out.println("Hello!How are You!!");
    private class ToTest{}
    Sorry, but I don't really know where you can read up on that.

  • Compilation Error in basic java class

    Hello,
    I am newbie. And, I have developed following java classes. But the child class is results in error. Below is step by step event. What am I doing wrong?
    Step 1. Created a compiled class Shirt(parent). No issues
    public class Shirt {
    public int shirtID =0;
    public String description = "description required";
    // color codes
    public char colorCode = 'U';
    public double price = 0.0;
    public int quantityInStock = 0;
    // methods
    public void displayShirtInformation() {
       System.out.println("Shirt ID: " + shirtID);
       System.out.println("Shirt description:" + description);
       System.out.println("Color Code:" + colorCode);
       System.out.println("Shirt price: " + price);
       System.out.println("Quantity in Stock :" + quantityInStock);
    } // end of method
    } // end of class
    Step 2. Child class results in compilation error
    public class ShirtTest{
    public static void main (String[] args) {
         Shirt myShirt;
         myShirt = new Shirt();
         myShirt.displayShirtInformation();
    Step 3. Error show below
    C:Java>javac ShirtTest.java
    ShirtTest.java:4: cannot find symbol
    symbol  : class Shirt
    location: class ShirtTest
         Shirt myShirt;
         ^
    ShirtTest.java:5: cannot find symbol
    symbol  : class myShirt
    location: class ShirtTest
         myShirt = new myShirt();
                       ^
    2 errors Thanks D,

    Hello all. I am in a similar boat as far as getting the error message:
    javac ShirtTest.java
    ShirtTest.java:7: cannot find symbol
    symbol  : class Shirt
    location: class shirt.ShirtTest
            Shirt privShirt = new Shirt();
            ^
    ShirtTest.java:7: cannot find symbol
    symbol  : class Shirt
    location: class shirt.ShirtTest
            Shirt privShirt = new Shirt();
                                  ^
    2 errorsMy Shirt.java is as follows(which compiles just fine):
         1  package shirt;
         2
         3  public class Shirt {
         4
         5      private char colorCode = 'U';
         6
         7      public char getColorCode() {
         8          return colorCode;
         9      }
        10
        11      public void setColorCode (char newCode) {
        12          colorCode = newCode;
        13      }
        14
        15  }And my ShirtTest.java is as follows:
         1  package shirt;
         2
         3  public class ShirtTest {
         4
         5      public static void main (String args[]) {
         6
         7      Shirt privShirt = new Shirt();
         8      char colorCode;
         9
        10      privShirt.setColorCode('R');
        11      colorCode = privShirt.getColorCode();
        12
        13      System.out.println("Color Code: " + colorCode);
        14      System.out.println(" ");
        15
        16      privShirt.setColorCode('Z');
        17      colorCode = privShirt.getColorCode();
        18
        19      System.out.println("Color Code: " + colorCode);
        20
        21      }
        22
        23  }This is basically from the Fundamentals of the Java ^TM^ Programming Language SL-110-SE6 Student Guide(pages 9-12 & 9-13). We are working on Encapsulation if that makes any difference. Maybe it's just me but this book is not very new programmer/user friendly. At least in my opinion. I find it very frustrating that I can't even type in examples from the book and get them to work.
    I have tried the javac -cp . ShirtTest.java suggested here but get the same error. I have removed all *.class* files and still no luck.
    OS:
    uname -a
    SunOS 5.10
    JAVA:
    java -version
    java version "1.5.0_26"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_26-b03)
    Java HotSpot(TM) Server VM (build 1.5.0_26-b03, mixed mode)
    Anyway, any help would be appreciated.

Maybe you are looking for