How to Compile this prog. i DOS prompt.

Hey Friends,
I don't know how to compile this prog. on DOS prompt, kindly tell.
// My Java Prog.
package package1;
import java.awt.Graphics;
import java.lang.Number;
import java.io.*;
import java.net.*;
import java.util.*;
import java.awt.Color;
import java.awt.event.*;
import java.applet.Applet;
import java.io.*;
import java.util.*;
import java.Applet.*;
/* <applet code="abc" width=600 height=1000 > </applet> */
public class abc extends Applet implements Runnable {
Hashtable dataFile = new Hashtable();
StringBuffer sb;
String Date,Time,Freq;
double KarDmd,KarDwl,KarShr,KarGen;
boolean flag = true ;
Thread myThread = null;
* init
public void init(){
setBackground(Color.gray);
* start
public void start() {
System.out.println("Start called"+this.getDocumentBase());
System.out.println("Start called"+this.getCodeBase());
myThread = new Thread(this );
myThread.start();
}//close thread
public void run(){
while (flag){
try {
URL url = new URL(this.getCodeBase(),"servlet/FileReadingServlet");
HttpMessage message = new HttpMessage(url);
InputStream in = message.sendGetMesage(null);
ObjectInputStream ois = new ObjectInputStream(in);
//String readStream = (String)ois.readObject();
dataFile = (Hashtable)ois.readObject();
//sb = new StringBuffer(readStream);
System.out.println("Applet Read :"+dataFile);
this.repaint();
try {
Thread.sleep(10000);
}catch (InterruptedException io){}
}catch (Exception e){
e.printStackTrace();
flag = false;
}//while
}//close run
public void paint (Graphics g){
g.clearRect(0,0,700,450);
g.drawString("Date :", 500,16);
g.drawString((String)dataFile.get("DATE"), 550,16);
g.drawString("TIME:",500,32);
g.drawString((String)dataFile.get("TIME"), 550,32);
g.drawString("FREQ :",500,48);
g.drawString((String)dataFile.get("FREQ"), 550,48);
// "KARNATAKA"
g.setColor(Color.cyan);
g.drawRect(10,50,150,100);
g.fillRect(10,50,150,100);
g.setColor(Color.black);
g.drawString("KARNATAKA",25,65);
g.drawLine(160,100,250,100);
g.drawString("GENERATION ",12,87);
String KAR_GEN = this.getGeneration((String)dataFile.get("KAR_DMD"),
(String)dataFile.get("KAR_DRL"));
g.drawString(KAR_GEN ,120,87);
g.drawString("SCHEDULE",12,107);
g.drawString((String)dataFile.get("KAR_SHD"),120,107);
g.drawString("DRAWL ",12,127);
g.drawString((String)dataFile.get("KAR_DRL"),120,127);
g.drawString("DEMAND ",12,147);
g.drawString((String)dataFile.get("KAR_DMD"),120,147);
g.drawLine(92,70,92,150);
//"KAPS"
g.setColor(Color.green);
g.drawRect(12,5,85,30);
g.fillRect(12,5,85,30);
g.setColor(Color.black);
g.drawString("KAPS",14,20);
g.drawString("DEMAND:",14,35);
g.drawString((String)dataFile.get("KAPS_DMD"),70,35);
//"GOA"
g.setColor(Color.magenta);
g.drawRect(100,5,85,30);
g.fillRect(100,5,85,30);
g.setColor(Color.black);
g.drawString("GOA",104,20);
g.drawString("DEMAND:", 104,35);
g.drawString((String)dataFile.get("GOA_DMD"),160,35);
// "ANDHRA PRADESH"
g.setColor(Color.orange);
g.drawRect(250,50,150,100);
g.fillRect(250,50,150,100);
g.setColor(Color.black);
g.drawLine(32,37,32,50);
g.drawLine(110,35,110,50);
g.drawString("ANDHRA PRADESH",268,65);
g.drawString("GENERATION ",252,87);
String AP_GEN = this.getGeneration((String)dataFile.get("AP_DMD"),
(String)dataFile.get("AP_DRL"));
g.drawString(AP_GEN,350,87);
g.drawString("SCHEDULE",252,107);
g.drawString((String)dataFile.get("AP_SHD"),350,107);
g.drawString("DRAWL",252,127);
g.drawString((String)dataFile.get("AP_DRL"),350,127);
g.drawString("DEMAND",252,147);
g.drawString((String)dataFile.get("AP_DMD"),350,147);
g.drawLine(332,70,332,150);
// "NTPC"
g.setColor(Color.pink);
g.drawRect(250,3,85,30);
g.fillRect(250,3,85,30);
g.setColor(Color.black);
g.drawString("NTPC",252,14);
g.drawString("DEMAND:",252,30);
g.drawString((String)dataFile.get("NTPC_DMD"),305,30);
//"HVDC"
g.setColor(Color.green);
g.drawRect(350,3,85,30);
g.fillRect(350,3,85,30);
g.setColor(Color.black);
g.drawString("HVDC",352,14);
g.drawString("DEMAND:",352,30);
g.drawString((String)dataFile.get("HVDC_DMD"),405,30);
//"GAUZACK"
g.setColor(Color.magenta);
g.drawRect(450,80,90,30);
g.fillRect(450,80,90,30);
g.setColor(Color.black);
g.drawString("GAZ",452,90);
g.drawString("DEMAND:",452,105);
g.drawString((String)dataFile.get("GAZ_DMD"),510,105);
g.drawLine(160,250,250,250);
g.drawLine(85,150,85,200);
g.drawLine(160,125,250,225);
g.drawLine(270,300,270,330);
g.drawLine(370,300,370,330);
g.drawLine(400,230,450,230);
g.drawLine(400,100,450,100);
g.drawLine(270,33,270,50);
g.drawLine(370,33,370,50);
//"KERALA"
g.setColor(Color.green);
g.drawRect(10,200,150,100);
g.fillRect(10,200,150,100);
g.setColor(Color.black);
g.drawString("KERALA",62,215);
g.drawString("GENERATION ",12,237);
String KER_GEN = this.getGeneration((String)dataFile.get("KER_DMD"),
(String)dataFile.get("KER_DRL"));
g.drawString((String)dataFile.get("KER_GEN"),120,237);
g.drawString("SCHEDULE ",12,257);
g.drawString((String)dataFile.get("KER_SHD"),120,257);
g.drawString("DRAWL",12,277);
g.drawString((String)dataFile.get("KER_DRL"),120,277);
g.drawString("DEMAND",12,297);
g.drawString((String)dataFile.get("KER_DMD"),120,297);
//"TAMIL NADU"
g.drawLine(92,220,92,300);
g.drawLine(325,150,325,200);
g.setColor(Color.yellow);
g.drawRect(250,200,150,100);
g.fillRect(250,200,150,100);
g.setColor(Color.black);
g.drawString("TAMIL NADU",272,215);
g.drawString("GENERATION ",252,237);
String TN_GEN = this.getGeneration((String)dataFile.get("TN_DMD"),
(String)dataFile.get("TN_DRL"));
g.drawString((String)dataFile.get("TN_GEN"),350,237);
g.drawString("SCHEDULE ",252,257);
g.drawString((String)dataFile.get("TN_SHD"),350,257);
g.drawString("DRAWL ",252,277);
g.drawString((String)dataFile.get("TN_DRL"),350,277);
g.drawString("DEMAND:",252,297);
g.drawString((String)dataFile.get("TN_DMD"),350,297);
g.drawLine(332,220,332,300);
// "PONDYCHERRY"
g.setColor(Color.magenta);
g.drawRect(450,220,90,30);
g.fillRect(450,220,90,30);
g.setColor(Color.black);
g.drawString("PDY",452,230);
g.drawString("DEMAND:",452,245);
g.drawString((String)dataFile.get("PDY_DMD"),510,245);
//"NLY"
g.setColor(Color.green);
g.drawRect(250,330,90,30);
g.fillRect(250,330,90,30);
g.setColor(Color.black);
g.drawString("NLY",252,340);
g.drawString("DEMAND:",252,355);
g.drawString((String)dataFile.get("NLY_DMD"),310,355);
//"MAPS"
g.setColor(Color.pink);
g.drawRect(350,330,90,30);
g.fillRect(350,330,90,30);
g.setColor(Color.black);
g.drawString("MAPS",352,340);
g.drawString("DEMAND:",352,355);
g.drawString((String)dataFile.get("MAPS_DMD"),410,355);
g.setColor(Color.black);
//g.drawLine(440,306,620,306);
//g.drawLine(440,332,620,332);
//g.drawLine(440,358,620,358);
//g.drawLine(530,280,530,388);
for(int i=70;i<150;i=i+20) g.drawLine(10,i,160,i);
for(int i=70;i<150;i=i+20) g.drawLine(250,i,400,i);
for(int i=220;i<300;i=i+20) g.drawLine(10,i,160,i);
for(int i=220;i<300;i=i+20) g.drawLine(250,i,400,i); }//close paint
* stop
public void stop() {
myThread.destroy();
* destroy
public void destroy() {
* getAppletInfo
* @return java.lang.String
public String getAppletInfo() {
return "Applet Information";
private String getGeneration(String DMD,String DRL){
double _gen = 0;
if ( ( DMD != null) && ( DRL != null)){
Double DMDOB = new Double(DMD);
Double DRLOB = new Double(DRL);
gen = DMDOB.doubleValue() - _DRLOB.doubleValue();
return new Double (_gen).toString();
} //close class

Change your directory to the directory above package1.
Assuming that you've got d:/projects/src/package1/abc.java you'd want to be in d:/projects/src.
Run javac referencing the abc class relatively:
d:\projects\src> javac package1/abc.javaThis should get you abc.class in the package1 directory.
Hope this helps.

Similar Messages

  • How do you get to the DOS prompt so that you can type in the info to help get into itunes store???  One post said search cmd, right click, run as administrator but where is the search cmd??

    Have been struggling for days trying to get into the itunes store.  Have contacted support with no help.  I have been reading how some have typed something into a DOS prompt and have resolved their issues.  One stated to "search cmd, right click, and run as admininstrator" but where is this?  There was also a post about typing something into the DOS prompt....how do I get to this?  Can someone please help??? SOOOOO FRUSTRATING.  Thanks much...Carrie (Mike's wife:))

    One stated to "search cmd, right click, and run as admininstrator" but where is this?
    In the search field in your Vista start menu, type cmd
    Next, right-click on the cmd that comes up and select "Run as administrator".

  • How to compile this java files ?

    I have two files Foo.java & Foo2.java in separate packages.
    PLEASE let me know how to compile these files .
    package XYZ;
    public class Foo {   
    public static void main(String[] args) {    }
    package XYZ.ABCD;
    class Foo2 extends Foo{
    public static void main(String[] args) {     }
                                               }I'm getting .. following error.
    XYZ\ABCD\Foo2.java:3: cannot find symbol
    symbol: class Foo
    class Foo2 extends Foo{
    ^
    1 error

    You need an import statement in Foo2.java.
    import XYZ.Foo;This should come before the package statement.

  • How to compile this without warnings?

    Hello,
    I am learning generics, and I grasped concepts but still get stuck with this:
    Properties props = System.getProperties();
    List propsList = new ArrayList(props.keySet());
    Collections.sort(propsList);
    for (Object key : propsList) {
         out.println(key + "  =  " + props.getProperty((String)key));
    }I get 3 warnings from the compiler and was not able to get rid of them. Thing is that I don't understand what to do with Set<K> which is returned from props.keySet(). I tried to make List<String>, List<? extends Object>, List<? super String>, it was only guessing, so I would appreciate quick explanation how to make this compile without warnings.
    And warnings I get are:
    warning: [unchecked] unchecked call to ArrayList(java.util.Collection<? extends E>) as a member of the raw type java.util.ArrayList
    List propsList = new ArrayList(props.keySet());
    ^
    warning: [unchecked] unchecked conversion
    found : java.util.List
    required: java.util.List<T>
    Collections.sort(propsList);
    ^
    warning: [unchecked] unchecked method invocation: <T>sort(java.util.List<T>) in java.util.Collections is applied to (java.util.List)
    Collections.sort(propsList);
    Thank you!

    ndario wrote:
    OK, List<String> is what I want, but I can't get it as
    List<String> propsList = new ArrayList<String or whatever>(props.keySet());
    The constructor you use here does not allow for what you intent to do, right. But all the constructor does is to create a new list and add all elements from the set. This can also be done by creating the list first and adding the set's element in a loop, ensuring to convert each element to the desired type.
    Thing is that I am not looking for a solution to this problem (there are many ways to sort keys of Properties) but trying to learn something about generics. I was interested what needs to be done to compile the code snippet from the first post without warnings. Is it possible at all?Sure, I already told you what you need to do:
    1. Define the list as I did in my first posting
    2. Define your own Comparator<Object> to be passed as second parameter to sort().

  • How to execute PL/SQL from DOS PROMPT?

    Hello:
    I've seen that executing an SQl script via DOS prompt involves @script name, however all this seems to do is open the line editor. A GET command displays my script and sets the cursor on the next available line with the last line of the script with an asterics beside it. as does using the @scriptname command. I cannot do any commands like SAVE, RUN, etc.
    Any help is appreciated.

    Do you have a final / in your script to execute it (which is presumably an anon pl/sql block).

  • How to Compile java project on command prompt

    Hello Friends,
    I have created one java project in eclipse. It has 3 packages, 4 external jars and one Link source (meaning it uses other java package that is not in the same project folder)
    It runs perfectly using eclipse.
    Now I want to compile my project and want to run that project.
    I tried using "javac -classpath........." but it didn't work for me. Here is the command I used:
    I am running this command under my main project folder
    javac -classpath ./../../../lib/tools/lib/blur/blur_formats-1.0.jar;./../lib/commons-codec/commons-codec-1.3.jar;./../lib/commons-httpclient/commons-httpclient-3.1.jar;./../lib/commons-logging/commons-logging-1.1.1.jar;./../lib/org.json/org.json.jar;./../lib/smack/3_0_4/smack.jar;./../../../device/branches/viper/Service/blur/common/push/src* ./src/com.proj.hnm.push.StartService.java*
    1) /device/branches/viper/Service/blur/common/push/src - is a different package I am referring (not in my current project folder) - it has java files in com.pushsync package
    2) ./src/com.proj.hnm.push.StartService.java is my main class, com.proj.hnm package also contains another 2 package, and those other packages also have .java files
    Please tell me how do I run my java project?
    Thanks

    Hi
    Since it works fine in Eclipse you should install the [Fat Jar eclipse plugin|http://fjep.sourceforge.net/] which will pack everything thats in your eclipse project into a single jar file. Then you can run: java -jar myProject.jar and it should work.

  • How to compile this?

    Hello, I need to edit the source, to be able to change the installed programs name once downloaded on my phone.
    Now I run the ready .jar, it creates another .jar, the 2nd .jar i just created is sended on my phone, but then its name is MeBoy, no matter what.
    http://arktos.se/meboy/ver/latest/meboysource.zip
    Theres the source, I can figure out how to edit the installed programs name I think, but i'm not able to compile the program with any of the javaa programs i have installed.

    Hello, I now was able to create a single .jar file, although, it doesn't work.
    "Failed to load Main-Class Manifest attribute"
    Hmm, yes, there is a Manifest.(nothing) file in there, i tried to rename it to .mf but didnt help either.
    Maybe someone of you would like to download the source files and try yourself?
    Sorry that I ask stuid questions, but everyone starts from somewhere.
    Edit: Commend used was: jar cvf MeBoy.jar *
    I "cd"'d to the directory the source files were in and executed that command, and it created the corrupted .jar file.
    Edit: Source files are on the first post, http://arktos.se/meboy/ver/latest/MeBoyBuilder.jar is the ready working .jar i need to edit.
    Edit:
    I tried:
    jar cf MeBoy.jar Dmgcpu.java DmgcpuColor.java DmgcpuBW.java  GBCanvas.java GraphicsChip.java GraphicsChipBW.java GraphicsChipColor.java ICpu.java MeBoy.java MeBoyBuilder.java MeBoyPP.py manifest.mfBut didnt work either.
    Edited by: Naike on Mar 1, 2008 5:21 AM

  • What is the original expand function and how to compile this

    https://onedrive.live.com/redir?resid=E0ED7271C68BE47C%211002
    i lost the original file, and when i search Expert F# 3.0 and download again, it do not include the expand function
    i only have the version i last edited and test, but it is the original version
    i want to edit expand function for 2 valued logic and 3 valued logic
    1 0 -> 1 means a+0 = a
    0 1 -> 1 means 0+b = b
    1 2 2 -> 2 means a+op2(b,c) = op2(b,c)
    let Expand v e =
    let rec expan v = function
    | Num num -> Num 0M
    | Var v' when v' = v -> Num 1M
    | Var v' -> Num 0M
    | Neg e -> expan v (Prod ((Num -1M), e))
    | Add exprs -> Add (List.map (expan v) exprs)
    | Sub (e1, exprs) -> Sub (expan v e1, List.map (expan v) exprs)
    | Prod (e1, Add(e2)) -> expan v (Add (List.map (fun x -> Prod(e1, x)) e2)) //Add [Prod (expan v e1, e2); Prod (e1, expan v e2)]
    | Prod (Add(e2), e1) -> expan v (Add (List.map (fun x -> Prod(e1, x)) e2))
    | Frac (e1, e2) -> Frac (Sub (Prod (expan v e1, e2), [Prod (e1, expan v e2)]), Pow (e2, 2M))
    | Pow (e1, num) -> Prod (Prod(Num num, Pow (e1, num - 1M)), expan v e1)
    | Sin e -> Prod (Cos e, expan v e)
    | Cos e -> Neg (Prod (Sin e, expan v e))
    | Exp (Var v') as e when v'= v -> e
    | Exp (Var v') as e when v'<> v -> Num 0M
    | Exp e -> Prod (Exp e, expan v e)
    expan v e
    computing nightmare

    i lost the original file
    This is what source control systems are for, especially off-site ones like GitHub or BitBucket.
    That code looks like Listing 12-11, where the outer function is called `Differentiate`, and the inner `diff`, because it is computing differential of an expression.  Your rename makes little sense save to obfuscate the intent of the code.

  • How to compile this file!!!

    Hi folks
    I'm trying to compile and create jar file from the following but without success
    http://stein.cshl.org/jade/distrib/
    file name is jadex.tar.gz
    Could you please try it and reply
    best regards

    X-post

  • How to shutdown db throgh dos prompt

    Dear All
    Please tell me complete process of how to shutdown database oracle9i through dos prompt
    With Regards
    Husnain

    Microsoft Windows 2000 [Version 5.00.2195]
    (C) Copyright 1985-2000 Microsoft Corp.
    C:\Documents and Settings\raja.baskar>sqlplus
    SQL*Plus: Release 9.2.0.8.0 - Production on Wed Jun 25 15:10:28 2008
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Enter user-name: sys@test as sysdba
    Enter password:
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.8.0 - Production
    SQL> shut immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL>
    Regards
    RajaBaskar

  • Under a GUI, I need to run a perl script, how to do this?

    Hi - I am writing a GUI for my clients and one of the things my program must do is run a perl script. I am able to run perl.exe but it seems like perl.exe is not running the script. I also tried to put the perl script in a batch file and then call the batch file from my java GUI program. I still get the same issue of just perl.exe running but thats not running the script. My last attempt was to write a small class to test if perl.exe can run the script under a command line. I got the perl.exe to run the perl script but how do I but implement that class in my GUI if my test class needs a command line? How can I run a command line in my GUI so the perl script can be run.
    The Runtime.getRuntime.exec(RunPerlScript) is not working like I want it.
    I also tried Runtime r = Runtime.getRuntime();
    Process p = r.exec(RunPerlScript);
    How can I run the MS-DOS prompt from my program if the Runtime Environment is running already. The Runtime Environment seems to not allow another prompt to be opened and from there I can run the perl script manually or automatically from my program.
    What does the "cmd /c start..." or "c:\\windows\\command.com..." do? I have seen that in the forum but it doesn't seem to be running the perl script. The perl.exe runs, but not the perl script. I need anyones help desperately. Damn microsoft, why did they remove completely the functionality of DOS. I have a feeling my program will run perfectly under a UNIX environment, because I needed to do was open another shell. Thats what I need in windows!
    Thank you for your help.
    Seigot

    hi
    I am working on this perl scripts do run on GUI's well the process command is fine try java 1.3 it works fine. if u need more help let me know
    all the best

  • Converting multiple bmp files to PDF using acrobat 7.0 from DOS prompt

    Hi,
    I have a requirement to convert multiple BMP files in a folder to one PDF.
    I can use multiple file conversion option in acrobat to combine and convert them to one PDF .. but I have 2000 such folder to conver to PDF.
    PDF should be name after the folder name.
    Is there a to automate this in acrobat.. or can we run this conversion from DOS prompt using commands.. so that I can create a bat file and have them converted. Pls let me know.
    Thanks
    Pugazh

    I have not tried BMP files, but do JPeg, GIF, TIFF, and PNG files regularly. I simply open Acrobat, then select the graphics files in explorer and drag & drop to Acrobat. I then organize the graphics if needed (using the pages tab) and save to a PDF.

  • How to Compali this SERVLET????

    This is how my servlet class looks like. Any body can give me some hints on how to compile this servlet class.
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Form extends HttpServlet {
         public void doGet(HttpServletRequest request, HttpServletResponse response)
         throws ServletException, IOException {
         response.setContentType("text/html");
         PrintWriter out = response.getWriter();
         String title = "Investment Form";
         out.println(ServletUtilities.headWithTitle(title) +
              "<BODY BGCOLOR=\"#FDF5E6\">\n" +
              "<H1 ALIGN=CENTER>" + title + "</H1>\n" +
              "<UL>\n" +
              " <LI><B>MEMBER</B>: "
              + request.getParameter("MEMBER") + "\n" +
              " <LI><B>Name</B>: "
              + request.getParameter("Name") + "\n" +
              " <LI><B>SSN</B>: "
              + request.getParameter("SSN ") + "-"
              + request.getParameter("SSNn ") + "-"
              + request.getParameter("mem_ssn") +
              " <LI><B>Account</B>: "
              + request.getParameter("Account") + "\n" +
              " <LI><B>Address1</B>: "
              + request.getParameter("Address1") + "\n" +
              " <LI><B>Address2</B>: "
              + request.getParameter("Address2") + "\n" +
              " <LI><B>City</B>: "
              + request.getParameter("City") + "\n" +
              " <LI><B>State</B>: "
              + request.getParameter("State") + "\n" +
              " <LI><B>ZIP</B>: "
              + request.getParameter("ZIP") + "\n" +
              " <LI><B>WorkPhone</B>: "
              + request.getParameter("WorkPhone") + "\n" +
              " <LI><B>HomePhone</B>: "
              + request.getParameter("HomePhone") + "\n" +
              " <LI><B>Email</B>: "
              + request.getParameter("Email") + "\n" +
              " <LI><B>Amount</B>: "
              + request.getParameter("Amount") + "\n" +
              "</UL>\n" +
              "</BODY></HTML>");
              

    You can compile your servlet as you do for ordinary classes.
    like
    javac servletfile.java
    but do check before you compile that, your servlet.jar or j2ee.jar is there in class path or not.
    after compilation put your servlet class in the classes dierectory of your Webserver.

  • How to compile a java servlet in netbeans

    heyall, just placed the following java code in my src folder in my web app folder in netbeans, anyone tell me how to compile this now? it asks me for a main but not sure exactly what to put
    package org.mypackage.chapter1;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ServletOne extends HttpServlet {
      /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
       * @param request servlet request
       * @param response servlet response
      protected void processRequest(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
        response.setContentType("text/html;charset=UTF-8");
        PrintWriter out = response.getWriter();
        /* TODO output your page here */
            out.println("<html>");
            out.println("<head>");
            out.println("<title>Servlet ServletOne</title>");
            out.println("</head>");
            out.println("<body>");
            out.println("<h1>Servlet ServletOne at " + request.getContextPath () + "</h1>");
            out.println("Date is: "+ new java.util.Date());
            out.println("</body>");
            out.println("</html>");
        out.close();
      // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
      /** Handles the HTTP <code>GET</code> method.
       * @param request servlet request
       * @param response servlet response
      protected void doGet(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
        processRequest(request, response);
      /** Handles the HTTP <code>POST</code> method.
       * @param request servlet request
       * @param response servlet response
      protected void doPost(HttpServletRequest request, HttpServletResponse response)
      throws ServletException, IOException {
        processRequest(request, response);
      /** Returns a short description of the servlet.
      public String getServletInfo() {
        return "Short description";
      // </editor-fold>
    }

    heyall, just placed the following java code in my src folder in my web app folder in netbeans, anyone tell me how to compile this now?F9
    it asks me for a main but not sure exactly what to putCompiling source files never 'asks .. for a main'. You must be trying to execute it. You can't do that outside the servlet container it is intended for
    COMPILER ERROR - package javax.servlet.http does not exist
    BUT can't even get this far yetSo try compiling it as per your tutorial. Do you understand the difference between 'compile' and 'run'?

  • How to compile Reports sample OCI program in Sun solaris ?

    TO All:
    Here is reports OCI sample program.
    #include <stdio.h>
    long ret,rwcrun(),rwcsql();
    main()
    char options[132];
    long len;
    strcpy(options,"userid=ps51/ps51 report=emp batch=yes paramform=no destype=file desname=l.ps");
    printf("/options are: %s",options);
    len=strlen(options);
    ret=rw2run(options);
    printf("/n Value of return code is %d",ret);
    exit();
    Pls guide me , how to compile this program in Sun Solaris platform .
    1. Which library file I need to include.
    2. How to create make (.mk) file.
    If I compile this program using below command.
    $>cc ociprg.c r30dll.o
    then "rw2run" not found error.
    Also I need to use RW2RRB oci function, for this which library I need to use.
    Thanks in Advance
    Siva
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by R.Siva Kumar [[email protected]]:
    TO All:
    Here is reports OCI sample program.
    <HR></BLOCKQUOTE>
    null

Maybe you are looking for

  • Apple App Store  - give icon and / or first line description when sharing.

    Loving the new IOS7 and running on an iPad 3 (my son gave me this as he bought a mini). Myself and all my kids own either iPads or iPhones (4s & 5s) and we share a lot off ideas and App's with each other via iMessage. My idea is: when we browse the A

  • Failed to start HTTP server while installing companion CD

    Hi all, I am installing apex 3.1.2 (though it is old version, clients are still using it :) ), on the oracle 10.2.1 database. I am installing HTTP servers from the companion CD and getting error while starting HTTP server from the configuration assis

  • Retiming in shake from fcp5

    Hi folks, Wonder if you can help. When I sent a clip from the timeline in fcp to shake, I opened it up successfully and applied a constant speed change in shake. The problem is that it seemed to then lose the in and out point of the clip and apply it

  • Moving to Canada

    Hello, Moving to Canada. Has anyone gotten the US and Canada plan? Is there data coverage in Alberta? I was sad to hear this plan is only for people who visit Canada and 50% of the calls need to be made from the US ---- has anyone got a solution or a

  • Hello, my copy of Dreamweaver CS4 stopped working, a message appears stating "Licensing for this product stopped working" error 150:30

    Hello, my copy of Dreamweaver CS4 stopped working, a message appears stating "Licensing for this product stopped working" error 150:30. I have a license I bought from Adobe directly, and which has always worked fine. Any hints? I have a new iMac Reti