Importing is not enough, you have to add required java archives to your
classpath before compiling. These are GT4 provided archives and the
archives that contain the stubs that are created when you build your
program.

How to add the GT archives to you classpath:
   source $GLOBUS_LOCATION/etc/globus-devel-env.sh

Once you have all necessary jars in you classpath try to compile again.

http://gdp.globus.org/gt4-tutorial/multiplehtml/index.html
is a good starting point for programming with GT4

Martin

omid boroumand wrote:
Hi,
Thanks for your help.
I look at the GRAM document and then write a simple program . in this program I import some classes but when compile program with javac , i see this error :
------------------
[EMAIL PROTECTED]:/usr/local/GT4-examples/gt4book-examples> javac SubmitJob.java

SubmitJob.java:3: package org.apache.axis.message.addressing does not exist
import org.apache.axis.message.addressing.Address;
                                          ^
SubmitJob.java:4: package org.apache.axis.message.addressing does not exist
import org.apache.axis.message.addressing.EndpointReferenceType;
                                          ^
SubmitJob.java:5: package org.globus.examples.stubs.Factory does not exist
import org.globus.examples.stubs.Factory.CreateResource;
                                         ^
SubmitJob.java:6: package org.globus.examples.stubs.Factory does not exist
import org.globus.examples.stubs.Factory.CreateResourceResponse;
                                         ^
SubmitJob.java:7: package org.globus.examples.stubs.Factory does not exist
import org.globus.examples.stubs.Factory.FactoryPortType;
                                         ^
SubmitJob.java:8: package org.globus.examples.stubs.Factory.service does not exist import org.globus.examples.stubs.Factory.service.FactoryServiceAddressingLocator;
                                                 ^
SubmitJob.java:24: package org.apache.axis.message.addressing does not exist
import org.apache.axis.message.addressing.AttributedURI;
                                          ^
------------------
Do you can help me that how I can to introduce needed package to my programs?
Thanks.
Omid.

2008/8/13 Maciej Nowicki <[EMAIL PROTECTED]>

    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 <http://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
    <http://klik.wp.pl/?adr=www.LuxClub.pl&sid=451>




Reply via email to