coderunder not connecting

hi, when trying to use code runner on mac, getting this:

./coderunner.sh

Listening for transport dt_socket at address: 5005

[INFO] JDK from “JAVA_HOME” - not set.

[INFO] JRE from “JRE_HOME” - not set.

[WARN] WARNING! It appears you do not have JAVA_HOME and JRE_HOME environment variables set.

This is not necessarily a problem, but it may lead to errors during CodeRunner execution.

If you experience problems related to security policy permissions, the JAR utility or others,

please try setting up the JAVA_HOME environment variable by pointing it to the root directory

of your JDK location (must be version 1.8 or higher).

[ERROR] Lost connection with Backendless. Retrying…

how can i fix this?

Hi Tommy,

I just tried and was able to connect right away. CodeRunner tries to connect to a non-standard port (6379). Is it possible the port is blocked on your network/firewall?

Mark

i thought it had something to do with the JAVA_HOME or JRE_HOME…

either way, how can i check if the port is blocked?

You could try running the following command from a terminal window:

telnet cl.backendless.com 6379

ok i tried and this is what i got:

telnet cl.backendless.com 6379

Trying 54.85.102.239…

telnet: connect to address 54.85.102.239: Operation timed out

telnet: Unable to connect to remote host

Are you on a corporate network?

I’m on a university network

Looks like they are blocking access to a non-standard port (6379). Try contacting the IT and ask them to open it for you.

ok i’ll do that thanks!

I am facing same problem when trying to use CodeRunner on Ubuntu 16.04 and this the output i got.

[INFO] JDK from “JAVA_HOME” - /usr/lib/jvm/java-8-oracle/jre/bin/java
[INFO] JRE from “JRE_HOME” - not set.
[WARN] WARNING! It appears you do not have JAVA_HOME and JRE_HOME environment variables set.
This is not necessarily a problem, but it may lead to errors during CodeRunner execution.
If you experience problems related to security policy permissions, the JAR utility or others,
please try setting up the JAVA_HOME environment variable by pointing it to the root directory
of your JDK location (must be version 1.8 or higher).

I tried that command and this is the output
Trying 167.114.222.172…
Connected to cl.backendless.com.

Hi, Anusha.
At first, the address cl.backendless.com (167.114.222.172) is alive and responds on request. You can check this with telnet or redis-cli.

In the second place (it is not necessarily a problem, but it should be properly configured)
"[INFO] JDK from “JAVA_HOME” - /usr/lib/jvm/java-8-oracle/jre/bin/java "
I see in this message, that you set for variable JAVA_HOME the “jre” location, but instead it should target to “jdk”.

What about this

Program jar not running

Capture1.JPG

You need to add jdk/bin folder to the PATH environment variable, so that jar.exe is available in command prompt. Please google for some tutorials on how to do that, for example, this one: http://introcs.cs.princeton.edu/java/15inout/windows-cmd.html
After that you can check whether you’ve done all correctly by running the following command in the command prompt:

jar -version