New Programmer

Hi all first time I m doing my job in Servlets , but the problem is
I m not able to run java servlets program in Gel though I have done all the settings and class path .
Its saying that .servlets package not found .
Please help me

Servlets are not a part of J2SE. Its a part of J2EE
you have to add J2EE.jar file or Servlet-API.jar file in to your class path.
If you have a tomcat installed you will be able to find the Servlet-API.jar file in its lib folder.
If you have a j2EE application server installed you will be able to find the j2ee.jar file in its lib folder.
By the way since you mentioned "run java servlets": Java servlets can't be run like raguler java applications. You must deploy them inside a servlet container in order to be used.

Similar Messages

  • HT1199 Two new programmes loaded from different companies fail when I try to use them -quit unexpectedly messages

    Two new programmes from differant companies have loaded ok but when I try to use them I get an imediate error message -quit unexpectedly- and the programme closes. What is wrong? 

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter the name of the crashed application or process in the Filter text field. Select the messages from the time of the last crash, if any. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    In the Console window, look under User Diagnostic Reports (not "Diagnostic and Usage Messages") for crash reports related to the crashed process. The report name starts with the name of the process, and ends with ".crash". Select the most recent report and post the entire contents — again, the text, not a screenshot. In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.) Please don’t post other kinds of diagnostic report — they're very long and not helpful.

  • I own a Mac. I want to install some new programms but itunes wants me to agree with some conditions. I WILL not agree to those conditions.

    I own a Mac. I want to install some new programms but itunes wants to upgrade itself and wants me to agree with some conditions. I WILL not agree to those conditions.
    How can I install software now? The stupid screen keeps popping up that itunes wants to be updated. Going round in a circle here.

    Well, if you want to use iTunes and whatever  security or changes have been made with the iTunes Agreement have changed since last time, and to work with the iTunes Store....
    Clone your system.
    You can also turn off updates.
    Are you on Lion? And already have iTunes 11? You can manaully download and go to the support page and see what changes were made and other requirements.
    There is a forum for issues with itunes (but not with the software license and agreement)
    iTunes 11.1.3This version of iTunes resolves an issue where the equalizer may not work as expected and improves performance when switching views in large iTunes libraries. This update also includes additional minor bug fixes. Nov 5, 2013
    http://www.apple.com/support/itunes/

  • New programme to connect to my laptop?

    Can someone please advise me on the new programme that has been launched recently that enables me to connect to my laptop from my phone, i heard it today and cant remember what its called??!!
    It was something like "loose my laptop", i think!!
    Message was edited by: jdicko

    If it's new, it doesn't make sense that it's asking for a password.
    In any event, try a system reset first.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    I really don't expect much from the reset.  If you're still stuck, you need to go into "Recovery Mode."
    There have been some problems accessing pages on the Apple web site.  If the hyperlink gives you a "We're sorry" message, try again.

  • Putting jpegs and gifs into an applet???  - new programmer

    I am a new programmer trying to learn how to put jpegs and gifs into my applet. I am using a paint method to draw pictures. Is there a way that I can insert jpegs and gifs into this at certain x and y coordinates?
    Thanks.

    http://java.sun.com/docs/books/tutorial/uiswing/painting/usingImages.html

  • New programmer question

    does anyone know how to change a .java file to a .jar or an exe
    If anyone knows of an external program thta can help please tell me

    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com . A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.
    James Gosling's The Java Programming Language. Gosling is
    the creator of Java. It doesn't get much more authoratative than this.
    http://java.sun.com/docs/books/tutorial/deployment/jar/

  • New programmer - Wavey line

    New to Java at University and we are currently modelling flags to learn graphics.
    One of the flags has a wavy line/band across the middle. I know that the wavelength is 120 the amplitude is 6 and it is 48 wide. Just not sure what command to use and how to structure it. I had assumed it would be a variation on drawLine or drawString but can't seem to find an answer in documentation. I'm sure it should be quite basic as we are only 5 weeks in. Any help would be appreciated! Thanks

    You can use drawPolyline() (by computing many points in the wavy line) or drawArc() (by computing half waves and connecting the arcs).

  • New programmer, struggling to make dice class

    im very new to this, but here is my code so far:
    import java.util.Random;
    public class Die
    private int nSides;
    private int vRolled;
    public Die(int numberOfSides)
    nSides = numberOfSides;
    Random randomNumbers = new Random();
    vRolled = 1 + randomNumbers.nextInt(6);
    public int getSides()
    return nSides;
    public int roll()
    return vRolled;
    this only randomly chooses the value rolled once, and then everytime i call "int roll()" it comes up with the same value. How can i make a die that rolls new values everytime i call "int roll()"?

    yeah cheers guys i moved the code into the method it works now
    Btw. Shouldn't this line:
    vRolled = 1 + randomNumbers.nextInt(6);be like this instead:
    vRolled = 1 + randomNumbers.nextInt(nSides);i noticed the nSides thing just after i posted and changed it but thanks neway
    its my first ever post so sorry bout the code i didnt know you could preserve the format

  • New programmer - Old Java code

    I am new to Java (but old to Delphi) and have inherited an application in Java from six years ago. What development environment should I start learning?
    Thanks...... Jim

    How quickly do you think you can pick Java up? I generally recommend learning without an IDE. Esp if you currently know no Java.
    As to the general case to "Which IDE should I use", the only answer to this is: Try as many as you can, and use the one you feel most at home with. Out of the main free two: Netbeans has the better drag+drop GUI support and the most stuff pre-configured and good to go out the box (IMO), but Eclipse has the nicer text editor and better 3rd party support.
    Stock learning Java Answer:
    [Sun's basic Java tutorial|http://java.sun.com/docs/books/tutorial/]
    [Sun's New To Java Center|http://java.sun.com/learning/new2java/index.html]
    Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    jGuru
    A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch
    To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    [Yawmarks List|http://forums.devshed.com/java-help-9/resources-for-learning-java-249225.html]
    [The Java Developers Almanac|http://www.amazon.com/exec/obidos/tg/detail/-/0201752808?v=glance]
    [http://javaalmanac.com|http://javaalmanac.com]
    Bruce Eckel's [Thinking in Java(Available online.)|http://mindview.net/Books/DownloadSites]
    Joshua Bloch's [Effective Java|http://www.amazon.co.uk/exec/obidos/Author=Bloch,%20Josh]
    Bert Bates and Kathy Sierra's [Head First Java|http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance ]
    James Gosling's [The Java Programming Language|http://www.bookpool.com/sm/0321349806]
    Gosling is the creator of Java. It doesn't get much more authoritative than this.
    Joshua Bloch and Neal Gafter [Java Puzzlers.|http://www.javapuzzlers.com/]

  • New Programmer please help

    Hey guys I'm very new to Java so could you guys please help me out?.
    For starters I'm making a simple calculator program. You input 2 numbers and a character and depending on the char. it gives you the output.
    Here's how much I've done -
    public class calculator
    public void main (double a,double b,double c)
    double d;
    switch c
    case +: d = a+b; break;
    case -: d = a-b; break;
    case *: d = a*b; break;
    case /: d = a/b; break;
    default : System.out.println ("Wrong Character, please try again");I was wondering what would be a simple way to detect an input from the used to check if he wants to further calculate or if that's it.
    Thanks in advance, Adi_Nemesis

    import java.util.*;
    public class Calculator{
    public static void main(String[] args){
         new Calculator();
    public Calculator(){
         Scanner console = new Scanner(System.in);
         while(true){
         System.out.print("First Number: ");
         double num1 = console.nextDouble();
         System.out.print("Second Number: ");
         double num2 = console.nextDouble();
         System.out.print("Operator: ");
         String input = console.next("[+-/*]");
         char operator = input.charAt(0);
         double result = Double.NaN;
         switch(operator){
         case ADD: result = num1 + num2; break;
         case SUBTRACT: result = num1 - num2; break;
         case MULTIPLY: result = num1 * num2; break;
         case DIVIDE: result = num1 / num2; break;
         System.out.println("" + num1 + " " + operator + " " + num2 + " = " + result + "\n");
         public static final char ADD = 43;
         public static final char SUBTRACT = 45;
         public static final char MULTIPLY = 42;
         public static final char DIVIDE = 47;
    }

  • New programmer- how do i compile package members?

    im learning java using sams teach yourself java in 21 days. its really good compared to other ive tried but i was having a problem on day 6. i couldnt compile package members successfully. i didnt undestand the book instruction so instead of compiling this way:
    C:\noam\java> c:\java\jdk1.5.0_06\bin\javac classname.java
    i did it this way:
    C:\java\noam\org\cadenhead\ecommerce> c:\java\jdk1.5.0_06\bin\javac classname.java
    this worked but other classes inside the package could not recognize this class, though classes outside the package could.
    how do i compile package members?
    thnx!

    I solved the problem...! I have no idea how but it worked this time!
    thnx anyway for everybody who tried to help!

  • A new programme has installed a button on the navigation bar that I can't remove by the usual method

    I recently installed freemake video converter. It has put a button on the navigation toolbar which I can't remove by the usual drag and drop method customising toolbars. It has taken the place of my bookmarks button at the right hand side of the navigation toolbar.

    You can't remove it by drag and drop in customize toolbars because it is only for Firefox components, not 3rd party extensions.
    I am sorry, either you need to un-install the extension using the Add-ons Manager or contact Freemake. You can also look out if you can disable that button by going to Add-ons manager and selecting Options button FOR Freemake extension.

  • Installing an old Win programme on new Mac notebook?

    Hi. I purchased Adobe Photoshop Elements, Version 6, Platform Win in February 2008. I now have a Macbook Air and wonder if I can somehow download and use the Photoshop Elements Version 6 which I purchased on my Mac notebook? I don't particularly wish or need to purchase a new programme  - the old one was fine for my needs. I don't live in the US - I live in the UK so don't want to call a customer support number unless it is toll free. Thanks!

    One thing to be aware of if you use the organizer: you will need to upgrade your windows catalog to PSE 9 or later, and then restore it to the mac if you want to move your catalog to the mac. If you buy the boxed version of PSE you get both platforms, but downloads are for a single platform, so since you don't have a disc drive you could download the trials for both and use that to upgrade the catalog on your windows machine.

  • New development for Return

    We developed new programme to accomodate Part 2 posting whie taking return from customer. So that there is no need to post seperate excise JV and GL accounts are automatially updated.. In this tcode we feed invoice number(Return billing num), invoice date & excise number (any number entered manualy). It was running fine till yesterday but from 2de when v r executing the  transaction, its giving following error msg & GL accounts r nt updated. can anyone guide if hav any idea.
    Thanks

    Hi
    Can u give us the class and the number of the message?
    Max

  • 100% CPU! HALP! w/ Win 8.1 Pro infected by malicious content that reoccurs even after a factory restart. I've tried near everything malwarebytes, win defender, I'm still too new to effectively use MMC, or GPEDIT.MSC,

    Some form of malicious content is assaulting my PC's registrys, drivers, along with portraying as other Users, and programs. It's a constant struggle to keep my property, authority, permission under my control over security ownership of my files etc. I
    have seen PUP and PUM files in scans, I'm still learning the different forms of malicious content, but I have a feeling there's male-ware, root-kit, and ad-ware that I haven't Identified. Even though my network is private, haven't even created a home-group,
    and all my remote access is turned off, but I haven't ruled out someone still being clever enough to access my system/network remotely. I've tried to keep my computer as secure as possible, multiple passwords, and two-step verification I thought I was going
    off the deep end when I started to suspect my SYSTEM profile had been compromised. I can't tell if it's a phony, or actually my system taking away everything until I literally cant do a thing on my computer.  I didn't want to remove any files that I shouldn't.
    When ever I feel that I'm about to lose complete control over my PC I restore it to factory condition, it's about all I can do. Even after 5 restarts it's persistent. I"ve stopped short of using the more extreme programs like Anti-maleware tool Adlice,
    RogueKiller, and Combofix. I've actually learned a lot about script, and IS no thanks to my computers new little friends. I've been dealing with this malicious content since december upgrading OS from 7 up to 8.1 has really been the only thing my computer
    and I from being completely run over. Some newer up to date advice would be great, I don't want to use out of date or ineffective programs the instructions I've been following are sometimes several years, to at least months old. No point in waisting my time
    if the information is irrelevant and out of date. I'll attach some of my reports, and the progams that I have/haven't used yet. I have several MS accounts, from XboX, college, and this old one I was contemplating on putting all three of them in an admin group,
    making it more difficult to challenge my authority, or maybe just joining a workgroup/domain would also work. Last night I did use GPEDIT.MSC to disable inheratance, followed by a taking global ownership, if it I actually managed to get GPEDIT.MSC to can't
    wait to get my hands I"m kind of enjoying myself though, it's been fun teaching myself IS I always wanted to learn how to use CMD script with proper syntax, I was starting the think that my only solution was to learn command prompt, but there may be a
    newer programm that just might work. I've been using reginout, drivertoolkit, MBAM/backup/chameleon, ncleaner, cclearner, and many others. I've scanned but haven't put combofix, roguekiller, or Adlice to the grind stone, I'd probably do more harm not being
    able to tell whats more benine for beneficial. Here is a link to the instructions that I was following https://forums.malwarebytes.org/index.php?/topic/149492-pcregserviceexe-infection-pup-infections/ the members description was also very close to what I was
    dealing with, he just had better luck with MBAM

    You will find appropriate Consumer-specific support by beginning your own, new thread in this forum =>
    http://answers.microsoft.com/en-us/protect/forum/protect_scanning
    ~Robear Dyer (PA Bear) MS MVP-Windows Client since 2002 Disclaimer: MS MVPs neither represent nor work for Microsoft

Maybe you are looking for

  • Link SAP Script with IC WinClient

    Hey Guys I have created a SAP script, but I am having hard time linking it with the Interaction Center Winclient. What I mean is that,  when the call is received, how the agent will read the script. Any help would be really appreciated. Regards SAP C

  • Change NativeWindow background color

    Hi, I'm developing ad Air application with Flash. This application creates other windows and plays video in fullscreen mode. Created windows have white background so in fullscreen mode i have white strips :-( Do you know if is possible to change nati

  • Shrinking BLOB tablespace in Oracle 10g

    Hello, I have table created with 32 GB in Oracle 10g with BLOB field containing images. after that I have deleted some of the images from the table but when I'm checking free space, it is show full 32 GB. But when I'm looking at Toad it shows me out

  • Need the name of the funcion module for master data planning

    Hi all, i need to know the name of the function module to call in a planning function in order to do a master data planning. thanks a lot!

  • Asset balance transfer -1kei

    Hi, When we are transfering the balances in Assets in Profit center using 1KEI ,a balance of 1000 is transfered to a particular profitcenter for an asset balancesheet account for period 1.But actually when i goto 2KEE or GLPCT table the amount is rs