Dnia 13-08-2008 o godz. 23:14 omid boroumand napisał(a):
Surround line
JobDescriptionType jobDescription = RSLHelper.readRSL(jobDescriptionFile);
with try - catch (RSLParseException) block.
I see you don't use any IDE like Eclipse - I strongly advise you to do
so - it'll help you in dealing with errors like this one and therefore
speed up your development.
And remember submitting a job in java is much mroe than just those four
lines of code - take a look on WS-GRAM documentation at
www.globus.org/toolkit
> Hi,
> i installed GT4.2 and want submit job with client API to globus.
> but when i compile the ' SubmitJob.java ' , I see this error :
> -------------
> [EMAIL PROTECTED]:/usr/local/GT4-examples> javac -classpath
./build/stubs/classes/:$CLASSPATH SubmitJob.java
> SubmitJob.java:71: unreported exception
org.globus.exec.utils.rsl.RSLParseException; must be caught or declared
to be thrown
> JobDescriptionType jobDescription =
> RSLHelper.readRSL(jobDescriptionFile);
> public class SubmitJob {
>
>
> public static void main(String[] args)
> {
> File jobDescriptionFile = new File("Test_Job.xml");
> JobDescriptionType jobDescription = RSLHelper.readRSL(jobDescriptionFile);
>
> GramJob TestJob=new GramJob(jobDescription);
> TestJob.submit(omid:8443);
> }
> }
pozdrawiam / kind regards
Maciej Nowicki
----------------------------------------------------
Efekciarskie auta, noweczesne gadżety, wytworne szmatki.
Lajfstajlowy serwis dla koneserów prawdziwego luksusu.
Zobacz: http://klik.wp.pl/?adr=www.LuxClub.pl&sid=451