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

Similar Messages

  • 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

  • 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

  • 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

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

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

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

  • How do I get albums out of "compilations'?  On one of my machined I can go to individual songs, "get info" and uncheck "part of a compilation", but that does not work on my office machine.  I would also like to be able to do this in  a group for an album,

    I don't know how so much of my music got lost by being labled "compilations"?  I would like to go back and catagorize it as it should be but the screens are gray and will not let me alter them as to the catagory I wish them to be in (or even the genere they are already labled?  On my home machine I can (by individual song) "get info and uncheck "part of a compilation" and when this is finished the album goes to the genere as it is listed?  Frustrating bit of hous keeping.  Help and Thanks  Chuck

    The Get Info. fields show up gray if the files is locked and iTunes knows it can't edit the file. Make sure the files are not marked as read only and, if necessary grant both your account and system full access to all files and subfolders of your media folder.
    You can set Part of a Compilation for multiple tracks from the Options tab of Get Info.
    See Grouping tracks into albums for tips on getting iTunes organized.
    tt2

  • How do I add -Xlint option to the EJB compilation process?

    Hello,
    I have a 4 server node clustered environment. I am running WebLogic
    Server 9 MP 2 on Windows server 2003 Enterprise Edition SP 2. I am
    running Sun JDK 1.5 update 11. When the EJBs are compiled Isee the
    following message in the server logs (for every EJB):
    ####<Nov 16, 2007 6:15:09 PM CST> <Info> <EJB> <machine1> <wlserver1>
    <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default
    (self-tuning)'> <<WLS Kernel>> <> <> <1195258509358> <BEA-012033>
    <Compiling generated EJB classes produced the following Java compiler
    output:
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    I checked through the documentation, and the extra EJB compiler options
    don't offer the -Xlint option. I checked the Java documentation and it
    does support that option. My servers are using the default javac
    compiler. I have not figured out how I can add the -Xlint option to the
    server compilation process, in order to get the additional information I
    need to diagnose the problem. Please help.
    http://e-docs.bea.com/wls/docs92/ConsoleHelp/pagehelp/Corecoreserverserve
    rconfiggeneraltitle.html#advancedAttributes
    Thanks,
    pimy

        I love being able to have a group contact list on my device.
    You can go to Contacts>Click on the icon right below the contacts with 2 people>Select the green plus sign in the upper right hand corner>Create a group name and then go thru the contact list to add up to 20 contacts for the group.
    This will help you get the group contacts added again.
    Tamara H.
    Follow us on Twitter @VZWSupport

  • Will not include all my topics in the compiled help file

    I've been rebuilding my project, because it seems like my
    file were too big and so the project was no longer compiling
    successfully.
    Now I have spilt some of the contents of the larger word
    file, into two smaller word files and included the topics from
    these into the TOC and bascially rebuilt most of the project.
    However, now, the compiled version of the file only includes the
    topics and books from the first smaller file and ignores that
    contents in the second file.
    How do I solve this? I have selected to include both these
    files into the compiled file, but it still does not work.

    I've been rebuilding my project, because it seems like my
    file were too big and so the project was no longer compiling
    successfully.
    Now I have spilt some of the contents of the larger word
    file, into two smaller word files and included the topics from
    these into the TOC and bascially rebuilt most of the project.
    However, now, the compiled version of the file only includes the
    topics and books from the first smaller file and ignores that
    contents in the second file.
    How do I solve this? I have selected to include both these
    files into the compiled file, but it still does not work.

  • Break points set in an included script during debugging sporadically jump to the last line of the included script

    As I stated in the title, I use the ScriptInclude command quite extensively, because we have at our company a policy of maintaining one large-ish (roughly 7k lines) function library which is included by various individual evaluation scripts. Debugging this with break points is often the only (useful) way to see into the state of the script, so I depend on them.
    My problem is that often when I debug a script calling the function library, setting a break point in that library and running into it during debug mode will not transport the cursor to the location of the current break point, but instead to the very end of the included script. I have noticed this with a separate pair of scripts, as well, which includes a similar size script to call functions from (roughly 2k lines).
    Now I wonder if this has to do with the size of the scripts included, or if it is dependent on something else. It seems to not be affected by restarting DIAdem, and sometimes it works as intended, but I have not been able to reliably replicate indivdual occurrences one way or the other.
    Has anyone else had this problem happen to them?
    Leo Zschokke
    Test Engineer C-EPS
    ThyssenKrupp Presta AG

    Leo
    I also use scriptincludes extensively, Most of mine are in the range of 500 to 2000 lines.  Usually I organize them in logical code topics,  I like to use them to hold one class most of the time.  When I debug these I can set a breakpoint, and it will stop at that location.
    I also use custom log class as well, I find this quite helpful, in the applications that are unattended.
    The only thing I can think of to try is to separate the 7k file into 2 2k line files and then script include them separately.
    Paul
    ps. I sometimes need to have intellisense work from a file that was scriptincluded, this requires copying the file into the end of the main script.  (you most likely already know this   )
    One other note, Are you talking about debuging code in a SUD, that is whole different problem to deal with.

  • Set page to include with NO hyperlink, now how do I get rid of rollover hand?

    Hi, I set my page to include in the navigation, but not to be hyperlinked. But when I roll over it with the mouse, a hand appears like it is a clickable link. I don't want the hand to appear, does anyone know how to get rid of it?
    Thanks.

    Hi
    You can try to disable that by using the suggestions mentioned here :
    http://stackoverflow.com/questions/13033038/prevent-cursor-change-to-hand-on-disabled-butt on
    http://stackoverflow.com/questions/8953485/is-it-possible-to-remove-the-hand-cursor-that-a ppears-when-hovering-over-a-link
    Thanks,
    Sanjit

  • How to read a whole file as a set of characters (including spaces)

    Hi,
    I'mt trying to read a file, and i want to save each character in the file including the space character. Is there a new line char as well?
    I'm using this at the moment because buffer reader loses my trailing spaces, but it's only taking the first word of my file:
    Scanner scan = new Scanner(System.in);
                System.out.print("Enter a filename: ");
                String fileToRead = scan.nextLine();
                Scanner sc = new Scanner(new File(fileToRead));
                String file = sc.next(); //this only takes the first wordIs there any way of saving this whole file as a string so that it also remembers spaces and new lines?
    Edited by: Cymae on Nov 12, 2007 12:04 AM

    That isn't my experience with BufferedReader. If you use the readLine method it will read lines, throwing away the crlf, but if you use the read(buffer,ofs,len) methods it happily reads everything and puts it in a character array. You can then convert that to a string using the new String(buffer, ofs, len) method.
    Here's a simple test case:
    import java.io.*;
    public class ReadTest {
         public static void main(String [] args) {
              for (String arg : args) {
                   char [] buffer = new char[256]; ;
                   try {
                        BufferedReader reader = new BufferedReader(new FileReader(arg));
                        int len = 0;
                        System.out.println("reading from file="+arg);
                        while (true) {
                             len = reader.read(buffer,0, 256);
                             if (len == -1) {
                                  break;
                             System.out.println("read "+len+" chars="+new String(buffer,0,len)+"||");
                             System.out.println("");
                        reader.close();
                   } catch (IOException e) {
                        System.out.println(e.getMessage());
    }                                                           

  • Bug: Setting "Don't include footnotes" via scripting doesn't change the find/change dialog

    Hi,
    Small bug, but can be confusing. Whether you write this line:
    app.findChangeTextOptions.includeFootnotes = false;
    or this line:
    app.findChangeTextOptions.includeFootnotes = true;
    ... you won't see any different in the little footnotes button in the
    find/replace dialog, even though the setting does work via scripting.
    More testing is needed to see what can be done to get the UI in sync
    with the setting...
    Ariel

    The dialog isn't updated while it's displayed. But hiding the dialog and displaying it again (twice Ctrl+F) shows that the script did do its thing.
    Peter

  • Any Setting To Automatically Include Browser Thumbnails In  New Projects?

    I like having the thumbnails of my clips in the Browser but find it terribly onerous to have to remember to ctrl-click and select "Show Thumbnails".
    Is there a preference setting which will launch every new project complete with clip thumbnails?

    Thanks Tom, that is an alternative, but it takes exactly the same effort to select my custom layout as it does to select "Show Thumbnails"!
    I suppose that it has the advantage of personalising the Browser in a number of details, so it's not too bad an alternative.

Maybe you are looking for

  • Photoshop CS5.1 cannot be opened with Mac 10.6.8

    Hi, I just installed the photoshop CS5.1 but once I start the program I got an error message box with below notes. Can any one please advise what I need to do? I heard that I need reinstall the OS but I don't have the disc since the OS comes with the

  • No sound in iMovie 3.03

    Running iMovie 3.03 in OS 10.4.6 and all is well except for sound. Songs play in iTunes, iMovie claims to add songs to project, but when play back.... no sound. Boxes on right all checked, volume at 100%. Cannot find iLife DVD to re-install. Any sugg

  • Silent Updating acrobat 7 std, with acrobat 7.05 multilangual update - How to?

    How do I do an update of already installed Adobe Acrobat 7. I want to update with the 7.05 multilangual update, and it have to be a silent update... I use a client management program (landesk), and want to roll out the update to those machines that n

  • JTextField Focus Lost Behaviour

    Hi all, I have one TextField beside one hlp button , when i enter the value in the textfiled and press tab or press the hlp button same validation should popup ......here my problem is at first time when i press the hlp button the valiation is not ge

  • Combo box choose several

    Hello I try to make a combo box, where it should be possible to choose several values at the same time. The item list contains a bunch of historical traces and I want to do a graph showing only the chosen ones. Is ther any possibility to set a bool f