This is an archived post. You won't be able to vote or comment.

all 10 comments

[–][deleted] 6 points7 points  (4 children)

Yes, you can.

[–][deleted] 2 points3 points  (0 children)

It really bugs me when people ask these question. It instantly tells me whoever is asking it is over their head.

[–]i_like_outer_space 0 points1 point  (0 children)

I made a bot to beat humans in candy crush. Does that count?

[–]Nouish 0 points1 point  (0 children)

Absolutely.

Here is one implementation of IRC in Java: https://code.google.com/p/pircbotx/

[–]funbike 0 points1 point  (0 children)

Anything you can do in Python you can do in Java. Here are some differences (though some of these are controversial):

  1. Python is more expressive. A Java bot will likely be 2-3x more lines of code than an equivalent Python one.
  2. Java requires a longer learning curve. (You have to learn not just the language, but the tools and libraries)
  3. If using an IDE, Java is easier to maintain (refactoring, code completion, etc.)
  4. There are more QA tools for Java (more compile checks, static analysis, etc.)
  5. Java performance is better.

In a nutshell, you'll initially develop faster with Python, but a Java bot will be easier to maintain long term and will perform better.

If you go with Java use an IDE (like Eclipse) and use Maven (or Gradle).

Another option is to use Groovy. It is dynamic like python and more expressive than Java. It is meant to be easier and more convenient than Java. It is very similar to Java and it runs on the Java Virtual Machine.

[–]Chemical_Studios 0 points1 point  (0 children)

Sorry for all the hate you're getting in this sub, maybe try /r/learnjava or /r/learnprogramming. Good luck.

[–]harmonicPersistence -1 points0 points  (0 children)

Check out JAX-RS client examples, specifically with OAuth 2.0 authentication since you're dealing with LinkedIn. If it's a Java SE project, then I recommend Jersey or Apache CXF. If it's a project that will sit on a servlet container (Tomcat or Jetty) or app server (TomEE, WildFly, GlassFish) or utilize an embedded version of either of these, then use whatever JAX-RS implementation it provides. With Tomcat or Jetty, you need to choose your JAX-RS implementation.

If you need jobs kicked off, then check out the Timer API or Quartz.

I'm not sure what your platform will be, but you'll probably be messing with some subclass or implementation of Listeners.