<div dir="ltr">Eric,<div><br></div><div style>I could run your script after setting the CLASSPATH variable to the directory path where your java class is located:</div><div style><br></div><div style><div>[thwomp:Eric_scripts]$ swift -tc.file tc.data -sites.file sites.xml example2.2.swift</div>
<div>Swift trunk swift-r6362 cog-r3637</div><div><br></div><div>RunID: 20130311-2257-kn122lk3</div><div>Progress: time: Mon, 11 Mar 2013 22:57:27 -0500</div><div>Execution failed:</div><div><span class="" style="white-space:pre"> </span>Exception in java:</div>
<div> Arguments: [MaxTemperature, in.txt]</div><div> Host: localhost</div><div> Directory: example2.2-20130311-2257-kn122lk3/jobs/q/java-qtxl8h6l</div><div> stderr.txt: Exception in thread "main" java.lang.NoClassDefFoundError: MaxTemperature</div>
<div>Caused by: java.lang.ClassNotFoundException: MaxTemperature</div><div><span class="" style="white-space:pre"> </span>at java.net.URLClassLoader$1.run(URLClassLoader.java:217)</div><div><span class="" style="white-space:pre"> </span>at java.security.AccessController.doPrivileged(Native Method)</div>
<div><span class="" style="white-space:pre"> </span>at java.net.URLClassLoader.findClass(URLClassLoader.java:205)</div><div><span class="" style="white-space:pre"> </span>at java.lang.ClassLoader.loadClass(ClassLoader.java:321)</div>
<div><span class="" style="white-space:pre"> </span>at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)</div><div><span class="" style="white-space:pre"> </span>at java.lang.ClassLoader.loadClass(ClassLoader.java:266)</div>
<div>Could not find the main class: MaxTemperature. Program will exit.</div><div> stdout.txt:</div><div>Caused by:</div><div><span class="" style="white-space:pre"> </span>File not found: /var/tmp/example2.2-20130311-2257-kn122lk3/shared/out.txt</div>
<div><span class="" style="white-space:pre"> </span>max, example2.2.swift, line 8</div><div>[thwomp:Eric_scripts]$ export CLASSPATH=/homes/ketan/Eric_scripts:$CLASSPATH</div><div>[thwomp:Eric_scripts]$ swift -tc.file tc.data -sites.file sites.xml example2.2.swift</div>
<div>Swift trunk swift-r6362 cog-r3637</div><div><br></div><div>RunID: 20130311-2257-6s3ixfr5</div><div>Progress: time: Mon, 11 Mar 2013 22:57:52 -0500</div><div>Final status: Mon, 11 Mar 2013 22:57:53 -0500 Finished successfully:1</div>
<div><br></div><div><br></div><div style>See if this works for you.</div><div style><br></div><div style>Regards,</div><div style>Ketan</div><div style><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Mar 11, 2013 at 7:12 PM, Eric Skogen <span dir="ltr"><<a href="mailto:eskogen@g.clemson.edu" target="_blank">eskogen@g.clemson.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
oops forgot the java file in question. For the record, I know java's not the best way to do this, I was doing it to illustrate calling external applications and java was one of the things on the list I planned to use. I'd just switch languages, but the error interested me. <br>
<div class="HOEnZb"><div class="h5">
<br><div class="gmail_quote">On Mon, Mar 11, 2013 at 8:10 PM, Eric Skogen <span dir="ltr"><<a href="mailto:eskogen@g.clemson.edu" target="_blank">eskogen@g.clemson.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It does seem to be a java thing. It worked fine for me with shell commands too.<font color="#888888"><br></font>
</blockquote></div><br>
</div></div><br>_______________________________________________<br>
Swift-devel mailing list<br>
<a href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>
<a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><font face="'courier new', monospace">Ketan</font><br><br>
</div>