Search code examples
javatwitter4j

Java program runs on one computer but not the other


I'm writing a program that uses the Twitter4J API to read and respond to tweets on Twitter. So far the program seems to run perfectly on my Acer Aspire 5734Z in both Windows 7 Home Premium 64 Bit and in Arch Linux 64 Bit. However, when I run the same exact program on my Raspberry Pi running Raspbian I encounter the following error:

Jan 04, 2014 12:34:16 AM twitter4j.TwitterStreamImpl info
INFO: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
Jan 04, 2014 12:34:16 AM twitter4j.TwitterStreamImpl info
INFO: Waiting for 250 milliseconds

EDIT: Hold on, weird timestamps, let me check that my Raspberry Pi's time is set right.

EDIT: Nope, that didn't fix it.


Solution

  • I had a similar problem with an application i wrote. It did not work with the oldrr java version 25 but with 45 and simply updating fixed the problem. Maybe that will fix it here, too since some things changed between these versions.