Re: [akka-user] Using Akka in Eclipse

2017-07-03 Thread Richard Rodseth
I use Eclipse-based Scala IDE. I import Maven projects. But I often have to
right click on the project and do Maven -> Update Project. I also often
have to do Scala -> Restart Presentation Compiler. Not sure if that's
helpful.

On Mon, Jul 3, 2017 at 11:45 AM, John Arnold  wrote:

> Patrik,
>
> So, I imported the quickstart project as a Maven project. Looking at the
> build path, I see several jars in my ~/.m2/repository directory.
> I guess, and not being familiar enough with Maven nor Lightbend, that when
> I invoked the maven compile exec:exec that it pulled the required jar files
> down.
>
> Probably, my next question would be: Why didn't the config-1.3.1.jar get
> built when I compiled Akka from scratch?
>
>
>
> On Monday, 3 July 2017 13:50:25 UTC-4, Patrik Nordwall wrote:
>>
>> I think Eclipse has a plugin that understands a maven pom and adds the
>> needed dependendencies to the project. You can import a maven project.
>>
>> In this case you are missing a transitive dependency. Trying to
>> add/maintain those manually will be a pain so I suggest that you let the
>> IDE/plugin handle it for you.
>>
>> /Patrik
>> mån 3 juli 2017 kl. 18:50 skrev John Arnold :
>>
>>> Using the Quickstart example (which builds and runs using Maven), I
>>> decided to try it in Eclipse.
>>>
>>> I added the 2 jars from my akka build, akka-actor_2.11-2.5-SNAPSHOT.jar
>>> and akka-testkit_2.11-2.5-SNAPSHOT.jar, and the sample program built
>>> successfully.
>>>
>>> Running produced an error:
>>>
>>>Exception in thread "main" java.lang.NoClassDefFoundError:
>>> com/typesafe/config/ConfigFactory
>>>
>>> Suggestions?
>>>
>>> --
>>> >> Read the docs: http://akka.io/docs/
>>> >> Check the FAQ: http://doc.akka.io/docs/akka/c
>>> urrent/additional/faq.html
>>> >> Search the archives: https://groups.google.com/grou
>>> p/akka-user
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Akka User List" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to akka-user+...@googlegroups.com.
>>> To post to this group, send email to akka...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/akka-user.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> >> Read the docs: http://akka.io/docs/
> >> Check the FAQ: http://doc.akka.io/docs/akka/
> current/additional/faq.html
> >> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


Re: [akka-user] Using Akka in Eclipse

2017-07-03 Thread John Arnold
Patrik,

So, I imported the quickstart project as a Maven project. Looking at the 
build path, I see several jars in my ~/.m2/repository directory.
I guess, and not being familiar enough with Maven nor Lightbend, that when 
I invoked the maven compile exec:exec that it pulled the required jar files 
down.

Probably, my next question would be: Why didn't the config-1.3.1.jar get 
built when I compiled Akka from scratch?



On Monday, 3 July 2017 13:50:25 UTC-4, Patrik Nordwall wrote:
>
> I think Eclipse has a plugin that understands a maven pom and adds the 
> needed dependendencies to the project. You can import a maven project.
>
> In this case you are missing a transitive dependency. Trying to 
> add/maintain those manually will be a pain so I suggest that you let the 
> IDE/plugin handle it for you.
>
> /Patrik
> mån 3 juli 2017 kl. 18:50 skrev John Arnold  >:
>
>> Using the Quickstart example (which builds and runs using Maven), I 
>> decided to try it in Eclipse.
>>
>> I added the 2 jars from my akka build, akka-actor_2.11-2.5-SNAPSHOT.jar 
>> and akka-testkit_2.11-2.5-SNAPSHOT.jar, and the sample program built 
>> successfully.
>>
>> Running produced an error:
>>
>>Exception in thread "main" java.lang.NoClassDefFoundError: 
>> com/typesafe/config/ConfigFactory
>>
>> Suggestions?
>>
>> -- 
>> >> Read the docs: http://akka.io/docs/
>> >> Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>> >> Search the archives: https://groups.google.com/group/akka-user
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Akka User List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to akka-user+...@googlegroups.com .
>> To post to this group, send email to akka...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


Re: [akka-user] Using Akka in Eclipse

2017-07-03 Thread Patrik Nordwall
I think Eclipse has a plugin that understands a maven pom and adds the
needed dependendencies to the project. You can import a maven project.

In this case you are missing a transitive dependency. Trying to
add/maintain those manually will be a pain so I suggest that you let the
IDE/plugin handle it for you.

/Patrik
mån 3 juli 2017 kl. 18:50 skrev John Arnold :

> Using the Quickstart example (which builds and runs using Maven), I
> decided to try it in Eclipse.
>
> I added the 2 jars from my akka build, akka-actor_2.11-2.5-SNAPSHOT.jar
> and akka-testkit_2.11-2.5-SNAPSHOT.jar, and the sample program built
> successfully.
>
> Running produced an error:
>
>Exception in thread "main" java.lang.NoClassDefFoundError:
> com/typesafe/config/ConfigFactory
>
> Suggestions?
>
> --
> >> Read the docs: http://akka.io/docs/
> >> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[akka-user] Using Akka in Eclipse

2017-07-03 Thread John Arnold
Using the Quickstart example (which builds and runs using Maven), I decided 
to try it in Eclipse.

I added the 2 jars from my akka build, akka-actor_2.11-2.5-SNAPSHOT.jar and 
akka-testkit_2.11-2.5-SNAPSHOT.jar, and the sample program built 
successfully.

Running produced an error:

   Exception in thread "main" java.lang.NoClassDefFoundError: 
com/typesafe/config/ConfigFactory

Suggestions?

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.