B4J Question Run a jRDC2 on a VPS - java file cannot execute

achtrade

Active Member
Licensed User
Longtime User
I'm starting the server with this:

nohup /home/mj/Apps/jre1.8.0_45/bin/java -jar jRDC.jar > nohup.out &

but I'm getting this error:

/home/mj/Apps/jre1.8.0_45/bin/java cannot execute binary file

I double checked that the java file has execute permission and that the file is in that path.

How can I fix this.

Thanks.
 

Attachments

  • java-error.jpg
    java-error.jpg
    39 KB · Views: 317

achtrade

Active Member
Licensed User
Longtime User
Many developers run it on VPS.

How can you run the old RDC if you can't run java -version ? The problem has nothing to do with jRDC2. You are unable to run java itself.
Erel,

What could be the problem ? I did what your tutorial says
 
Upvote 0

achtrade

Active Member
Licensed User
Longtime User
How are you running the old RDC?

I'm using something like this:

nohup /home/mija/RDC-Server/jdk1.7.0_79/bin/java -cp .:libs/*:jdbc_driver/* anywheresoftware.b4a.remotedatabase.RemoteServer > nohup.out
 
Upvote 0

achtrade

Active Member
Licensed User
Longtime User
With the new jRDC2 a did this:

1. Download this file jre-8u162-linux-x64.tar.gz from oracle.com
2. unzipped in my W10 PC using WINRAR
3. Uploaded all the unzipped files to my VPS using FILEZILLA

I executed this in the VPS

nohup /home/mija/Apps/jre1.8.0_45/bin/java -jar /home/mija/Apps/EatR/jRDC.jar > nohup.out

it's not running. My jRDC.jar is inside of a different folder "EatR". I tried with both java folder "jdk1.7.0_79" & "jre1.8.0_45" I got the same error:

/home/mija/Apps/jre1.8.0_45/bin/java: /home/mija/Apps/jre1.8.0_45/bin/java: cannot execute binary file
 
Last edited:
Upvote 0

OliverA

Expert
Licensed User
Longtime User
Are you even executing the java executable from the 8u162 version that you downloaded? All I see you mention is trying 7u79 and 8u45 (Post #16 you mention downloading 8u162, but the post above this one only seems to try 8u45 and 7u79).
 
Upvote 0

achtrade

Active Member
Licensed User
Longtime User
How did you install Java 1.7.0_79 on the server? You should do the same think with Java 8 or 9.
I didn't install it, with my old RDC I did like this:

1. Download this file jre-8u162-linux-x64.tar.gz from oracle.com
2. unzipped in my W10 PC using WINRAR
3. Uploaded all the unzipped files to my VPS using FILEZILLA
 
Last edited:
Upvote 0

udg

Expert
Licensed User
Longtime User
Maybe this tutorial can help.
 
Upvote 0
Top