Hello Andy,
yes it worked from dos prompt and eclipse both.

thank you very much.

regards
saad

On Wed, Mar 3, 2010 at 9:44 PM, Andy Clement <[email protected]>wrote:

> In the build.xml the executable is called: jscicalc.CalculatorApplet
>
> That class is inside the jar, I don't believe it is an executable jar
> (looking at the manifest) so you can't just run the jar.   That means
> you'd need something like this:
>
> java -classpath Scical-cminimal-product-generated.jar
> jscicalc.CalculatorApplet
>
> but you appear to have other dependencies (log4j/etc) that will need
> to also be on the classpath in order to execute it.
>
> Andy
>
> On 3 March 2010 13:27, saadbin abid <[email protected]>
> wrote:
> > Hello Andy,
> > Thank you very much. Yes I can see the jar but in eclipse I cannot see
> the
> > executable I don't know why is it so!! I am trying to run it from console
> > and it is complaining not to find the main class. Don't know what is
> going
> > on :(
> > Attached is the jar file I am getting after ant script. Could you please
> > help me with it if possible?
> >
> > best regards
> >
> >
> >
> > On Wed, Mar 3, 2010 at 9:20 PM, Andy Clement <[email protected]>
> > wrote:
> >>
> >> Your iajc task specifies an outjar - that is where the code will go -
> >> so you won't see the output class files on disk, they are packaged
> >> into a jar during compilation.  From the looks of it:
> >>
> >> >             outjar="${root}/${productId}.jar" />
> >>
> >> it will be ../src/Scical-cminimal-product-generated.jar
> >>
> >> Andy
> >>
> >> On 3 March 2010 13:15, saadbin abid <[email protected]>
> >> wrote:
> >> > Hello aspectJ users,
> >> >
> >> > I am currently working with an aspectJ project. I have successfully
> >> > compile
> >> > the project and build the .jar file.
> >> >
> >> > output from console :
> >> >
> >> > Buildfile:
> >> >
> >> >
> C:\eclipse-Galileo\eclipse\workspace\ie.lero.spl.aml.examples.scicalc.minimal.implementation\src\build.xml
> >> > main:
> >> > compileProduct:
> >> >      [echo] Compiling and executing product
> >> > 'Scical-cminimal-product-generated'
> >> >      [echo] Compiling
> >> >      [echo] Executing
> >> >      [echo] Done.
> >> > BUILD SUCCESSFUL
> >> > Total time: 5 seconds
> >> >
> >> > My problem is that I cannot see the executable product (which in my
> >> > project
> >> > is a calculator applet). I can see the applet when running with in
> >> > Eclipse
> >> > "Run As". But after running the Ant script I cannot see the product.
> >> > Could
> >> > you please guide me what could be the possible problem. I am pasting
> the
> >> > ant
> >> > code so that if possible you can configure if something is missing in
> >> > it!!!
> >> >
> >> > <?xml version="1.0"?>
> >> >
> >> > <!--
> >> >     for documentation on AspectJ ant tasks see
> >> >
> >> >
> http://www.eclipse.org/aspectj/doc/released/devguide/antTasks-iajc.html
> >> > -->
> >> >
> >> > <project default="main" basedir=".">
> >> >
> >> >     <taskdef
> >> >
> >> > resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties">
> >> >     </taskdef>
> >> >
> >> >
> >> >     <property
> >> >         name="root"
> >> >         value="../src"
> >> >     />
> >> >
> >> >     <target name="compileProduct">
> >> >         <echo message="Compiling and executing product
> '${productId}'"/>
> >> >         <echo message="Compiling"/>
> >> >         <echo message="Classpath = ${java.class.path}"/>
> >> >         <iajc
> >> >             source="1.5"
> >> >             argfiles="${root}/${productId}.lst"
> >> >             outjar="${root}/${productId}.jar" />
> >> >
> >> >           <echo message="Executing"/>
> >> >         <java classname="jscicalc.CalculatorApplet"
> >> >         >
> >> >             <classpath>
> >> >                 <pathelement location="${root}/${productId}.jar" />
> >> >                 <pathelement location="../lib/aspectjrt.jar" />
> >> >             </classpath>
> >> >         </java>
> >> >         <echo message="Done."/>
> >> >         </target>
> >> >
> >> >     <target name="main">
> >> >
> >> >         <antcall target="compileProduct">
> >> >             <param name="productId"
> >> > value="Scical-cminimal-product-generated"/>
> >> >         </antcall>
> >> >     </target>
> >> >
> >> > </project>
> >> >
> >> >
> >> > Am I missing something?
> >> >
> >> > Thank you very much
> >> > --
> >> > SAAD
> >> >
> >> > _______________________________________________
> >> > aspectj-users mailing list
> >> > [email protected]
> >> > https://dev.eclipse.org/mailman/listinfo/aspectj-users
> >> >
> >> >
> >> _______________________________________________
> >> aspectj-users mailing list
> >> [email protected]
> >> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> >
> >
> >
> > --
> > SAAD
> >
> > _______________________________________________
> > aspectj-users mailing list
> > [email protected]
> > https://dev.eclipse.org/mailman/listinfo/aspectj-users
> >
> >
> _______________________________________________
> aspectj-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to