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

Similar Messages

  • 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.........

  • 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

  • -Xlint:unchecked for details

    Note: C:\Documents and Settings\voonkt\Desktop\Work\Project (06-01-05)\SendComponent.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    What kind of warning is this? What can I do to resolve it?

    First, I'm going to assume that you're compiling with java 1.5/ In that case, the warning indicates that not all of your code is typesafed. That is to say the java wants you to use generics in your source code. Compiling with the -Xlint flag will cause javac to show you where it thinks you should be using generics.
    Brent

  • 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

  • Compiler Warning: Recompile with -Xlint

    Note: C:\Documents and Settings\*\My Documents\InfixConvertor.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    Making a Infix to Postfix program. Doing some research, I understand that it does not need to be fixed, but I really wanna get rid of this. heres the code.
       import java.io.*;
       import java.util.*;
        public class InfixConvertor
       // initialize operator Stack
          private static Stack operatorS = new Stack();
           public static void main(String args[]) throws IOException
             String infix;
             Scanner in = new Scanner(System.in);
             System.out.println ("Enter a valid infix expression: ");
             infix = in.nextLine();
             System.out.println ("The Postfix expression is : " + IntoPostfix(infix));
       // method converts infix expression to postfix notation
           private static String IntoPostfix(String infix)
             StringTokenizer tokenizer = new StringTokenizer(infix);
          // divides the input into tokens for input
             String symbol, postfix = "";
             while (tokenizer.hasMoreTokens())
             // while there is input to be read
                symbol = tokenizer.nextToken();
             // if it's a number, add it to the string
                if (Character.isDigit(symbol.charAt(0)))
                   postfix = postfix + " " + (Integer.parseInt(symbol));
                else if (symbol.equals("("))
                // push "("
                   char operator = '(';
                   operatorS.push(operator);
                else if (symbol.equals(")"))
                // push everything back to "("
                   while (((Character)operatorS.peek()) != '(')
                      postfix = postfix + " " + operatorS.pop();
                   operatorS.pop();
                else
                // print operatorS occurring before it that have greater precedence
                   while (!operatorS.empty() && !(operatorS.peek()).equals("(")
                   && prec(symbol.charAt(0)) <= prec((Character)operatorS.peek()))
                      postfix = postfix + " " + operatorS.pop();
                   char operator = symbol.charAt(0);
                   operatorS.push(operator);
             while (!operatorS.empty())
                postfix = postfix + " " + operatorS.pop();
             return postfix;
       // method compares operators to establish precedence
           private static int prec(char x)
             if (x == '+' || x == '-')
                return 1;
             if (x == '*' || x == '/')
                return 2;
             return 0;
       }Please help me out. Thanks
    Julian

    You use "-Xlint:unchecked" as one of your command-line options. So instead of
    javac Thingy.javayou do this instead:
    javac -Xlint:unchecked Thingy.javaOf course if you already have several command-line options when you do your compiling, then you just need one more.

  • Compiling via XML file with Xlint:unchecked, JDK 1.5.0_05

    compiling 1.4.2_04 code with 1.5.0_05 using an Ant/Tomcat environment and get the following Notes:
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    added this to my XML file to try to compile with unchecked:
    <property name="compile.unchecked" value="true"/> <!-- added -->
    <target name="compile">
    <javac srcdir="${source.home}"
    destdir="${deploy.home}"
    debug="${compile.debug}"
    deprecation="${compile.deprecation}"
    unchecked="${compile.unchecked}" ><!-- added-->
    optimize="${compile.optimize}"/>
    </target>
    Now I get this build error:
    BUILD FAILED
    file:C:/.../my_Build.xml:71: The <javac> task doesn't support the "unchecked" attribute.
    This seems strange. Am I using unchecked incorrectly? This same code has <property name="compile.deprecation" value="true"/>, which functions and gives me more info on a few deprecated methods in the code, so I followed the same syntax.
    Any suggestions would be appreciated. Thanks

    Thank you - that did it.
    I am new to Java and am wondering if you can give me any clue as to what an "unchecked call" means? How do I go about making it a "checked call"? If it is a warning and not an error, does it really matter? Can you point me to a good reference (online or book)?
    This is the info I got on the xml file when I compiled with unchecked:
    warning: [unchecked] unchecked call to addElement(E) as a member of the raw type java.util.Vector
    [javac]                searchThreads.addElement(temp);
    This is the code it is looking at (mostly comments, but didn't want to strip them out):
    // Create a vector to hold all of the search threads. 1000 should be more than enough.
    Vector searchThreads = new Vector(1000);
    // Start spawning search threads until the server socket is found, or until 1000 threads have been created.
    while ((searchThreads.size() < 1000) && !found)
    // We need to check to see if we've connected to the right server by reading what the server sent back to us.
    //If it sent back the string "TM Server", then we're in the right place. If we get anything else, or we get nothing, then we need to keep looking.
    // We spawn a thread for each socket to save time, and as soon as one of the threads finds the right socket, it sets a flag telling us to stop looking.
    // Create and start the search thread
    PortFinder temp = new PortFinder(tmHostName, startPort);
    temp.start();
    // Add the search thread to the vector THIS IS THE UNCHECKED CALL
    searchThreads.addElement(temp);
    // Increment to the next port before looping
    startPort++;
    Thanks

  • 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: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()

  • Use Unchecked or unsafe operations: recompile with -Xlint

    hi all..
    I'm trying to create a GUI to select the necessary port to open. I got this code from JAVA cookbook:
    I'm using windows XP and JDK 1.6..
    import java.io.*;
    import javax.comm.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    public class PortChooser extends JDialog implements ItemListener {
    HashMap map = new HashMap();
    String selectedPortName;
    CommPortIdentifier selectedPortIdentifier;
    JComboBox serialPortsChoice;
    JComboBox parallelPortsChoice;
    JComboBox other;
    SerialPort ttya;
    JLabel choice;
    protected final int PAD = 5;
    public void itemStateChanged(ItemEvent e) {
    selectedPortName = (String)((JComboBox)e.getSource()).getSelectedItem();
    selectedPortIdentifier = (CommPortIdentifier)map.get(selectedPortName);
    choice.setText(selectedPortName);
    public String getSelectedName() {
    return selectedPortName;
    public CommPortIdentifier getSelectedIdentifier() {
    return selectedPortIdentifier;
    public static void main(String[] ap) {
    PortChooser c = new PortChooser(null);
    c.setVisible(true);// blocking wait
    System.out.println("You chose " + c.getSelectedName() +" (known by " + c.getSelectedIdentifier() + ").");
    System.exit(0);
    public PortChooser(JFrame parent) {
    super(parent, "Port Chooser", true);
    makeGUI();
    populate();
    finishGUI();
    protected void makeGUI() {
    Container cp = getContentPane();
    JPanel centerPanel = new JPanel();
    cp.add(BorderLayout.CENTER, centerPanel);
    centerPanel.setLayout(new GridLayout(0,2, PAD, PAD));
    centerPanel.add(new JLabel("Serial Ports", JLabel.RIGHT));
    serialPortsChoice = new JComboBox();
    centerPanel.add(serialPortsChoice);
    serialPortsChoice.setEnabled(false);
    centerPanel.add(new JLabel("Parallel Ports", JLabel.RIGHT));
    parallelPortsChoice = new JComboBox();
    centerPanel.add(parallelPortsChoice);
    parallelPortsChoice.setEnabled(false);
    centerPanel.add(new JLabel("Unknown Ports", JLabel.RIGHT));
    other = new JComboBox();
    centerPanel.add(other);
    other.setEnabled(false);
    centerPanel.add(new JLabel("Your choice:", JLabel.RIGHT));
    centerPanel.add(choice = new JLabel());
    JButton okButton;
    cp.add(BorderLayout.SOUTH, okButton = new JButton("OK"));
    okButton.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent e) {
              PortChooser.this.dispose();
    /** Populate the ComboBoxes by asking the Java Communications API
    * what ports it has. Since the initial information comes from
    * a Properties file, it may not exactly reflect your hardware.
    protected void populate() {
    Enumeration pList = CommPortIdentifier.getPortIdentifiers();
    while (pList.hasMoreElements()) {
    CommPortIdentifier cpi = (CommPortIdentifier)pList.nextElement();
    // System.out.println("Port " + cpi.getName());
    map.put(cpi.getName(), cpi);
    if (cpi.getPortType() == CommPortIdentifier.PORT_SERIAL) {
    serialPortsChoice.setEnabled(true);
    serialPortsChoice.addItem(cpi.getName());
    else if (cpi.getPortType() == CommPortIdentifier.PORT_PARALLEL) {
    parallelPortsChoice.setEnabled(true);
    parallelPortsChoice.addItem(cpi.getName());
    else {
    other.setEnabled(true);
    other.addItem(cpi.getName());
    serialPortsChoice.setSelectedIndex(-1);
    parallelPortsChoice.setSelectedIndex(-1);
    protected void finishGUI() {
    serialPortsChoice.addItemListener(this);
    parallelPortsChoice.addItemListener(this);
    other.addItemListener(this);
    pack();
    //addWindowListener(new WindowCloser(this, true));
    }}When i compile this it says PortChooser.java uses unchecked or unsafe operation
    recompile with -Xlint(any one know what this is?)
    Is it the JDK version i'm using ? First i thought it's a security issue.As in windows is not letting me access the serial ports.
    I checked with device manager.My serial ports are open. Ichanged my BIOS settings as well..
    (I read inputs from parallel port.But i dont use the comm api for that)
    I have installed the rxtx gnu.io package as well..
    Tried import gnu.io.* instead of javax.comm.*; still the same compilatiion error!!!
    Thanks in advance
    goodnews:-(

    It is basically a warning (not an error) that the compiler gives you to let you know that you are using a raw type where Java now supports generic types.
    For example, in the code you use:
    HashMap where you can use HashMap<String,String> to let the compiler know that you intend inserting Strings for both the key and the value. The former is considered to be unsafe because the compiler cannot control what is inserted into the HashMap while in the latter case it can ensure that only Strings are used for both keys and values.
    The compiler is also letting you know that if you want to see the details of these "unsafe" operations you can use the -Xlint:unchecked option when compiling and the compiler will show you exactly which lines contain the code that is generating the warning. So to compile with this option you would use javac -Xlint:unchecked ClassToCompile.

  • Xlint:unchecked compilation error?

    Hello,
    when i try to compile the following code as part of a servlet application , the following Xlint:unchecked error occurs.I cant understand since I am using jdk1.5 or is it referring to generics in collections?if so could anyone pls reply how to fix it.Thanks in advance.
    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 Aile");
    return (brands);
    C:\javac BeerExpert.java
    Note: BeerExpert.java uses unchecked or unsafe operations.
    Note :Recompile with -Xlint:unchecked for details.

    C:\javac BeerExpert.java
    Note: BeerExpert.java uses unchecked or unsafe
    operations.
    Note :Recompile with -Xlint:unchecked for details.Yes it is referring to generics. The first step is to "Recompile with -Xlint:unchecked for details." like the compiler told you to do. That is
    javac -Xlint:unchecked BeerExpert.java

  • Set ojdeploy to include -Xlint:unchecked in it's compile

    Having a very weird issue with ojdeploy.
    The project compiles without errors via jDeveloper, but when I compile it through ANT using ojdeploy I get the following
    [ora:ojdeploy] Note: Some input files use unchecked or unsafe operations.Some input files use unchecked or unsafe operations.
    [ora:ojdeploy] Note: Recompile with -Xlint:unchecked for details.
    How do I set -Xlint:unchecked for ojdeploy? (if that is even possible).
    Cheers

    Hi DoctorZ,
    in a VI is
    a) the relative path if on the same drive,
    b) the absolut path if on another drive,
    c) the name only if the subVI is in vi.lib, user.lib or instr.lib
    to all subVIs stored. So if your search path does not include and the subVI will always be found. The search path is only used when to load a VI that has moved from its original path or is a top level VI.
    I have no place found to turn off this behavior.
    I find this behavior is good. So we need not to maintain a list of search paths for each project since not all projects have the same directory layout. A lot of us work on more than one project within two weeks and we use often a lot of subdirs.
    Also we maintain the project in a project directory. Each dev
    eloper makes a local copy of the project. All paths are now correct and the developer can do his work. If he finished he closes LV, copies the VIs back to the project directory and can now open the project again from the project directory. And all the paths are correct again.
    It is neccessary to close LV, so it forgets all the paths which are collected from the time when it was started.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • -Xlint: Unchecked Error Explanation

    I have done a compile with -Xlint: Unchecked and i have got back the following results.
    [Unchecked] Unchecked Conversion
    [Unchecked] Unchecked Method invocation: <T>sort[java.util.List<T>,java.util.Comparator<? super T>in java.util.Collections is applied to [java.util.ArrayList<Album>, java.util.Comparator]It relates to
    if ( type==( 1 ) )
                    Collections.sort(list, Album.NameComparator);
                  PrintJButton.doClick();
    public int compareTo(Object anotherAlbum) //A compareTo method is needed when implementing comparable on your class
         if( !(anotherAlbum instanceof Album) )  //comparing
                   throw new ClassCastException("Instance of Album expected");  //exception handling
                   int anotherAlbumArtistName = ((Album)anotherAlbum).getID();  //standard sort on my getID() method
                   return this.noOfTracks - anotherAlbumArtistName;   //returns the inputs in sorted accesending order
    public static Comparator NameComparator = new Comparator() //creating a new name comparator object which is integrated
                                                              //within my comparable Album.
         public int compare(Object album, Object anotherAlbum) //Accepts to Album objects at a time for comparison
                String make1 = ((Album)album).getName().toUpperCase();   //comparing on my Album Names
                String make2 = ((Album)anotherAlbum).getName().toUpperCase();
                return make1.compareTo(make2);   //returning Album name sorted from a-z
    public static Comparator cdComparator = new Comparator() //creating a new cd comparator
         public int compare(Object album, Object anotherAlbum) //accepts to album ojects
                String make1 = ((Album)album).getCD().toUpperCase();  //comparison on my cd names
                String make2 = ((Album)anotherAlbum).getCD().toUpperCase();
                return make1.compareTo(make2);   //returning cd name sorted from a-z
    }Does anyone know what is wrong?

    You've got two different things going on here. You're mixing Comparators and Comparables.
    If Album is to be Comparable, then that means it has a "natural" order, and you'd declare it as public class Album impelements Comparable<Album>[/ode], and you'd provide a compareTo(Album) method so that it can be compared to other albums, and a list of Albums can be sorted without providing an external Comparator class.
    If you just want Comparators--external classes that order pairs of Albums, then don't make Album Comparable, and don't implement compareTo.
    Or, you can do both.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Function module for detailes description of Order and long text in task

    Hello gurus,
                       please help me with Function module for detaile description of Order and long text in task list(operation Tab)?
    regards,
    YK

    Hi, 
    You should be able to read the Order short text directly from table AUFK. The Order long text or task list long text can be read by using FM "Read_text". Use Goto> Header on every long text screen to identify the parameters that need to be passed hen using this FM.
    Regards
    Narasimhan

  • 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

Maybe you are looking for