Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » newbie: how to export as jar
newbie: how to export as jar [message #70185] Fri, 13 July 2007 06:54 Go to next message
Eclipse User
Originally posted by: TillFC.gmx.net

Hi,
I have built a AspectJ project, that runs just fine when I start if from
inside eclipse. However when I export it as a Jar file it crashes as soon
as I try to instantiate a class that was enhanced using intertype
declarations. I get the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: org/aspectj/lang/NoAspectBoundException
at werwolfserver.game.Player.<init>(Player.java:22)
at werwolfserver.game.Game.addPlayer(Game.java:36)
at werwolfserver.net.Server.waitForIncomming(Server.java:30)
at werwolfserver.Main.main(Main.java:10)

Can anybody point me to what I am doing wrong here?
Thank you,
Till
--
Please add "Salt and Pepper" to the subject line to bypass my spam filter
Re: newbie: how to export as jar [message #70205 is a reply to message #70185] Fri, 13 July 2007 09:39 Go to previous messageGo to next message
Mickael GAUVIN is currently offline Mickael GAUVIN
Messages: 38
Registered: July 2009
Member
Hello,

you need to have the plugin org.aspectj.runtime.jar in your classpath of
your jar if you use it outside eclipse.

Mickael Gauvin

Till Crueger a écrit :
> Hi,
> I have built a AspectJ project, that runs just fine when I start if from
> inside eclipse. However when I export it as a Jar file it crashes as soon
> as I try to instantiate a class that was enhanced using intertype
> declarations. I get the following error:
>
> Exception in thread "main" java.lang.NoClassDefFoundError: org/aspectj/lang/NoAspectBoundException
> at werwolfserver.game.Player.<init>(Player.java:22)
> at werwolfserver.game.Game.addPlayer(Game.java:36)
> at werwolfserver.net.Server.waitForIncomming(Server.java:30)
> at werwolfserver.Main.main(Main.java:10)
>
> Can anybody point me to what I am doing wrong here?
> Thank you,
> Till
Re: newbie: how to export as jar [message #70224 is a reply to message #70205] Fri, 13 July 2007 12:01 Go to previous messageGo to next message
Eclipse User
Originally posted by: TillFC.gmx.net

Am Fri, 13 Jul 2007 15:39:07 +0200 schrieb Mickael Gauvin:

> Hello,
>
> you need to have the plugin org.aspectj.runtime.jar in your classpath of
> your jar if you use it outside eclipse.

So if I distribute the application, I need to have the person I give it to
install the AspectJ runtime? Is there any way to circumvent this, so I can
distribute it as a plain Java application?

Till Crueger



--
Please add "Salt and Pepper" to the subject line to bypass my spam filter
Re: newbie: how to export as jar [message #70244 is a reply to message #70224] Sun, 15 July 2007 11:27 Go to previous message
Eclipse User
Originally posted by: sdiz.spspam.spam.sdiz.spam.net

Till Crueger wrote:
> Am Fri, 13 Jul 2007 15:39:07 +0200 schrieb Mickael Gauvin:
>
>> Hello,
>>
>> you need to have the plugin org.aspectj.runtime.jar in your classpath of
>> your jar if you use it outside eclipse.
>
> So if I distribute the application, I need to have the person I give it to
> install the AspectJ runtime? Is there any way to circumvent this, so I can
> distribute it as a plain Java application?
>

un-jar org.aspectj.runtime.jar, re-jar your application with them?

> Till Crueger
>


--
This space was intended to be left blank.
Re: newbie: how to export as jar [message #596199 is a reply to message #70185] Fri, 13 July 2007 09:39 Go to previous message
Mickael GAUVIN is currently offline Mickael GAUVIN
Messages: 38
Registered: July 2009
Member
Hello,

you need to have the plugin org.aspectj.runtime.jar in your classpath of
your jar if you use it outside eclipse.

Mickael Gauvin

Till Crueger a écrit :
> Hi,
> I have built a AspectJ project, that runs just fine when I start if from
> inside eclipse. However when I export it as a Jar file it crashes as soon
> as I try to instantiate a class that was enhanced using intertype
> declarations. I get the following error:
>
> Exception in thread "main" java.lang.NoClassDefFoundError: org/aspectj/lang/NoAspectBoundException
> at werwolfserver.game.Player.<init>(Player.java:22)
> at werwolfserver.game.Game.addPlayer(Game.java:36)
> at werwolfserver.net.Server.waitForIncomming(Server.java:30)
> at werwolfserver.Main.main(Main.java:10)
>
> Can anybody point me to what I am doing wrong here?
> Thank you,
> Till
Re: newbie: how to export as jar [message #596212 is a reply to message #70205] Fri, 13 July 2007 12:01 Go to previous message
Eclipse User
Originally posted by: TillFC.gmx.net

Am Fri, 13 Jul 2007 15:39:07 +0200 schrieb Mickael Gauvin:

> Hello,
>
> you need to have the plugin org.aspectj.runtime.jar in your classpath of
> your jar if you use it outside eclipse.

So if I distribute the application, I need to have the person I give it to
install the AspectJ runtime? Is there any way to circumvent this, so I can
distribute it as a plain Java application?

Till Crueger



--
Please add "Salt and Pepper" to the subject line to bypass my spam filter
Re: newbie: how to export as jar [message #596223 is a reply to message #70224] Sun, 15 July 2007 11:27 Go to previous message
Eclipse User
Originally posted by: sdiz.spspam.spam.sdiz.spam.net

Till Crueger wrote:
> Am Fri, 13 Jul 2007 15:39:07 +0200 schrieb Mickael Gauvin:
>
>> Hello,
>>
>> you need to have the plugin org.aspectj.runtime.jar in your classpath of
>> your jar if you use it outside eclipse.
>
> So if I distribute the application, I need to have the person I give it to
> install the AspectJ runtime? Is there any way to circumvent this, so I can
> distribute it as a plain Java application?
>

un-jar org.aspectj.runtime.jar, re-jar your application with them?

> Till Crueger
>


--
This space was intended to be left blank.
Previous Topic:newbie: how to export as jar
Next Topic:problem using AJDT in Eclipse
Goto Forum:
  


Current Time: Fri Aug 01 22:37:05 EDT 2014

Powered by FUDForum. Page generated in 0.04648 seconds