Compile from the console

Can anyone explain why i cant compile a java program from the console? The message i got when i type in the command was' javac is not recognizable as an internal or external command and so on' . I surfed the Internet and learned that some settings need to bo done before the compiling can be done but so far the websites i surfed only teach about Window 95, 98, 2000 and NT. I am using window XP. Can anyone help?
Thanks

Go to Control Panel > System Properties > Advanced...
Look for a button called Environment variables. When you click it, look for PATH under System variables and edit it. Add your SDK's bin directory separated by a semicolon.
Also, refer here
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html

Similar Messages

  • Unable to start WebLogic 5.1 sp4 from the Console

    I installed WebLogic Server 5.1 Service Pack 4, as described by the
    release_notes_sp4.html document. I can successfully do the following using
    NT Workstation 4.0:
    1. Start weblogic from the command line using startWebLogic.cmd
    2. Start weblogic from the Start | Programs | WebLogic 5.1.0 | WebLogic
    Server menu.
    I can also start the console from the command line using startConsole.cmd.
    But, from the console, when I start weblogic, but it is only 5.1.0, not
    5.1.0 sp4
    When I start the console from the Start | Programs | WebLogic 5.1.0 |
    WebLogic Console menu and then try to start weblogic , I get the following
    error:
    Exception raised: java.lang.reflect.InvocationTargetException
    java.lang.reflect.InvocationTargetException: java.lang.NoSuchMethodError:
    weblogic.boot.ServerClassLoader: method
    getClassLoadNotify()Lweblogic/boot/ClassLoadNotify; not found
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
    a:140)
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
    a:112)
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
    a:104)
    at
    weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.<init>(Recurs
    iveReloadOnModifyClassLoader.java:53)
    at
    weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$SingleSlave.<
    init>(RecursiveReloadOnModifyClassLoader.java:149)
    at
    weblogic.servlet.internal.ServletContextImpl.setClassLoader(ServletContextIm
    pl.java:1392)
    at
    weblogic.servlet.internal.ServletContextImpl.<init>(ServletContextImpl.java:
    516)
    at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java,
    Compiled Code)
    at weblogic.t3.srvr.HttpServer.start(HttpServer.java:388)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    java.lang.NoSuchMethodError: weblogic.boot.ServerClassLoader: method
    getClassLoadNotify()Lweblogic/boot/ClassLoadNotify; not found
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
    a:140)
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
    a:112)
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
    a:104)
    at
    weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.<init>(Recurs
    iveReloadOnModifyClassLoader.java:53)
    at
    weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$SingleSlave.<
    init>(RecursiveReloadOnModifyClassLoader.java:149)
    at
    weblogic.servlet.internal.ServletContextImpl.setClassLoader(ServletContextIm
    pl.java:1392)
    at
    weblogic.servlet.internal.ServletContextImpl.<init>(ServletContextImpl.java:
    516)
    at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java,
    Compiled Code)
    at weblogic.t3.srvr.HttpServer.start(HttpServer.java:388)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    Any help would be appreciated.

    I am facing the same problem here Steven. Did you get any solution for that?
    Thanks
    Vishwajeet Lohakarey
    Yash Technologies Inc.
    [email protected]
    Steven R. Baturin <[email protected]> wrote in message
    news:[email protected]...
    I installed WebLogic Server 5.1 Service Pack 4, as described by the
    release_notes_sp4.html document. I can successfully do the followingusing
    NT Workstation 4.0:
    1. Start weblogic from the command line using startWebLogic.cmd
    2. Start weblogic from the Start | Programs | WebLogic 5.1.0 | WebLogic
    Server menu.
    I can also start the console from the command line using startConsole.cmd.
    But, from the console, when I start weblogic, but it is only 5.1.0, not
    5.1.0 sp4
    When I start the console from the Start | Programs | WebLogic 5.1.0 |
    WebLogic Console menu and then try to start weblogic , I get the following
    error:
    Exception raised: java.lang.reflect.InvocationTargetException
    java.lang.reflect.InvocationTargetException: java.lang.NoSuchMethodError:
    weblogic.boot.ServerClassLoader: method
    getClassLoadNotify()Lweblogic/boot/ClassLoadNotify; not found
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
    a:140)
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
    a:112)
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
    a:104)
    at
    weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.<init>(Recurs
    iveReloadOnModifyClassLoader.java:53)
    at
    weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$SingleSlave.<
    init>(RecursiveReloadOnModifyClassLoader.java:149)
    at
    weblogic.servlet.internal.ServletContextImpl.setClassLoader(ServletContextIm
    pl.java:1392)
    at
    weblogic.servlet.internal.ServletContextImpl.<init>(ServletContextImpl.java:
    516)
    at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java,
    Compiled Code)
    at weblogic.t3.srvr.HttpServer.start(HttpServer.java:388)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    java.lang.NoSuchMethodError: weblogic.boot.ServerClassLoader: method
    getClassLoadNotify()Lweblogic/boot/ClassLoadNotify; not found
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
    a:140)
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
    a:112)
    at
    weblogic.utils.classloaders.GenericClassLoader.<init>(GenericClassLoader.jav
    a:104)
    at
    weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.<init>(Recurs
    iveReloadOnModifyClassLoader.java:53)
    at
    weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$SingleSlave.<
    init>(RecursiveReloadOnModifyClassLoader.java:149)
    at
    weblogic.servlet.internal.ServletContextImpl.setClassLoader(ServletContextIm
    pl.java:1392)
    at
    weblogic.servlet.internal.ServletContextImpl.<init>(ServletContextImpl.java:
    516)
    at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java,
    Compiled Code)
    at weblogic.t3.srvr.HttpServer.start(HttpServer.java:388)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    Any help would be appreciated.

  • Reading a String from the Console.

    Hello,
    I am new to Java... I have to write a program which will read a long value from the console. Can somebody help me in this? or can i read it as a string and then convert to Long ? I prefer the second one as I am planning to convert this code to read a SOAP message... Can somebody help me or pint me to the right direction?
    Thanks,

    Reading it as a string and then parsing it (Long.parseLong(...)) is the way to do this.
    As far as converting to SOAP - slow down. If you're just getting started with java, you're going to be biting off a lot trying to tackle SOAP

  • Getting a 1809 error when trying to remote control PC from the Console.

    This is message i get when trying to remote view or remote control PC.....
    1809: An error has occurred while generating a session key for
    encryption.The remote session cannot be initiated. Contact Novell
    Techical Services and specify this code.

    This is for a 1807 error. My error is and 1809 error. Is there somewhere
    else to research on a 1809 error when trying to remote control PC from
    the Console?
    > Perhaps.................
    >
    > http://support.novell.com/techcenter/search/search.do?
    cmd=displayKC&docType=kc&externalId=10094808html&s liceId=&dialogID=2356487
    >
    > --
    > Craig Wilson
    > Novell Product Support Forum Sysop
    > Master CNE, MCSE 2003, CCNA
    >
    > Editor - http://www.ithowto.com
    >
    > (Seeking Full-Time Expert? Drop me a note :> )
    > <[email protected]> wrote in message
    > news:09i_e.2044$[email protected]..
    > > This is message i get when trying to remote view or remote control
    PC.....
    > >
    > >
    > > 1809: An error has occurred while generating a session key for
    > > encryption.The remote session cannot be initiated. Contact Novell
    > > Techical Services and specify this code.
    >
    >

  • Unable to start Meta-directory 5.1.1 from the console

    Installed DS5.2 patch2 (patchzip) fr
    Installed MD5.1.1
    Everything goes fine except :
    I can't start the join-engine or the utc from the console.
    When I start any of them the process starts but seems to hang in an unknown state.
    No log anywhere.
    The console still sees the processes as down.
    Any idea ?
    It seemed to work fine before applying DS52 patch2.
    Best regards,
    Vincent MAZARD

    Installed DS5.2 patch2 (patchzip) fr
    Installed MD5.1.1
    Everything goes fine except :
    I can't start the join-engine or the utc from the console.
    When I start any of them the process starts but seems to hang in an unknown state.
    No log anywhere.
    The console still sees the processes as down.
    Any idea ?
    It seemed to work fine before applying DS52 patch2.
    Best regards,
    Vincent MAZARD

  • Administring Top Orgnaizations from the Console

    Our LDAP structure consists of different Organizations under the LDAP root.
    From the console We are not able to see these Organizations and administer them.
    Do anyone know how we change the Console to read these organizations and treat them as realms as it used to do in previous versions of SAM

    Thanks for the reply, we were using AM 6.3 AND CONVERTED TO 7.1 into Realm mode which doesn't store realm data in an organization which is what we needed.
    We will re-install in Legacy mode which should give us our organizations again

  • Create domain from the console?

    Is the any way to create a new domain from the console? Any on-line
    documents?
    Thanks.
    Cheers - Wei

    This should be in the documentation for the management console by General
    availability.
    Michael Girdley
    BEA Systems Inc
    "Wei Guan" <[email protected]> wrote in message
    news:3a22bd13$[email protected]..
    Is the any way to create a new domain from the console? Any on-line
    documents?
    Thanks.
    Cheers - Wei

  • Please help : How to print a matrix from the console...

    Hi..
    Please help:
    How to print a matrix on the console , but i want to take all the input from the console.. like...
    if the matrix is of size...
    mxn
    where
    m : row
    n : column
    and the all the elements of the matrix from the console it self... .
    Please help...

    Thanks...
    I am able to print the elements of the array but i am not able to assign those values to the array ....
    How to do that...
    I just did a little change in my code...
    import java.util.Scanner;
    public class CreatingAMatrix {
        public static void main(String[] args) {
         // TODO Auto-generated method stub
         System.out.print("Enter the number of rows: ");
         Scanner scanner1 = new Scanner(System.in);
         int m = scanner1.nextInt();
         System.out.print("Enter the number of coulmns:");
         Scanner scanner2 = new Scanner(System.in);
         int n = scanner2.nextInt();
         System.out.println("The size of the matrix is : " +m+" x "+n );
         int[][] a = new int[100][100];
         for(int i=0;i<=m;i++)
             for(int j =0; j <= n; j++)
              Scanner scanner3 = new Scanner(System.in);
              int o = scanner3.nextInt();
             System.out.println();
         for(int i=0;i<=m;i++)
             for(int j =0; j <= n; j++)
              System.out.print(a[i][j] + "\t");
             System.out.println();
    }I am getting an output as this
    output:
    Enter the number of rows: 2
    Enter the number of coulmns:1
    The size of the matrix is : 2 x 1
    1
    2
    1
    2
    3
    5
    0     0     
    0     0     
    0     0     
    how should i assig those input values to my array..
    Please help

  • Help with getting input from the console

    Hey Experts , wish you are good ? .... i have a problem and wish you figure it out for me , well tell me how can store the input values in a text file and pass the file from the command line ? , i have compiled the program so well , but i could not using text file , thats the code :
    import java.util.Scanner ;
    class TestScanner {
    public static void main (String[] args) {
    Scanner scanner = new Scanner(System.in);
    System.out.print("Enter an interger : ");
    int intValue = scanner.nextInt();
    System.out.println(" You entered an interger " + intValue);
    System.out.print("Enter a double value : ");
    double doubleValue = scanner.nextDouble();
    System.out.println("You entered a double value " + doubleValue);
    System.out.print("Enter a string without space: ");
    String string = scanner.next();
    System.out.println("You entered the string " + string);
    }and i created a file with value like that :
    file name is input
    5
    23.55
    Java
    true
    i just want to know the correct order to compile it .
    thanks in advance

    The Java Tutorials: [_Basic I/O_|http://java.sun.com/docs/books/tutorial/essential/io/index.html]
    db

  • Problem with printing only 1 copy from the console on an HP photosmart 7760.

    When printing 4X6 borderless copies from a memory stick at the console the first picture correctly prints 1 copy but subsequent pictures show they are printing 1 of 2 copies. No matter how I set the number of copies this problem persists.
    I have tried to set the number of copies directly and also to the default setting. Neither works after the first picture.
    Any suggestions?
    **bleep** 

    Hello there! Welcome to the forums @UHBCDDP,
    I read about the printer issue you're having with it randomly printing out pages.
    I am really unsure of what could be causing the problem for sure, however, I have an idea that it could be related to the alignment of the unit itself. The steps I have are below and I'd suggest giving them a try to see if it helps!
    Try the steps from here: A 'Cartridge Problem,' 'Cartridge Failed,' or 'Incompatible Cartridge' Error Message Displays on the...
    I hope that helps! You can also try power resetting the printer and ensure the printer is plugged in directly to the wall outlet, avoiding power bars and surge protectors. This ensures the printer is receiving full power and may help greatly.
    Press the Power button to turn on the product.
    With the product turned on, disconnect the power cord from the rear of the product.
    Unplug the power cord from the wall outlet.
    Wait at least 15 seconds.
    Plug the power cord back into the wall outlet.
    Reconnect the power cord to the rear of the product.
    If the product does not turn on by itself, press the Power button to turn it on.
    If the troubleshooting does not help resolve your issue, I would then suggest calling HP's Technical Support to see about further options for you. If you are calling within North America, the number is 1-800-474-6836 and for all other regions: click here.
    Thank you for visiting and posting in the community, I hope you have a wonderful day
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • Adminserver does not start after deleting oim_server1 from the console

    Have deleted oim_server1 from weblogic console and. I wanted to reconfig oim but can't extend the domain anymore as OIM is greyed out.
    Please help:
    Can't start Adminserver anymore too:
    WARNING: Error registering the bulk operations MBean.
    java.lang.IllegalArgumentException: WorkManagerMBean 'OIMUIWorkManager' refers to a constraint or request class 'MaxThreadsConstraint-0' but they are deployed on targets that have no servers in common. Please deploy the mbeans so that they have at least one server in common.
    at weblogic.management.configuration.WorkManagerLegalHelper.validateTargets(WorkManagerLegalHelper.java:66)
    at weblogic.management.configuration.WorkManagerMBeanImpl.setMaxThreadsConstraint(WorkManagerMBeanImpl.java:487)
    at weblogic.management.configuration.WorkManagerMBeanImpl$9.resolveReference(WorkManagerMBeanImpl.java:468)
    at weblogic.descriptor.internal.ReferenceManager$UnresolvedReference.resolve(ReferenceManager.java:404)
    at weblogic.descriptor.internal.ReferenceManager.resolveReferences(ReferenceManager.java:296)
    at weblogic.descriptor.internal.DescriptorImpl.resolveReferences(DescriptorImpl.java:328)
    at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:334)
    at weblogic.management.provider.internal.EditAccessImpl.loadBeanTree(Edi
    THANKS!

    Try to boot the computer in Windows Safe mode with network support (press F8 on the boot screen) as a test to see if that helps.

  • Unable to connect to WSUS server from the console

    I am not able to connect to WSUS server from WSUS console any more suddenly! "please verify that IIS on the server is correctly configured and is running'. I find out that Windows Process Activation Service is stuck in starting.
    I killed it with taskkill command but I am not able to restart it. It gives 'Error 1053: the service did not respond to the start or control request in a timely fashion'.
    There are some suggestion online but I am not comfortable with those solutions, I prefer to be guided by Microsoft TechNet, thanks.
    Thang Mo

    Hi,
    are there any relevant entries in the system log viewer?
    If you find the answer of assistance please "Vote as Helpful"and/or "Mark as Answer" where applicable. This helps others to find solutions for there issues, and recognises contributions made to the community :)

  • Starting WLS from the console...

    Hello,
    when trying to start the WL server from within the WL console on
    my NT4, it seems like the console is trying to build a new classpath
    rather than using the one it was started with.
    This would be fine apart from the fact that it doesn't seem to
    be doing this correctly. I have built my environment using wlconfig.exe
    and the properties page in the console looks fine (i.e. all the
    jars and other bits and bobs are in place). The registry also (obviously)
    looks fine. However, the classpath used to start the server SHOULD
    be prepended by the value of HKEY_LOCAL_MACHINE/SOFTWARE/BEA/WL5.1/CLASSPATH
    but it isn't?? (As an aside, why call it classpath when it really
    only the classpath_prefix?)
    It also took me a while to find that there are two binaries used
    for starting the console: wlconsolew.exe and wlconsole.exe. wlconsolew.exe
    is what is run when you use the Start Menu and it blatantly ignores
    any settings in the registry. wlconsole.exe does this right but
    still manages to stuff up the building of the classpath for starting
    the server. Any VM settings in the registry are also ignored.
    Any comments? Has anyone managed to find a way around this (apart
    from the obvious, i.e. using scripts instead?)
    /Lars

    A partial solution might be the following. Make shortcuts in your programs folder to target the batch files in %TOMCAT_HOME%\bin.
    Then, all you need to do is select the shortcuts whenever you need to access the server.
    The command prompt window will still be visible, but this method saves some typing time.
    The next step is figuring out how to make Tomcat a Windows service so it runs in the background. I don't know how to do this.

  • How do I remove an unwanted server from the console window?

    Hi all, hope someone can help, as I'm rapidly running out of hair to pull out :-(
    I have one upstream server, set up perfectly on Windows Server 2012, and six downstream servers all running Windows Server 2008 R2 Enterprise. Five of my downstreams are set up and working as expected, but one is behaving a little strangely.
    Here is an example of one of my downstream servers which is configured correctly:
    Just showing the upstream server, as you would expect.
    Now here's my problem downstream server:
    As you can see, not only does it list the upstream server, as expected, it also shows itself as a server. I have tried right-clicking it and choosing 'Remove from Console', but it just comes back after closing and reopening the console.
    Any advice would be greatly appreciated,
    Carl...

    On all downstream servers, except ServerDOWN4 only the ServerUP01 is seen in the WSUS console. On ServerDOWN4, you can see ServerUP01 and ServerDOWN04 in the WSUS console.
    Is this normal?
    No, and the short answer here is that apparently the consoles were configured to connect to the wrong server, and on 'DOWN4', TWO servers were configured in the console.
    But here's a more significant question....
    Why, on WS2012 and WS2008R2 servers are you using the standalone console anyway? If you use
    SERVER MANAGER, which is the expected behavior, the *LOCAL* server will be automatically displayed.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • Unable to update descriptor from the console

    Hi,
    I have created some preference variables in my BPEL code and want to update them from the BPEL console but when I change the descriptor and click update descriptor button it changes to its default value. Can anybody help me on this, this is really urgent.

    Hi,
    any solution to this problem?
    I come across this time and time again. With no obvious pattern why this problem occurs.
    Now, for example, I have a process with about 20 preferences, I can update 15 of them, 5 of them remain stubbornly at their default values.
    Imagine wanting to test the process with different combinations of preference values... lots of joyful deployment ahead!
    Any ideas appreciated,
    Cheers,
    James

Maybe you are looking for

  • Repeat sending alerts in Solution Manager 7.1

    Hi All, When using CCMS, I can use ALM (alert management) tcodes ALRTCATDEF to repeat sending an alert from CCMS how many number of times as defined by me.  In solman 7.1, I could not find a parameter or configuration to do the same.  Does anyone kno

  • Can i order my pictures and creat albums via nokia...

    hi ,can i creat albums and put my pictures in albums in my phone 6720  with nokia pc suite?

  • Identifying message id based on TID

    HI, I want to find out message id based on a TID. I mean i want to get the message id for a particular TID. Is there any transaction that can display? Iam  using IDX5,giving the Transactionid but unable to get the message id to see the message conten

  • How to search for apps that will run on os 4.2

    How do ytou search for apps and things that will run on the older OS 4.2.1??????????

  • How to stop the 2nd screen processing from fristscreen

    Hi Friends, I have a problem in modulepool program, my user  wantsto display the information message in screen1 without calling the 2nd screen. for example. user give the some input to screen fields, the system compare the what ever given inputs in s