Can't compile the HTML-Java Wizard generated file.

I have created a java file using HTML-Java Wizard.
when compiling the java file it gives an error
method getDeclaredMethod(java.lang.String,null) not found in
class in java.lang.class
can anyone tell me how can I remove the error ?
waiting for your early reply in this regard.
Thanks
null

Thanks, My problem has been solved.Now it is working.
Initially I was using wrong classes.zip file in myclasspath.The
Correct one is in %JDEVELOPER_HOME%\java\lib. The size of that
file is 9.48 MB.
Regards
-- Sujit
JDeveloper Team (guest) wrote:
: Sujit,
: I assume that you have access to the OAS jars needed to compile
: this file (refer to the "Building Java Applications for OAS"
: guide in the helpsystem for details).
: Also, try deleting the dependecy files in your
: myclasses/your_package directory .
: Regards,
: Sujit Hazra (guest) wrote:
: : Hi,
: : The error is still there.
: : I have tried as you suggested.That brought me the code of
: : java.lang.Class and also found that method as you
: mentioned.This
: : means my libraries are properly installed.
: : The following code is taken from the HTML-Java Wizard
generated
: : file:
: : private HtmlPage makePage() {
: : HtmlPage hp = new HtmlPage(new java.io.File(filepath +
: : java.io.File.separator +
filename));
: : for(int i=0;i<WRB_tags.length;i++) {
: : try {
: : hp.setItemAt(WRB_tags[0], new SimpleItem(
: : this.getClass().getDeclaredMethod(
: : "get"+WRB_tags[i][2],null).invoke(this,null)));
: : catch (java.lang.Exception ex) {
: : hp.setItemAt(WRB_tags[i][0],
: new(SimpleItem(WRB_tags[i][1]));
: : return hp;
: : I didn't change anything on that.What else should I do?
: : waiting for your early reply in this regard.
: : Thanks
: : - Sujit
: : JDeveloper Team (guest) wrote:
: : : Sujit,
: : : Test this:
: : : Bring up JDeveloper
: : : Press Ctrl / - Control key and the Slash key
: : : Type in java.lang.Class
: : : This brings up the code for java.lang.Class
: : : If it does not, then somehow your libraries
: : : are not properly installed for JDeveloper to find
: : : (see IDEClassPath ).
: : : Otherwise, there you should see many methods including:
: : : public Method getDeclaredMethod(String p0, Class[] p1)
: : : throws NoSuchMethodException, SecurityException {
: : : // implementation not available
: : : Also note: Your spelling for Class should be
: : : java.lang.Class
: : : - JDeveloper Team
: : : You can browse the class
: : : Sujit Hazra (guest) wrote:
: : : : I have created a java file using HTML-Java Wizard.
: : : : when compiling the java file it gives an error
: : : : method getDeclaredMethod(java.lang.String,null) not found
: in
: : : : class in java.lang.class
: : : : can anyone tell me how can I remove the error ?
: : : : waiting for your early reply in this regard.
: : : : Thanks
null

Similar Messages

  • How can i change the html, jsp, js, css file using ../tools/filemanager.jsp

    Hallo Experts
    I want to know how to get the html, jsp, js, css file using .../strategy/tools/filemanager.jsp? If I search the file such as "commentslist", I'll find the file. It is shown in the table with three columns:
    Column with trash symbol for deletion, Path and Date. But I cannot to fetch the file and saved local to make the modifications.  Could you tell me how I can get the file? Is there another way to this?
    Thanks a lot and
    Best regards!
    Ping

    Wang,
    If you are looking at the commentslist file with the intention of customizing, you would use File Manager Path to be directed to the file's location:
    \usr\sap\<3 letter CE instance>\J00\j2ee\cluster\apps\sap.com\xappscpmsm~strategymanagement\servlet_jsp\strategy\root\pilotworks
    Any customization would have to be noted, since upgrades will overwrite customizations.
    Regards,
    Bob

  • Can I compiler servlet with java compiler?

    Can I compiler servlet with java compiler?
    Here is an example of it:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class HelloWorldServlet extends HttpServlet
              protected void doGet(HttpServletRequest request,
              HttpServletResponse response) throws ServletException , IOException
                        response.setContentType("text/html");
                        PrintWriter out = response.getWriter();
                        StringBuffer sb = new StringBuffer();
                        sb.append("<html><body><h1>");
                        sb.append("Hello World");
                        sb.append("</h1></body></html>");
                        out.print(sb.toString());
                        out.close();
         }

    Can I compiler servlet with java compiler?
    yes.
    just include the correct jarfiles in your classpath.

  • Error while compiling the ejb java source files.................

    hi,
    i am new to ejb.......
    i have got error while compiling the ejb java source files............
    while compiling..........of this three i ahve got err in ejb home interface....
    ejb remote interface - succeded
    ejb bean class - succeded
    ejb home interface - error
    the error..............is in the return type of the ejb create() method in ejb home interface(which is the type of remote interface).
    the error message is cannot resolve symbol

    Hi,
    thanks for ur reply .....
    i have done enough searching in all sites including sun forum but in vain
    i have pasted my error below...
    can u plz predict anything from it
    D:\>path=%path%;c:\j2sdk1.4.2_12\bin;
    D:\>set classpath=%classpath%;d:\Sun\AppServer\lib\j2ee.jar;
    D:\>javac d:\Librarys\Library.java
    D:\>javac d:\Librarys\LibraryBean.java
    D:\>javac d:\Librarys\LibraryHome.java
    d:\Librarys\LibraryHome.java:8: cannot resolve symbol
    symbol : class Library
    location: interface Librarys.LibraryHome
    public Library create(String id, String name, String address, String phoneNo
    ) throws RemoteException, CreateException;
    ^
    d:\Librarys\LibraryHome.java:9: cannot resolve symbol
    symbol : class Library
    location: interface Librarys.LibraryHome
    public Library findByPrimaryKey(String id) throws FinderException, RemoteExc
    eption;
    ^
    2 errors
    thanks in advance...

  • How can I compile Javascript from Java??

    Hi all,
    I am facing a problem, problem is I have to compile JavaScript code in Java. JavaScript code will given in Text field, those code i have to compile and i should display a message saying this is valid Java script code or Invalid code.Can anyone help on this...

    JavaScript code interpreting but not compiling... I need to compile, but not Interpret the code. How can i Compile the JavaScript Code...

  • Can I use the HTML created in Adobe Edge Reflow?

    Can I use the HTML and CSS code generated to create the webpage preview in Adobe Edge Reflow?

    Hi Joseph,
    After creating and saving your Edge Reflow project, you can use View-> Preview In Chrome. This will create your HTML and CSS in your project folder's "assets" directory.  While our goal with this code is to provide a way for you to preview and share your designs in the browser (not to output production quality code), you can do anything you'd like with the output.
    Joan

  • Can I resize the html applet size ?

    <applet code="myapplet.class" width="800" height="600"></applet>I know that I can use getSize() in my code file to get the size of the applet in html.
    However, can I resize the html applet tag width and height? It seems impossible.

    You could try to generate the HTML, save it to a File, and the use showDocument() to reload the whole page.
    (T)

  • How can I display the HTML page from servlet which is called by an applet

    How can I display the HTML page from servlet which is called by an
    applet using the doPost method. If I print the response i can able to see the html document. How I can display it in the browser.
    I am calling my struts action class from the applet. I want to show the response in the same browser.
    Code samples will be appreciated.

    hi
    I got one way for this .
    call a javascript in showDocument() to submit the form

  • How can we put the report which is generated by the program into spool??

    How can we put the report which is generated by the program into spool??
    I had generated a file in Unix which had the report but now the requirement has changed.
    Regards,
    Shashank.

    Hi Shashank,
    If the program is executed in the background and it has the write statement then the spool will automatically generated.
    Reward points if useful.
    Regards,
    Atish

  • I can't download the new java update for my macbook pro. I get a corrupt file message. Help!

    I can't download the new java update for my macbook pro. I get a corrupt file message. Help!

    "The new java Version 7 Update 13 is not exactly helpful in macbook pro.
    try the version 11 or 12 they should work perfectly."
    The OP is running 10.6.8 so Java 6 is his option at this point.
    For the OP try here:
    http://support.apple.com/kb/DL1573

  • How can I get the HTML codes in illustrator?

    Hi, I am a graphic designer, and I am getting into the web world, I wanna know how can I get the HTML codes to upload a web design made using Illustrator,...¡?Does any one know?Please let me know...

    everyone here is right, dreamweaver is better and you will need to understand html for this to work. HOWEVER, you can make a functional website using just illustrator and notepad (or text edit if you're on a mac).
    Design your site in illy, slice it up with the slice tool. http://s23.postimg.org/mv311kpp7/test_illy.jpg 
    Save for web and select html and images, you'll get an html file and an images folder. Open the HTML file in your text editing program and it will look like this: http://s10.postimg.org/f32nf6r2h/html_stuff.jpg   you'll have to know HTML codes but you can find tutorials online for most stuff, you'll just have to figure it out. In my fake site, i linked a button to google so i had to add <a href> tags to the code. http://s22.postimg.org/5avpadhch/a_href.jpg  save the html file and open it in your web browser, hopefully not IE. You can't tell in the picture but the middle button actually does link to google. http://s21.postimg.org/qd77slqmf/firefox.jpg

  • Can I use the Tax Payment Wizard to pay the Withholding taxes...?

    For SAP B1 2007 B PL 7---
    Can I use the Tax Payment Wizard to pay the Withholding taxes...?

    You must use a credit card  registered with your name and address.
    There is no other option.

  • Where can i find the BI Java Connector Files (for example: bi_sdk_jdbc.rar)

    Hi,
    where can i find the BI Java Connector Files:
    bi_sdk_jdbc.rar
    bi_sdk_xmla.rar
    bi_sdk_sapq.rar
    bi_sdk_odbo.rar
    Can anyone help me?

    hi Christian,
    these files should be included in bi java sdk
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/webcontent/uuid/78b3db58-0501-0010-b895-f75cd8fdf674 [original link is broken]
    hope this helps.

  • Can't modify the advanced Java setting

    I can't modify the advanced Java setting in Windows Vista if the UAC is on. If I disable the UAC the setting can be modified but when I turn the UAC on again return the old setting. This is a big problem because the jre in IE7 results deactivate and I can't open the Java applet infact the browser show the message:
    alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason." Your browser is completely ignoring the <APPLET> tag!
    I have installed the latest version: Java Runtime Environment 6 Update 4
    Thanks for the support sorry for the bad English.

    See http://www.google.com/search?q=java+vista+uac+problem

  • Where can i download the indesign calendar wizard ?

    where can i download the indesign calendar wizard ?

    Have a look at this: http://indesignsecrets.com/calendar-template-time.php
    There is also a forum thread here: Calendar Wizard Installation Help
    Derek

Maybe you are looking for

  • I can't burn a dvd....Help!!!!!

    Hi everyone. I've been trying to burn a dvd, but I get an error message that says the dvd is corrupt and it might not play. When I try playing nothing happens. has this happened to anyone here???

  • Help needed for translation of custom objects

    Hi All, We are currently in the process of upgrading from 11i to R12.1.3. We have a lot of custom reports and forms which needs to be translated based on language preference set at user level. The approach we have taken is as follows: 1. Created one

  • How do you return to the thunderbird main window in linux when it opens in a local folder?

    I can find no option to return to the main window of Thunderbird 31.1.1 under Fedora 20. It always opens in the same local folder (the only tab displayed under "File Edit View .. " menu bar) that I was reading before yesterday's "logoff.". I tried re

  • Save data from a presentation to the BPMObject without moving.

    Hi there! This is the actual problem. I have an interactive activity calling a presentation with the data from a BPMObject called Person. The fields are editable and the user can change them. What I want it's a button to save those changed fields int

  • BAPI_VENDOR_FIND - flds other than SELOPT_TAB

    Hi! If I enter a selection criteria to SELOPT_TAB table parameter of BAPI_VENDOR_FIND, I'll receive RESULT_TAB with only the fields entered in SELOPT_TAB. How can I get values of fields other other than the ones in selection criteria? Thanks! Regards