Recompile with -deprecation for details.

when i am compiling my code i am getting error like this:
abc.java uses or overrides a deprecated API.
Recompile with -deprecation for details.
pls anyone help me about this

I suggest you try searching for answers befor posting a question
http://onesearch.sun.com/search/onesearch/index.jsp?charset=utf-8&qt=+%22-deprecation%22&rf=0&rt=1&nh=10&cs=0&y=7&x=7&col=developer-forums

Similar Messages

  • What does this mean: -deprecation for details?

    hello,i am having a problem viewing this file. whenever a compile it i get this message:
    NOTE: Hint1.java uses or overrides a deprecated API.
    NOTE: Recompile with -deprecation for details.
    can anyone help me what this means? thanks.
    here is the file:
    import java.awt.*;
    import java.applet.Applet;
    public class Hint1 extends Applet implements Runnable{
    int xPos=2;
    Image img;
    Thread hint1Thread;
    public void init(){
    start();
    }// end of method init
    public void moveCar(Graphics g){
    g.setColor(Color.black);
    g.fillRect(xPos,50,20,30);
    }// end of method moveCar
    public void update(Graphics g){
    //Captures the graphics image area of 200x200 pixels
    img = createImage(200,200);
    Graphics gx = img.getGraphics();
    moveCar(gx);
    //Draws the image
    g.drawImage(img,0,0,null);
    }// end of method update
    public void run(){
    while(true){
    xPos+=2;
    if(xPos>198)xPos=2;
    try{
    Thread.sleep(50);
    }catch(InterruptedException e){}
    repaint();
    }// end of method run
    public void start(){
    hint1Thread = new Thread(this);
    hint1Thread.start();
    }// end of method start
    public void stop(){
    hint1Thread.stop();
    }// end of method stop
    }// end of class Hint1[html]
    <HTML>
    HEAD>
    <TITLE>Hint1 </TITLE>
    </HEAD>
    <BODY>
    <applet code="Hint1.class" width=200 height=200>
    </applet>
    </BODY>
    </HTML>
    [html]

    I believ this occured 2 years ago in playoffs. Maybe more. Forget, but the Leafs eliminated Flyers from POffs that year. The Flyers I also don't remember (the one knocked unconscious) but the one that was chasing him around was ... damn ... believe the last name began with an M, he is on the Rangers now... McArthy, thats right! Sandy Mcarthy.
    As for Tucker. You are right. Every team needs a guy like him. Flyers have always had 1 or 2. Holding stick, flopping, and stuff. I really don't mind that, everybody does it... I even like Tucker from that point of view (though I hate watching my team fall victem to him :P).
    If Quinn hates that style of play, why do the Leafs always rank in top 5 of penalties (the top this year) and among the top in fighting as well? If he wanted it stoppped it would stop. In fact he pushes for it, which you can see by the line match-ups he forces on ice. Also, he does complain a lot, but this is also a tactic. He complains to refs so they watch the other team more closely and will call penalties more on the other team. He does it well. (He is not the only one, Bowman used to do it, and Liniux (sp? does it for the Penquins...).

  • Recompile with -deprecation

    When compiling a tetris program I received the following note at the end of all the errors. What is "-depriociation"? and how can I compile useing it?
    Thanks in advance,
    David
    "Note: Some input files use or override a deprecated API.
    Note: Recompile with -deprecation for details.
    21 errors
    "

    This means that one of the methods you are using has been replaced with a new method. To see which when use the -deprecation flag on javac, i.e.
    javac -deprecation YourClassName.java

  • EJB Stateless Session Bean how to recompile with "-deprecation" 10.1.2.0.2

    I have a EJB SLSB and I can deploy it to OC4J 10.1.2.0.2. However upon deployment OC4J is telling me:
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -deprecation for detailsCan somebody tell me how I can make OC4J recompile EJBs with -deprecation set to true?

    I suppose you'd be the first to start screaming at
    them for all the bugs in the 10.1.3 production
    release, if the Oracle guys concentrated more on
    getting something out quickly rather than providing a
    reliable product.C'mon, the only reason I'm pushing this is the fact that from the (OTN) website it looks like 10.1.3 has been around for years, whereas the truth is that the actual production date is unknown. What I am experiencing around me is Oracle loosing credibility regarding Java/J2EE with their direct competitors already having J2EE 1.4 support. The project I'm currently involved in was forced to use 10.1.2.0.2 since it is the last production release of the Oracle Application Server. This is J2EE 1.3 technology which is fairly old stuff.
    And... yes I'm amongst other things a developer and well aware of the challenges that come with creating software. Although in our projects we like to keep a relatively clear scope and not cramp as much features as possible in a version, just to satisfy the checklists :-)

  • Recompile with -Xlint :deprecation for details

    hi, i'm new in java
    i had tried to write one simple java applet, but when
    i compiled this message was come out:
    c:> javac applet1.java
    Note:applet1.java uses or overrides a depreciated API
    Note: recompile with -Xlint :deprecation for details

    hi, i'm new in java
    i had tried to write one simple java applet, but
    when
    i compiled this message was come out:
    c:> javac applet1.java
    Note:applet1.java uses or overrides a depreciated
    API
    Note: recompile with -Xlint :deprecation for detailsThis is a warning that means that a class or method that you are using in your code is deprecated. A class or a method can be deprecated for several reasons:
    e.g. the class/method could contain an error which makes the code unstable, the class/method could be written in a non standard way, the class/method could have been replaced by a more efficient/better/improved class/method
    The deprecation message is only a warning. The code will compile even when deprecated. However, most code is deprecated for a reason, so you should try to find out what the substitution is (if one exists).
    To find out what the problem is, the java compiler suggests you recompile using -Xlint: deprecation.
    So instead of compiling using
    javac YourClass.java
    type
    javac YourClass.java -Xlint:deprecation
    You should get a message such as:
    C:\Jenjava\Test\PacMan.java:56: warning: [deprecation] isFocusTraversable() in java.awt.Component has been deprecated
         public boolean isFocusTraversable(){
    Look up the offending method in the API at http://java.sun.com/j2se/1.5.0/docs/api/
    It says:
    isFocusTraversable
    @Deprecated
    public boolean isFocusTraversable()Deprecated. As of 1.4, replaced by isFocusable().
    So, to get rid of the warning (and use the current method) we replace the isFocusTraversable() with isFocusable().
    Make sense?
    :) jen

  • Code overrides deprecated API...recompile with

    Hi,
    Need help compiling SampleProgram(see code below).
    (using JDK 1.3.1_06. and JCreator 2.5 build 8)
    The following code(see below) compiles with an error:
    "Note: C:\Documents and Settings\Alex1\My
    Documents\Alex Files\My Java\Lesson
    2\SampleProgram.java uses or overrides a deprecated
    API.
    Note: Recompile with -deprecation for details.
    Process completed."
    How can I change to make it work? Please help/advise.
    Alex
    CODE below:
    import java.awt.*;
    import javax.swing.*;
    public class SampleProgram
    static JFrame f1;
    static JPanel p1;
    JButton b1, b2;
    SampleProgram()
         p1 = new JPanel();
         b1 = new JButton("Submit");
         b2 = new JButton();
    b2.setLabel("Cancel");
    p1.add(b1);
    p1.add(b2);
    public static void main(String args[])
         f1 = new JFrame("Sample Application");
         f1.getContentPane().add(p1);
         f1.setSize(300,300);

    Compile the progam this way to show u where the deprecation is.
    javac -deprecation SampleProgram.java
    This show that button.setLabel("Cancel");
    has been deprecated.
    Why don't you do it just the way you set the label for the submit button.
    That's like;
    b2 = new JButton("Cancel");
    By the way programs runs fine with the deprecation, its not an error.

  • Recompile with -Xlint:deprecation, whaat is it?

    Hi, all!
    When I'm compiling a prgm, I get this note: Recompile with Xlint:deprecation for details.
    buttons.java uses or overrides a deprecated API.
    I don't know what is it, and what does it prompt me to do.
    Your help is highly appreciated.

    An API you are using has been deprecated ^1^ (should no longer be used, for example Thread.stop ^2^ has been depricated as it is not safe to use).
    Compiling with "Xlint:deprecation" will tell you what you are using, you can then look that up in the API to tell you what you need to do instead.
    ^1^ http://en.wikipedia.org/wiki/Deprecation
    ^2^ http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Thread.html#stop()

  • User defined function in PI 7.1 compilation error "Recompile with -Xlint"

    Hi All,
    I have a user defined function in PI 7.1 .,which is throwing the following error.
    Do i need to add any import statements like "import java.lang.String" in the beginning.
    It is unable to recognize the String methods used in the user defined function.
    E:\usr\sap\PID\DVEBMGS30\j2ee\cluster\server0\.\temp\classpath_resolver\Map02580a102a0911deb2b20019990eddfd\source\com\sap\xi\tf\_MM_C_to_Goods_.java:276:
    cannot find symbol
    symbol : method trim()
    location: class java.lang.Object
    if(container.getParameter("AdjustmentQuantity").trim().startsWith("-")){ ^
    Note: E:\usr\sap\PID\DVEBMGS30\j2ee\cluster\server0\.\temp\classpath_resolver\Map02580a102a0911deb2b20019990eddfd\source\com\sap\xi\tf\_MM_C_to_Goods_.java
    uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: E:\usr\sap\PID\DVEBMGS30\j2ee\cluster\server0\.\temp\classpath_resolver\Map02580a102a0911deb2b20019990eddfd\source\com\sap\xi\tf\_MM_C_to_Goods_.java
    uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    Any Help greatly appreciated..
    Collins

    container.getParameter() returns Object, not String.
    try following:
    String aq = (String) container.getParameter("AdjustmentQuantity");
    if(aq.trim().startsWith("-"))
    Regards
    Stefan

  • Recompile with Xlint Message

    hi, i'm new in java
    i had tried to write one simple java applet, but when
    i compiled this message was come out:
    c:> javac applet1.java
    Note:applet1.java uses or overrides a depreciated API
    Note: recompile with -Xlint :deprecation for details

    Hi , where are the instructions to follow ????
    I have got this error too .
    java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    I was using jdk1.4 before and my program works fine , but when I started using jdk1.5 I have go the above problem .u tell me how to fix it.

  • Recompile with -Xlint:unchecked for details???

    hi friends ,
    im using jdk-6-windows-i586. and apache-tomcat-5.5.26.
    In development phase i got the following error while compiling
    BeerExpert.java file. This is my model.
    Note: BeerExpert.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    But the class file is created. Is this any type of error or just warning msg.
    What is the meaning of this and what to do for it.
    Then I recompile the file with javac -Xlint BeerExpert.java or javac -Xlint:unchecked BeerExpert.java
    and the warning msg. appered as-
    BeerExpert.java:9: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.List
    brands.add("Jack Amber");
    error pos::: ^ error or warning position pointed by compiler
    4 warnings
    my source code is-
    package com.example.model;
    import java.util.*;
    public class BeerExpert {
    public List getBrands(String color) {
    List brands = new ArrayList();
    if(color.equals("amber")) {
    brands.add("Jack Amber");
    brands.add("Red Moose");
    else {
    brands.add("Jail Pale Ale");
    brands.add("Gout Stout");
    return(brands);
    Any suggestions what to do? Please..
    Thanx in advance.

    hi i have the same problem but my compiler is different
    it says note: stream.java uses or overrides depricated API
    recompile with XLINT:deprication for details
    @echo off
    :def
    color 0F
    :main
    cls
    title irans's Perfect Compiler
    echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    echo :: Welcome to the ultimate Serverbatch!
    echo ::
    echo :: Choose one of the options below by entering
    echo :: the corrensponding letter and pressing enter.
    echo ::
    echo :: Need a batch file created?
    echo :: http://www.Moparscape.org/smf.
    echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    echo :::: Main options:
    echo :::: com = Compile your server.
    echo :::: run = Run your server.
    echo :::: aur = Runs your server with autorestart.
    echo :::: bac = Backup your server files.
    echo ::::
    echo :::: Other options;
    echo :::: set = Change settings.
    echo :::: loc = Location list (co-ordinates)
    echo :::: upd = Updates
    echo :::: cmd = Command generator
    echo :::: cre = Credits
    echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    echo ::
    set /p mainc=:: Choice:
    if %mainc%==com goto com
    if %mainc%==run goto run
    if %mainc%==aur goto aur
    if %mainc%==bac goto bac
    if %mainc%==set goto set
    if %mainc%==loc goto loc
    if %mainc%==upd goto upd
    if %mainc%==cmd goto cmd
    if %mainc%==cre goto cre
    if %mainc%==COM goto com
    if %mainc%==RUN goto run
    if %mainc%==AUR goto aur
    if %mainc%==BAC goto bac
    if %mainc%==SET goto set
    if %mainc%==LOC goto loc
    if %mainc%==UPD goto upd
    if %mainc%==CMD goto cmd
    if %mainc%==CRE goto cre
    goto main
    :com
    cls
    title Compiling...
    echo :: Preparing for compile...
    echo :: Auto-setting envriomental variables...
    echo ::
    goto com2
    :com2
    title Compiling...
    echo :: Scanning for latest JDK version...
    echo ::
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_10\BIN" (GOTO COM10)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_09\BIN" (GOTO COM09)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_08\BIN" (GOTO COM08)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_07\BIN" (GOTO COM07)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_06\BIN" (GOTO COM06)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_05\BIN" (GOTO COM05)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_04\BIN" (GOTO COM04)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_03\BIN" (GOTO COM03)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_02\BIN" (GOTO COM02)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_01\BIN" (GOTO COM01)
    goto comerrorxxx
    :COM10
    echo :: Found JDK 1.6.0_10
    SET CLASSPATH=Files\Java\jdk1.6.0_10\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_10\bin
    echo :: Results:
    javac *.java
    echo :: Done!
    pause
    goto main
    :COM09
    echo :: Found JDK 1.6.0_09
    SET CLASSPATH=Files\Java\jdk1.6.0_09\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_09\bin
    echo :: Results:
    javac *.java
    echo :: Done!
    pause
    goto main
    :COM08
    echo :: Found JDK 1.6.0_08
    SET CLASSPATH=Files\Java\jdk1.6.0_08\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_08\bin
    echo :: Results:
    javac *.java
    echo :: Done!
    pause
    goto main
    :COM07
    echo :: Found JDK 1.6.0_07
    SET CLASSPATH=Files\Java\jdk1.6.0_07\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_07\bin
    echo :: Results:
    javac *.java
    echo :: Done!
    pause
    goto main
    :COM06
    echo :: Found JDK 1.6.0_06
    SET CLASSPATH=Files\Java\jdk1.6.0_06\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_06\bin
    echo :: Results:
    javac *.java
    echo :: Done!
    pause
    goto main
    :COM05
    echo :: Found JDK 1.6.0_05
    SET CLASSPATH=Files\Java\jdk1.6.0_05\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_05\bin
    echo :: Results:
    javac *.java
    echo :: Done!
    pause
    goto main
    :COM04
    echo :: Found JDK 1.6.0_04
    SET CLASSPATH=Files\Java\jdk1.6.0_04\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_04\bin
    echo :: Results:
    javac *.java
    echo :: Done!
    pause
    goto main
    :COM03
    echo :: Found JDK 1.6.0_03
    SET CLASSPATH=Files\Java\jdk1.6.0_03\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_03\bin
    echo :: Results:
    javac *.java
    echo :: Done!
    pause
    goto main
    :COM2
    echo :: Found JDK 1.6.0_02
    SET CLASSPATH=Files\Java\jdk1.6.0_02\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_02\bin
    echo :: Results:
    javac *.java
    echo :: Done!
    pause
    goto main
    :COM01
    echo :: Found JDK 1.6.0_01
    SET CLASSPATH=Files\Java\jdk1.6.0_01\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_01\bin
    echo :: Results:
    javac *.java
    echo :: Done!
    pause
    goto main
    :COMERRORXXX
    echo :: No version of JDK 1.6 was detected.wtf impossible
    pause
    goto main
    :run
    cls
    title Running Server...
    echo :: Port:
    echo :: 43594
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_10\BIN" (GOTO RUN10)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_09\BIN" (GOTO RUN09)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_08\BIN" (GOTO RUN08)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_07\BIN" (GOTO RUN07)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_06\BIN" (GOTO RUN06)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_05\BIN" (GOTO RUN05)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_04\BIN" (GOTO RUN04)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_03\BIN" (GOTO RUN03)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_02\BIN" (GOTO RUN02)
    IF EXIST "%programfiles%\JAVA\JDK1.6.0_01\BIN" (GOTO RUN01)
    :RUN10
    echo :: Running using JDK 1.6.0_10...
    SET CLASSPATH=Files\Java\jdk1.6.0_10\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_10\bin
    java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
    echo :: Failed!
    pause
    goto main
    :RUN09
    echo :: Running using JDK 1.6.0_09...
    SET CLASSPATH=Files\Java\jdk1.6.0_09\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_09\bin
    java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
    echo :: Failed!
    pause
    goto main
    :RUN08
    echo :: Running using JDK 1.6.0_08...
    SET CLASSPATH=Files\Java\jdk1.6.0_08\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_08\bin
    java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
    echo :: Failed!
    pause
    goto main
    :RUN07
    echo :: Running using JDK 1.6.0_07...
    SET CLASSPATH=Files\Java\jdk1.6.0_07\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_07\bin
    java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
    echo :: Failed!
    pause
    goto main
    :RUN06
    echo :: Running using JDK 1.6.0_06...
    SET CLASSPATH=Files\Java\jdk1.6.0_06\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_06\bin
    java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
    echo :: Failed!
    pause
    goto main
    :RUN05
    echo :: Running using JDK 1.6.0_05...
    SET CLASSPATH=Files\Java\jdk1.6.0_05\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_05\bin
    java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
    echo :: Failed!
    pause
    goto main
    :RUN04
    echo :: Running using JDK 1.6.0_04...
    SET CLASSPATH=Files\Java\jdk1.6.0_04\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_04\bin
    java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
    echo :: Failed!
    pause
    goto main
    :RUN03
    echo :: Running using JDK 1.6.0_03...
    SET CLASSPATH=Files\Java\jdk1.6.0_03\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_03\bin
    java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
    echo :: Failed!
    pause
    goto main
    :RUN02
    echo :: Running using JDK 1.6.0_02...
    SET CLASSPATH=Files\Java\jdk1.6.0_03\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_03\bin
    java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
    echo :: Failed!
    pause
    goto main
    :RUN01
    echo :: Running using JDK 1.6.0_01...
    SET CLASSPATH=Files\Java\jdk1.6.0_03\bin;%CLASSPATH%;
    SET PATH=C:\Program Files\Java\jdk1.6.0_03\bin
    java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
    echo :: Failed! Need JDK 1.6.0_xx
    pause
    cls
    goto main
    :bac
    :backup
    cls
    title Backing up files...
    echo :: Backing up files...
    if not exist Backup mkdir Backup
    if not exist Backup\characters mkdir Backup\characters
    if not exist Backup\connectedFrom mkdir Backup\connectedFrom
    if not exist Backup\data mkdir Backup\data
    if not exist Backup\flagged mkdir Backup\flagged
    if not exist Backup\logs mkdir Backup\logs
    if not exist Backup\moreinfo mkdir Backup\moreinfo
    if not exist Backup\savedGames mkdir Backup\savedGames
    Echo Starting Backup Copy
    copy /V /Y /A *.txt .\Backup\
    copy /V /Y /A *.java .\Backup\
    copy /V /Y /A *.class .\Backup\
    copy /V /Y /A *.cfg .\Backup\
    copy /V /Y /A *.bat .\Backup\
    copy /V /Y /A bans .\Backup\bans
    copy /V /Y /A characters .\Backup\characters
    copy /V /Y /A characters .\Backup\characters
    copy /V /Y /A connectedFrom .\Backup\connectedFrom
    copy /V /Y /A data .\Backup\data
    copy /V /Y /A flagged .\Backup\flagged
    copy /V /Y /A logs .\Backup\logs
    copy /V /Y /A moreinfo .\Backup\moreinfo
    copy /V /Y /A savedGames .\Backup\savedGames
    echo :: Done.
    pause
    cls
    goto main
    :set
    cls
    echo :: Enter one of the following to change background colour.
    echo :: B0 = Black
    echo :: B1 = Blue
    echo :: B2 = Green
    echo :: B3 = Cyan
    echo :: B4 = Red
    echo :: B5 = Purple
    echo :: B6 = Yellow
    echo :: B7 = White
    echo.
    echo :: Enter one of the following to change text colour.
    echo :: T0 = Black
    echo :: T1 = Blue
    echo :: T2 = Green
    echo :: T3 = Cyan
    echo :: T4 = Red
    echo :: T5 = Purple
    echo :: T6 = Yellow
    echo :: T7 = White
    set /p s=:: Choice:
    if %s%== B0 (set b=0)
    if %s%== B1 (set b=1)
    if %s%== B2 (set b=2)
    if %s%== B3 (set b=3)
    if %s%== B4 (set b=4)
    if %s%== B5 (set b=5)
    if %s%== B6 (set b=6)
    if %s%== B7 (set b=F)
    if %s%== T0 (set t=0)
    if %s%== T1 (set t=1)
    if %s%== T2 (set t=2)
    if %s%== T3 (set t=3)
    if %s%== T4 (set t=4)
    if %s%== T5 (set t=5)
    if %s%== T6 (set t=6)
    if %s%== T7 (set t=F)
    color %b%%t%
    pause
    cls
    goto main
    :loc
    cls
    echo :: Below is a list of locations with their coordinates.
    echo ::
    echo :: Varrock - 3210 3424
    echo :: Falador - 2964 3378
    echo :: Lumbridge - 3222 3218
    echo :: Camelot - 2757 3477
    echo :: East Ardougne 2662 3305
    echo :: West Ardougne 2529 3307
    echo :: Al Kharid 3293 3174
    echo :: Khalphite Lair 3226 3107
    echo :: Yannille 2606 3093
    echo :: Tutorial Island 3094 3107
    echo :: Barbarian Village 3082 3420
    echo :: Entrana 2834 3335
    echo :: Heroes Guild 2902 3510
    echo :: Rangers Guild 2658 3439
    echo :: Catherby 2813 3447
    echo :: Seers Village 2708 3492
    echo :: Fishing Guild 2603 3414
    echo :: Isafdar 2241 3238
    pause
    cls
    goto main
    :upd
    cls
    echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    echo :: Latest updates:
    echo ::
    echo :: 1) Added Location list.
    echo :: 2) Fixed backup commands.
    echo :: 3) Added settings option.
    echo :: 4) Fixed backup to cover more file types.
    echo :: 5) Added autorestarter. This was incredibly difficult for me to do.
    echo :: 6) Added command generator.
    echo :: 7) Auto-sets enviromental variables when compiling.
    echo :: 8) Released On Mopar Forums
    echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    pause
    cls
    goto main
    :cmd
    :Star
    Set /p CmdName=Command Input?
    Set /p RUSure=Are you sure you want the commands input: %CmdName%(yes,no)?
    If %RUSure%==no GOTO Star
    If not Exist CommandsFolder MD Commands Folder
    Echo else if(command.equalsignorecase("%CmdName%")) >> ".\Commands\%CmdName% Command.txt"
    Echo { >> ".\Commands\%CmdName% Command.txt"
    cls
    set /p AY=addItem(yes,no)?
    If %AY%==YES Goto addItem
    If %AY%==yes Goto addItem
    If %AY%==no Goto endCode
    If %AY%==NO Goto endCode
    :addItem
    cls
    set /p ID=ItemID?
    cls
    set /p Amount=Amount Of that Item?
    cls
    echo addItem(%ID%,%Amount%); >> ".\Commands\%CmdName% Command.txt"
    Set /P AT=Add item, add tele or finish command.(AI,T,End)
    If %AT%==ai GOTO addItem
    If %AT%==Ai GOTO addItem
    If %AT%==AI GOTO addItem
    If %AT%==aI GOTO addItem
    If %AT%==T GOTO Tele
    If %AT%==t GOTO Tele
    If %AT%==end GOTO endCode
    If %AT%==END GOTO endCode
    If %AT%==EnD GOTO endCode
    If %AT%==eNd GOTO endCode
    If %AT%==ENd GOTO endCode
    If %AT%==enD GOTO endCode
    if %AT%==End Goto endcode
    if %type%==* goto error
    echo.
    goto error
    :error
    cls
    echo Commands invalid. Only use commands from the menu.
    pause
    goto menu
    :endCode
    cls
    Echo } >> ".\Commands\%CmdName% Command.txt"
    Set /p Again=Make Another (yes, No)?
    If %Again%==yes GOTO Star
    If %Again%==no goto fin
    If %Again%==YES GOTO Star
    If %Again%==NO goto fin
    :Tele
    cls
    Set /P X=XCoord Tele?
    Set /P Y=YCoord Tele?
    Echo teleportToX = %X% >> ".\Commands\%CmdName% Command.txt"
    Echo teleportToY = %Y% >> ".\Commands\%CmdName% Command.txt"
    Set /P AT=addItem Or Another Tele(not Used In Same Command Usually(AI,T,End)
    If %AT%==ai GOTO addItem
    If %AT%==Ai GOTO addItem
    If %AT%==AI GOTO addItem
    If %AT%==aI GOTO addItem
    If %AT%==T GOTO Tele
    If %AT%==t GOTO Tele
    If %AT%==end GOTO endCode
    If %AT%==END GOTO endCode
    If %AT%==EnD GOTO endCode
    If %AT%==eNd GOTO endCode
    If %AT%==ENd GOTO endCode
    If %AT%==enD GOTO endCode
    if %AT%==End Goto endcode
    :fin
    echo Command creation complete. Find it in the commands folder.
    pause
    cls
    goto main
    :aur
    cls
    echo :: Have you already set up your autorestarter? (Y/N)
    set /p ans=:: Answer:
    if %ans%==y goto ansyes
    if %ans%==n goto ansno
    goto main
    :ansyes
    cls
    call autorestart.bat
    echo Not Found!
    pause
    goto main
    :ansno
    cls
    echo :: How long between auto restarts?
    set /p hlb=:: (10min, 12min, 14min, 16min, 18min, 20min):
    if %hlb%==10min goto min10
    if %hlb%==12min goto min12
    if %hlb%==14min goto min14
    if %hlb%==16min goto min16
    if %hlb%==18min goto min18
    if %hlb%==20min goto min20
    :min10
    del ProcessKiller.bat
    del Autorestart.bat
    del Runner.bat
    echo :start >> ProcessKiller.bat
    echo PING 1.1.1.1 -n 1 -w 600000 >> ProcessKiller.bat
    echo tskill java >> ProcessKiller.bat
    echo start call runner >> ProcessKiller.bat
    echo goto start >> ProcessKiller.bat
    echo java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server >> Runner.bat
    echo exit >> Runner.bat
    echo @echo off >> Autorestart.bat
    echo :start >> Autorestart.bat
    echo Start call "Runner.bat" >> Autorestart.bat
    echo call "ProcessKiller.bat" >> Autorestart.bat
    echo pause >> Autorestart.bat
    echo goto start >> Autorestart.bat
    goto donexd
    :min12
    del ProcessKiller.bat
    del Autorestart.bat
    del Runner.bat
    echo :start >> ProcessKiller.bat
    echo PING 1.1.1.1 -n 1 -w 720000 >> ProcessKiller.bat
    echo tskill java >> ProcessKiller.bat
    echo start call runner >> ProcessKiller.bat
    echo goto start >> ProcessKiller.bat
    echo java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server >> Runner.bat
    echo exit >> Runner.bat
    echo @echo off >> Autorestart.bat
    echo :start >> Autorestart.bat
    echo Start call "Runner.bat" >> Autorestart.bat
    echo call "ProcessKiller.bat" >> Autorestart.bat
    echo pause >> Autorestart.bat
    echo goto start >> Autorestart.bat
    goto donexd
    :min14
    del ProcessKiller.bat
    del Autorestart.bat
    del Runner.bat
    echo :start >> ProcessKiller.bat
    echo PING 1.1.1.1 -n 1 -w 840000 >> ProcessKiller.bat
    echo tskill java >> ProcessKiller.bat
    echo start call runner >> ProcessKiller.bat
    echo goto start >> ProcessKiller.bat
    echo java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server >> Runner.bat
    echo exit >> Runner.bat
    echo @echo off >> Autorestart.bat
    echo :start >> Autorestart.bat
    echo Start call "Runner.bat" >> Autorestart.bat
    echo call "ProcessKiller.bat" >> Autorestart.bat
    echo pause >> Autorestart.bat
    echo goto start >> Autorestart.bat
    goto donexd
    :min16
    del ProcessKiller.bat
    del Autorestart.bat
    del Runner.bat
    echo :start >> ProcessKiller.bat
    echo PING 1.1.1.1 -n 1 -w 960000 >> ProcessKiller.bat
    echo tskill java >> ProcessKiller.bat
    echo start call runner >> ProcessKiller.bat
    echo goto start >> ProcessKiller.bat
    echo java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server >> Runner.bat
    echo exit >> Runner.bat
    echo @echo off >> Autorestart.bat
    echo :start >> Autorestart.bat
    echo Start call "Runner.bat" >> Autorestart.bat
    echo call "ProcessKiller.bat" >> Autorestart.bat
    echo pause >> Autorestart.bat
    echo goto start >> Autorestart.bat
    goto donexd
    :min18
    del ProcessKiller.bat
    del Autorestart.bat
    del Runner.bat
    echo :start >> ProcessKiller.bat
    echo PING 1.1.1.1 -n 1 -w 1080000 >> ProcessKiller.bat
    echo tskill java >> ProcessKiller.bat
    echo start call runner >> ProcessKiller.bat
    echo goto start >> ProcessKiller.bat
    echo java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server >> Runner.bat
    echo exit >> Runner.bat
    echo @echo off >> Autorestart.bat
    echo :start >> Autorestart.bat
    echo Start call "Runner.bat" >> Autorestart.bat
    echo call "ProcessKiller.bat" >> Autorestart.bat
    echo pause >> Autorestart.bat
    echo goto start >> Autorestart.bat
    goto donexd
    :min20
    del ProcessKiller.bat
    del Autorestart.bat
    del Runner.bat
    echo :start >> ProcessKiller.bat
    echo PING 1.1.1.1 -n 1 -w 1200000 >> ProcessKiller.bat
    echo tskill java >> ProcessKiller.bat
    echo start call runner >> ProcessKiller.bat
    echo goto start >> ProcessKiller.bat
    echo java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server >> Runner.bat
    echo exit >> Runner.bat
    echo @echo off >> Autorestart.bat
    echo :start >> Autorestart.bat
    echo Start call "Runner.bat" >> Autorestart.bat
    echo call "ProcessKiller.bat" >> Autorestart.bat
    echo pause >> Autorestart.bat
    echo goto start >> Autorestart.bat
    goto donexd
    :donexd
    echo :: Autorestart configuration is complete. Choose 'y' at the menu.
    pause
    cls
    goto aur
    goto main
    :cre
    cls
    echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    echo :: Thanks you for using irans's ultimate Serverbatch!
    echo ::
    echo :: Thanks to:
    echo :: iran4life
    echo ::
    echo :: And you, if you have decided to use this
    echo :: instead of a different serverbatch (compiler).
    echo :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    pause
    cls
    goto main
    for some reason when i compile it says note: stream.java uses or overrides depricated API
    recompile with XLINT:deprication for details
    is there any errors ?
    help plz ive been trying for weeks and i went to ur link and still couldnt find...
    Edited by: imascape on Nov 5, 2008 8:18 PM

  • Compliation Error: Recompile with -Xlint:unchecked for details

    I am new to Java and am working through Sams Teach Yourself Java2 book. One of the examples gave me a compilation error. The problem code follows:
    C:\Java_Work\com\ramyam\ecommerce>java c Storefront.java
    Note: Storefront.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    package com.ramyam.ecommerce;
    import java.util.*;
    public class Storefront {
         private LinkedList catalog = new LinkedList();
         public void addItem(String id, String name, String price, String quant) {
              Item it = new Item(id, name, price, quant);
              catalog.add(it);
         public Item getItem(int i) {
              return (Item)catalog.get(i);
         public int getSize() {
              return catalog.size();
         public void sort() {
              Collections.sort(catalog);
    }I think it has something to do with the collections class being outdated. Does anyone have any idea how to fix this?
    Thanks in advance,
    georgina

    The book probably was published before Java had Generics. You can do as the error message says and recompile with the Xlint:unchecked option. Basically, you need to specify the type of objects you are putting into the LinkedList, something like      private LinkedList<Item> catalog = new LinkedList<Item>();This may cause you other errors.........

  • HT1918 i have recently moved from the uk to australia and cancelled my uk debit before the payment was processed for songs i bought in itunes. i have tried to edit my billing info with australian debit details but the site says 'invalid card' how can i fi

    i have recently moved from the uk to australia and cancelled my uk debit before the payment was processed for songs i bought in itunes. i have tried to edit my billing info with australian debit details but the site says 'invalid card' how can i fix this?

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Hello I'm trying to create Apple ID without success for a long time. And after checking with the bank details are correct with no success

    Hello I'm trying to create Apple ID without success for a long time.
    And after checking with the bank details are correct with no success

    If you choose US as your country while your bank details and credit card or PayPal account are from another country, then you will get an error not related to your details, such as 'the CVV number is incorrect', although it is correct.

  • My iphone after syncing with my mac is saying "64 items could not be synced, see i tunes for details" however I cant see what items are not synced as no obvious message. Where do I look for this info?

    My iphone after syncing with my mac is saying "64 items could not be synced, see i tunes for details" however I cant see what items are not synced as no obvious message. Where do I look for this info?

    Connect your phone to iTunes, then right-click on the name of your phone on the left sidebar and select Reset Warnings.  Then sync again and you should get a warning listing the problem files.

  • Performance Issue With Displaying Candidate Details for iRecruitment

    We are in EBS R12.1.3 when we trying to display the Candidate Details page in iRecruitment iRecruitment >vacancies>applicants> click on applicant>   the page spins for  a quite whille to show the results and some times we see the 500 errors..
    We are in R12.1.3 and also applied the  Patch.10427777:R12.IRC.B patch.. is there any  tunnign steps for the iRecruitment  page=/oracle/apps/irc/candidateSearch/webui/CmAplSrchPG

    You have already applied the patch mention in note: Performance Issue With Displaying Candidate Details Page in 12.1.3 (Doc ID 1293164.1)
    check this note also Performance Issue when Clicking on Candidate Name (Doc ID 1575164.1)
    thanks

Maybe you are looking for

  • Oracle 9i Install problem

    Hi I am installing (via vmware) Oracle 9i (9.2.0.1.0) on debian (kernel 2.4.18) the install went fine except for a few hitches which i fixed after a quick google search. However after the install the install window closed during the setup of services

  • Iphone 6 photo image compression/ quality loss

    iPhone 6 and 6 plus have pretty remarkable cameras. But oddly, Apple doesn't seem to want you to keep the high quality images and videos you take. As soon as you email let's say a 3.5 mb photo image, you are asked what size you want to email it in an

  • Oracle table statistics

    Dear All Members, Is there any way where we can check whether current statistics in table are outdated in oracle? In OTN i found using view "DBA_TAB_MODIFICATIONS" we can gather timestamps of statistics But can we use this to compare the quality of s

  • ATI bios editor

    There are sometimes questions about different vga bios-es and bios mods etc. Been scourging the net and came up with this: http://www.techpowerup.com/downloads/1648/TechPowerUp_Radeon_Bios_Editor_v1.22.html This is for all the ATi fans out there an w

  • Searching for numbers

    Hi! I'm having a problem when I search numbers in a text. For example I need to find texts that contains 10.060 (with point) and texts that contains 10060 (without point). Can you help me? Thanks! Regards,