Migrating to the new version of Java is easy



  • All you need to do is install the new version of Java, set $JAVA_HOME=/usr/java/jdk1.x, possibly (depending upon your setup) put it ahead of java 1.x-1 on your path, and run your ant target:

     

    <target name="compile">
    <javac srcdir="..." destdir="..." classpathref="..."/>
    </target>

    Right?

    Except when some genious does this at the very end of the command line (way past where you can see it on your window):

    ksh> export FILE_NOT_FOUND=javac1.4

    build.xml:
    <target name="compile">
    <javac srcdir="..." destdir="..." classpathref="..." compiler="${FILE_NOT_FOUND}"/>
    </target>


  • Did they really name the variable FILE_NOT_FOUND?

    Setting environment variables and failing to mention them to anyone else is fun!



  • @bezking said:

    Did they really name the variable FILE_NOT_FOUND?

    Setting environment variables and failing to mention them to anyone else is fun!

    No, but the name they used was equally useful.


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.