diff -up src/sage/interfaces/jmoldata.py.orig src/sage/interfaces/jmoldata.py --- src/sage/interfaces/jmoldata.py.orig 2014-08-12 14:13:57.189963669 -0300 +++ src/sage/interfaces/jmoldata.py 2014-08-12 14:16:21.359969189 -0300 @@ -139,8 +139,6 @@ class JmolData(SageObject): True """ - # Set up paths, file names and scripts - jmolpath = os.path.join(SAGE_LOCAL, "share", "jmol", "JmolData.jar") launchscript = "" if (datafile_cmd!='script'): launchscript = "load " @@ -152,9 +150,8 @@ class JmolData(SageObject): scratchout = tmp_filename(ext=".txt") with open(scratchout, 'w') as jout: # Now call the java application and write the file. - subprocess.call(["java", "-Xmx512m", "-Djava.awt.headless=true", - "-jar", jmolpath, "-iox", "-g", sizeStr, - "-J", launchscript, "-j", imagescript], stdout=jout, stderr=jout) + subprocess.call(["jmol","-n","-g",sizeStr, + "-J",launchscript,"-j",imagescript],stdout=jout) if not os.path.isfile(targetfile): raise RuntimeError("Jmol failed to create file %s, see %s for details"%(repr(targetfile), repr(scratchout))) os.unlink(scratchout)