#503 "getenv no longer supported, use prop"

6: Crashes
closed-fixed
Other (88)
9
2006-07-19
2006-06-12
R. Matt Barnett
No

C:\Documents and Settings\g9053\Desktop>java -jar
drjava-beta-20060510-2133.jar
Exception in thread "main" java.lang.Error: getenv no
longer supported, use prop
erties and -D instead: ProgramFiles
at java.lang.System.getenv(Unknown Source)
at
edu.rice.cs.util.classloader.ToolsJarClassLoader.getToolsJarFiles(Too
lsJarClassLoader.java:71)
at
edu.rice.cs.util.classloader.ToolsJarClassLoader.getToolsJarURLs(Tool
sJarClassLoader.java:149)
at
edu.rice.cs.util.classloader.ToolsJarClassLoader.<init>(ToolsJarClass
Loader.java:54)
at
edu.rice.cs.drjava.DrJava.<clinit>(DrJava.java:95)

Discussion

  • Mathias Ricken
    Mathias Ricken
    2006-07-06

    Logged In: YES
    user_id=1075744

    This code is only run on Windows; we should detect that
    situation and just not execute the offending statement, if
    we cannot find another solution.

     
  • Mathias Ricken
    Mathias Ricken
    2006-07-06

    • priority: 5 --> 9
     
  • Mathias Ricken
    Mathias Ricken
    2006-07-19

    • assigned_to: nobody --> mgricken
    • status: open --> closed-fixed
     
  • Mathias Ricken
    Mathias Ricken
    2006-07-19

    Logged In: YES
    user_id=1075744

    As of revision 3907, if System.getProperty("java.version")
    starts with "1.3" or "1.4", then System.getenv is not used.