My computer can`t compile

When I tried to compile my source code, command prompt showed following massage : " `javac` is not recognised as an internal or external command, operable program or batch file." Please anyone, tell me whats going on.

You need to supply the complete path to the javac.exe program (or edit the PATH variable on your computer - type 'SET' on the command line and you'll see what I mean. This variable needs to contain the directory which houses the compiler).

Similar Messages

  • I can't compile this, why?

    I do not possess any means of compiling any .java file that imports javax.* or anything J2SE-related, thus, I have to compile it remotely on a remote host (www.myjavaserver.com), however, for some reason this file will not compile but will not produce any errors, warnings, or any display of any kind - but no .class file is ever found.
    import java.io.*, java.util.*, javax.servlet.*, javax.servlet.http.*;
    * Borrowed from http://forum.java.sun.com/thread.jspa?threadID=703076
    * @access public
    * @author Phil Powell
    public class RequestParameterResetter extends HttpServletRequestWrapper {
        private HttpservletRequest origRequest;
        private Map<String, String> parameterMap;
        public RequestParameterResetter(HttpServletRequest request) {
            super(request);
            origRequest = request;
            parameterMap = new HashMap<String,String>();
        public String setParameter(String key, String value) {
            String oldValue = parameterMap.put(key,value);
            if (oldValue == null) oldValue = origRequest.getParameter(key);
            return oldValue;
        public String getParameter(String key) {
            String value = parameterMap.get(key);
            if (value == null) value = origRequest.getParameter(key);
            return value;
    }Could someone tell me what I'm missing in order for this to properly compile?
    Thanx
    Phil

    Sorry I can't do that, as much as I want to. My
    computer is very ancient and has too little memory to
    run any kind of server program, especially a
    Java-related one. I tried with Eclipse a while back
    (2 years ago and never figured it out, way too hard
    in spite of my PC's inability to interact with it)
    nearly destroyed my machine with it.You actually don't need to run any server. You just need to get the .JAR files (you should try to get the same server and version that you deploy on ... but that may not be possible). Then you put them in your Java Classpath, and you will be able to compile (from command line, or whatever). You could then un-install the server if you wanted to...
    >
    That means I can only compile J2SE formatted classes
    remotelyThat would be J2EE. J2SE is the standard edition, where you get the compiler, java.lang.String, java.util.Date, and all the rest of the core stuff. J2EE is the enterprise edition for getting the javax.servlet packages (among others).
    More comments on how you might change added as comments in the code...
    on www.myjavaserver.com - provided it is
    working.
    I made the changes necessary and still can't compile
    it!
    package ppowell;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    * Borrowed from
    m
    http://forum.java.sun.com/thread.jspa?threadID=703076
    * @version JSDK 1.2
    The class is a Java 5.0 class, it won't compile to JSDK 1.2.
    Ask myjavaserver.com to see how you can get ahold of the error logs so you can see what messages are generated.
    * @author Phil Powell
    * @package PPOWELL
    public class RequestParameterResetter extends
    HttpServletRequestWrapper {
    private HttpServletRequest origRequest;
    private Map<String, String> parameterMap;//if you want to use non JSE 5.0, then this line should be:
    //        private Map parameterMap;
    >
    public
    blic RequestParameterResetter(HttpServletRequest
    request) {
    super(request);
    origRequest = request;
    parameterMap = new HashMap<String,String>();//if you want to use non JSE 5.0, then this line should be:
    //            parameterMap = new HashMap();
    public String setParameter(String key, String
    ring value) {
    String oldValue = parameterMap.put(key,value);//if you want to use non JSE 5.0, then this line should be:
    //        String oldValue = (String) parameterMap.put(key,value);
    if (oldValue == null) oldValue = origRequest.getParameter(key);
    return oldValue;
    public String getParameter(String key) {
    String value = parameterMap.get(key);//if you want to use non JSE 5.0, then this line should be:
    //            String value = (String)parameterMap.get(key);
    if (value == null) value =
    value = origRequest.getParameter(key);
    return value;

  • I can't compile applets

    Hi. I am very new to JAVA. (I just downloaded the compiler last night.)
    I really need help. It seems anything that is suposed to be an applet, I can't compile. I can't even compile the example applet for the "Hello World!" program in the "First Cup of Java" section!!!
    I've followed the instructions as I'm told, and keep getting this:
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
    I can however compile applications. WHAT IS GOING ON!
    Please help me.
    ~Bewildered

    Hi - I just learning Java and think I can help (at least i'll try).
    Save all you work on your desktop:
    Start Notepad
    type the following:
    Programmer: Type Your Name
    Date: Type whatever date it is
    Program: Simply Type the item in between brackets, without brackets: (Test1)
    import java.applet.*;
    import java.awt.*;
    public class Test1Applet extends Applet
    public void paint(Graphics g)
    g.drawString("I hope I get an applet on my screen!",15, 30);
    ...And Save As: Test1Applet.java - MAKE SURE YOUR ON YOUR DESKTOP
    Then go to File, New (Still using the Notepad application).
    Type:
    <Applet Code = "Test1Applet.java" Width = 400 Height = 200>
    </Applet>
    Then Save As: Test1Applet.html - MAKE SURE YOUR ON YOUR DESKTOP
    Finally go to the console mode... otherwise known as the Command Prompt. You can go to Start Button on the statusbar click on "Run", type cmd and hit enter.
    Once there you need to type: path = OK...At this time you must locate the complete path/drive where you downloaded the Java packages. Once you locate the entire drive (exam: c:\jbuilder3\java\bin) you must type in: path = drive you put the jbuilder,etc, etc in and hit enter.
    You shouldn't see anything, but just another line waiting for you to enter something. That something you must type is: javac
    Javac tell the os to call on Java language. You know get ready to compile. You'll then see a whole bunch of stuff, don't worry it simply computer veribage.
    If no errors have occurred you then type:cd and drag and drop one of the files you saved to the desktop. Before you hit the enter key make sure to remove the file name and then hit enter.
    Then you must type: javac Test1Applet.java and hit enter
    Finally you must type: appletviewer Test1Applet.html and hit enter.
    You should get an applet on your computer. Let me know how it turns out or whether I confused you even more.

  • Intel-hda no sound out of speakers. Can't compile alsa cvs. 1420n Dell

    Hello!
          I'm somewhat new to Archlinux. I am trying to get my intel-hda card to work. I have a Dell inspiron 1420n laptop. Sound will come out of speakers if I plug them into the front headphone jack, but will not come out of the built in speakers on the laptop. I found this forum thread http://bbs.archlinux.org/viewtopic.php?id=34420 and they seemed to have fixed the problem, but I can't compile alsa. The drivers compiled fine, but alsa-lib will not. I get the following errors:
    python.c:962: error: 'struct python_priv' has no member named 'py_mdict'
    python.c:962: warning: implicit declaration of function 'PyModule_GetDict'
    python.c:963: warning: implicit declaration of function 'PyString_FromString'
    python.c:965: warning: implicit declaration of function 'PyDict_SetItemString'
    python.c:972: warning: implicit declaration of function 'PyModule_AddObject'
    python.c:972: error: expected expression before ')' token
    python.c:973: error: expected expression before ')' token
    python.c:984: error: 'struct python_priv' has no member named 'py_mixer'
    python.c:991: warning: implicit declaration of function 'PyRun_FileEx'
    python.c:991: error: 'Py_file_input' undeclared (first use in this function)
    python.c:995: error: 'struct python_priv' has no member named 'py_event_func'
    python.c:996: error: 'struct python_priv' has no member named 'py_event_func'
    make[3]: *** [python.lo] Error 1
    make[3]: Leaving directory `/home/kevin/alsacvs/alsa-lib/modules/mixer/simple'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/kevin/alsacvs/alsa-lib/modules/mixer'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/kevin/alsacvs/alsa-lib/modules'
    make: *** [all-recursive] Error 1
    I tried finding out if I was missing a python library, but I can't seem to find out any information anywhere. Please help me I love this distro! Everything is all setup besides this pesky audio problem BTW I am in the audio group. Thanks!!

    Yeah your right, it very much is. Well, this lappy is the one of the models Dell are selling pre-installed with Ubuntu. I ditched Ubuntu for Arch because I liked it so much on my desktop computer I replaced with this laptop. But in Ubuntu the sound did work (although poor quality). The only thing I had to configure was the video acceleration because it seems all distros don't have support for the i965 (X3100 graphics) chipset yet (got it in Arch with testing packages). Sabayon is the only one I found that claims to support it fully, but I want to use arch. I know my problem can be fixed easily. Everyone else has fixed it, but I think I'm missing something small...

  • ITunes + Vista = my computer can no longer see my DVDrw drive...

    I just downloaded iTunes 7.6.2.9 onto my Dell Inspiron E1705 - and when I restart my computer, the computer can no longer see my Optical drive (DVDrw). I contacted Dell support, and they changed something in the regedit limits or something(I'm not a techy lol), and my optical drive was back.
    But the next day when I opened iTunes I got a message that says:
    "Warning! The registry settings used by the iTunes drivers for importing and burning CDs and DVDs are missing. This can happen as a result of installing other CD burning software. Please reinstall iTunes."
    So I reinstalled iTunes.
    I restarted my computer, and it could no longer see my optical drive AGAIN. My DVDrw drive gets an error that says "This device cannot start (Code 10)." When I check for solutions it says "Could not load driver software."
    I go back to Dell support and tell them my optical drive isn't working. They do the exact same thing to fix it (deleting some limit with regedit) and it works. I open iTunes, and I get the iTunes Warning (Setup Assistant Error).
    I asked the Dell tech what the deal was, and he said iTunes isn't compatible at all with Vista.
    But according to Mac's website it is...
    Anyone know what's going on?!?!

    I am having the exact same behavior as xhollysue!
    It goes like this:
    1. Install ITunes, lose optical disk drives hardware (they don't even show up in Windows Explorer).
    2. Use RegEdit to disable Upper Filters at HKEYLOCALMACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE1 0318}, optical drive hardware re-appears.
    3. iTunes requires a re-install to permit CD burning, and your back to square one.
    I got the above fix NOT from a Dell technician, but, instead, from a Microsoft technician, which cost me $70.
    I would strongly urge Apple to research this issue and come up with a more reasonable workaround since (1) the iPhone is being adopted by many traditional MS users and the use of iTunes is an integral part of the iPhone technology architecture; (2) iPhone 3G is just now shipping and will bring even more into the Apple camp; and (3) iTunes is clearly a better media player.
    Come on Apple. Let's get some enthusiam and take advantage of this opportunity!

  • Help! (please :) I have a 1GB iPod that's loaded with music for which my computer can no longer find the original files-due to external mass storage crash during recent move. Is there a way to import iPod music back into my iTunes library on computer???

    Help! (please I have a 1GB iPod that's loaded with music for which my computer can no longer find the original files-due to external mass storage crash during recent move. Is there a way to import iPod music back into my iTunes library on computer???

    Or If there is any purchased music then you can try to transfer purchases
    http://support.apple.com/kb/ht1848
    If you're in the US you can reload purchased music
    http://support.apple.com/kb/ht2519

  • HT1660 I want to put my itunes library onto new computer, can i just sign in and bring up the library without having to back it up and reinstall it all

    I want to transfer my itunes library to a new computer can i just sign into my apple account and transfer all the tunes or do i have to back it all up and reinstall?

    I want to transfer my itunes library to a new computer can i just sign into my apple account and transfer all the tunes or do i have to back it all up and reinstall?

  • How do you encript voice memos in the itunes library so no one else at the computer can listen to them?

    How do you encrypt voice memos in the itunes library so no one else at your computer can listen to them?

    iTunes has no ability to encrypt anything. You'll need to search for encryption software appropriate for whatever type of computer you have. Or, you could set up separate accounts for other users of your computer and password your account.

  • I AM TRYING TO FORWARD TX MESSAGES TO MY COMPUTER, CAN THIS BE DONE?

    I AM TRYING TO FORWARD TX MESSAGES TO MY COMPUTER, CAN THIS BE DONE?

    You should be able to forward them to your e-mail, or you could use a text backup app from Google Play that will backup your texts and e-mail them to you (SMS Backup and Restore is an example).

  • HT1151 I have my iTunes library on an external hard drive that was connected to a PC, now I want to connect to my new iMac and load the iTunes library onto that computer, can I do that?

    I have my iTunes library on an external hard drive that was connected to a PC, now I would like to connect that hard drive my new iMac and load the iTunes library onto that computer, can I do that?  Looking for a solution that keeps me from re-ripping my CD collection.

    Here are the official Apple Support instructions:
    http://support.apple.com/kb/HT4527
    Ciao.

  • I just bought a new computer, can i transfer itunes from one computer to another computer with all my music

    i just bought a new computer, can i transfer itunes from my old computer to my new computer with my music in it or do i have to sync all my cds again

    Hi,
    A painless way to do it ...
    From your Old Computer... Copy your ENTIRE iTunes FOLDER to an External Drive... and then from the External Drive to your New Computer..
    Backup iTunes to an External Drive
    http://support.apple.com/kb/HT1751
    Moving iTunes Media Folder  (Windows)
    http://support.apple.com/kb/HT1364
    An Added Bonus is that you will then have a Backup of iTunes...

  • When i try to watch one of my movies in the cloud it says "this computer is already associated with an apple ID.You can download past purchases on this computer with just one Apple ID every 90 days. This computer can be used with a different Apple ID"

    my mom used my computer to sign into her itunes account and then i logged back into mine and tried to watch one of my movies and it said "this computer is already associated with an apple ID.You can download past purchases on this computer with just one Apple ID every 90 days. This computer can be used with a different Apple ID in 68 days"  What do i do?

    You do what it says.

  • I just bought an HD movie on iTunes.  Yesterday, I watched all but twenty minutes of it on my Dell laptop.  Today, I tried to open it on the same laptop, and it told me my computer can't play HD movies, that I have to view it in SD.  What is happening?

    I just bought an HD movie on iTunes.  Yesterday, I watched all but twenty minutes of it on my Dell laptop.  Today, I tried to open it on the same laptop, and it told me my computer can't play HD movies, that I have to view it in SD.  The error message said that my computer didn't have the capabilities, but I have several other HD movies that I have always and can still watch without issue.  Just this one doesn't work.  Why, and do you know how to fix this?

    Apparently the display is required to be HDCP compatible to view HD movies in iTunes. My display isn't so this is my problem. I contacted Apple support and they have agreed to credit me for the HD movie and I have now downloaded the SD version.

  • I have two versions of Lightroom installed on my computer, can I uninstall the older version?

    While looking at the "Programs and Features" folder on my Windows 7 computer I discovered that I have two versions of Adobe Lightroom installed on my system. One is Lightroom 5.2, installed on 9/19/2013, and the other is Adobe Photoshop Lightroom 5.5 64-bit, installed on 7/5/2014
      - Can I uninstall the older version?
      - Will uninstalling the older version cause any problems with the newer version?
      - If yes to either question, is there anything I need to do before doing the uninstall (i.e. deactivating, etc.)
    Any advice on how to correct this problem is gratefully appreciated.
    PS; I have the same issue with Muse CC. See: I have two versions of Muse CC installed on my computer, can I uninstall the older version?

    Jim,
    I thought it was odd that I had two versions of Lightroom installed as well. I have been able to track the issue back to an apparent "bug" in the Lightroom 5.2 update that installed a second version of Lightroom in addition to updating the existing version on my computers. At the time, I posted about it at Lightroom 5 installed twice on my laptop. While I never got an answer to my question, which was "Is this normal?" I did hear from others in the forum the experienced the same problem and had the same question. As time passed, later releases updated one of the two installations, but did not effect the second. Hence, two different versions of Lightroom 5 installed on the same computer.
    Uninstalling the older version solved the problem. Thanks

  • On how many computer can I install Premiere Elements (one licens)

    On how many computer can I install Premiere Elements (one licens)

    number
    What are the computer operating systems involved? Are you installing from installation files (from online download purchase) or from installation disc
    (from purchase in boxed packaging)? Answers to those questions would probably get you the best possible answer to your question.
    If installation files.....
    You are not going to be able to install a Premiere Elements Windows purchased serial number on a Mac computer or a Premiere Elements Mac
    purchased serial number on a Windows computer.
    If installation discs...
    Box packaging typically comes with two installation discs....one for Windows and one for Mac. In this type of situation, typically you use one
    serial number for them both. If that is the case, then the following applies...
    Adobe allows you to use the same purchased activated serial number on no more than 2 of your computers. And, you do not use them at the same time.
    If you are dealing with two computers with the same operating system, then you should be able to use that same purchased serial number for that operating system on no more than 2 of your computers. Again, you do not use them at the same time.
    Please let us know if any questions or need clarification.
    Thanks.
    ATR

Maybe you are looking for

  • Setting up iChat for Yahoo

    Okay I must be missing something because I don't think I'm setting this up right. I registered with Jabber and have an account. Now what are the steps for setting up yahoo and using yahoo buddies? Please can someone explain it in simple terms because

  • Internal Drives Disappeared- Help

    G4/1.0 DP MDD with four drives filling the internal bays. The two in the upper bay, one with the OS, show up fine. The two in the lower bay, under the DVD drive, which were showing up fine after installing 10.4.7 about ten days ago have suddenly disa

  • What generation is my iPod?

    I got my iPod Touch in the summer of 2010 - it is V 4.3.5 - trying to figure out the generation so I can get an otterbox for it... our son has taken over custody of this device. Thanks!

  • Doubt in INSTEAD of trigger

    Hi all,   This is very basic doubt in Trigger. i create 2 tables: create table Employeedetails1 EmployeeID varchar(4) primary key, Employeename varchar(10), Deptname varchar(5) create table Temp_Emploeeydetails1 EmployeeID varchar(4), Employeename va

  • Where is the Profiles folder located on a Windows 8 machine?

    I have to transfer my Thunderbird LOCAL FOLDERS from a Windows XP machine to a Windows 8.1 machine. How to do that?