[Swift-devel] interpreting swift error message

Ketan Maheshwari ketancmaheshwari at gmail.com
Mon Mar 11 22:59:19 CDT 2013


Eric,

I could run your script after setting the CLASSPATH variable to the
directory path where your java class is located:

[thwomp:Eric_scripts]$ swift -tc.file tc.data -sites.file sites.xml
example2.2.swift
Swift trunk swift-r6362 cog-r3637

RunID: 20130311-2257-kn122lk3
Progress:  time: Mon, 11 Mar 2013 22:57:27 -0500
Execution failed:
Exception in java:
    Arguments: [MaxTemperature, in.txt]
    Host: localhost
    Directory: example2.2-20130311-2257-kn122lk3/jobs/q/java-qtxl8h6l
    stderr.txt: Exception in thread "main" java.lang.NoClassDefFoundError:
MaxTemperature
Caused by: java.lang.ClassNotFoundException: MaxTemperature
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: MaxTemperature. Program will exit.
    stdout.txt:
Caused by:
File not found: /var/tmp/example2.2-20130311-2257-kn122lk3/shared/out.txt
max, example2.2.swift, line 8
[thwomp:Eric_scripts]$ export CLASSPATH=/homes/ketan/Eric_scripts:$CLASSPATH
[thwomp:Eric_scripts]$ swift -tc.file tc.data -sites.file sites.xml
example2.2.swift
Swift trunk swift-r6362 cog-r3637

RunID: 20130311-2257-6s3ixfr5
Progress:  time: Mon, 11 Mar 2013 22:57:52 -0500
Final status: Mon, 11 Mar 2013 22:57:53 -0500  Finished successfully:1


See if this works for you.

Regards,
Ketan



On Mon, Mar 11, 2013 at 7:12 PM, Eric Skogen <eskogen at g.clemson.edu> wrote:

> 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.
>
> On Mon, Mar 11, 2013 at 8:10 PM, Eric Skogen <eskogen at g.clemson.edu>wrote:
>
>> It does seem to be a java thing.  It worked fine for me with shell
>> commands too.
>>
>
>
> _______________________________________________
> Swift-devel mailing list
> Swift-devel at ci.uchicago.edu
> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel
>
>


-- 
Ketan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20130311/66ad2b5f/attachment.html>


More information about the Swift-devel mailing list