B4J Question Need Help Deploying B4J (jRDC2) on Ubuntu VPS – Not Starting Properly

amarnath

Member
Licensed User
Longtime User
I’m trying to run a B4J server (jRDC2) on a Linux Managed Premium VPS with Ubuntu, but I haven’t been able to get it working after several attempts.
  • VPS: Ubuntu 22.04 (16 CPU, 32GB RAM, 640GB SSD)
I’m not a Linux expert, so I’d really appreciate simple, step-by-step instructions that work on a managed Ubuntu VPS.

"Enhance Panel"
I’m ready to follow instructions precisely — I just need guidance that matches a non-Linux-expert using a managed VPS with a control panel.
 
Last edited by a moderator:

aeric

Expert
Licensed User
Longtime User
Better remove your credentials.
To run the command, you need to use SSH client like Putty.
 
Upvote 0

teddybear

Well-Known Member
Licensed User
I don't think you can deploy B4J (jRDC2) on Ubuntu VPS with a control panel.
As aeric said, you need to log on the vps via a terminal first and then deploy B4J (jRDC2) by running the command.

 
Upvote 0

aeric

Expert
Licensed User
Longtime User
managed Ubuntu VPS
This means you get premium technical support from the hosting provider. I guess you can chat with them.
Even though I am using unmanaged VPS, they do provide chat bot and human support.

I’d really appreciate simple, step-by-step instructions
Even the hosting provides you a control panel, you still need to use the terminal to run some commands.
I guess there is a remote terminal run on browser but it is usually very slow.

Download:

WinSCP
I use WinSCP (FTP client) for transferring files between my desktop and the server.

Putty
You can install putty when installing WinSCP. You can click the icon (or Ctrl+P) to open putty.
I upload my server apps into /home directory.

1769093758516.png
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Download JDK 21: https://www.oracle.com/java/technologies/downloads/#java21

1769096731115.png


Upload to: /usr/lib/jvm

1769096959888.png


Use putty, login as root.
cd to the /usr/lib/jvm directory.
unzip the archive file using tar command tar -xzf jdk-21_linux-x64_bin.tar.gz (you can type jdk then press tab for auto-complete)

If there is already existed an older version of JDK, type the following command to install a new version.
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-21.0.10/bin/java 100
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk-21.0.10/bin/javac 100


Optional: Use the following command to configure the default version.
update-alternatives --config java

Check current default version:
java -version
1769097684542.png


Optional: Delete the tar.gz file

Upload the jar (and www folder if applicable)

1769099169835.png


Now you can run java server app using nohup as explained in this tutorial. (Rename result.jar as jrdc2.jar)
cd /home/jrdc2
nohup java -jar jrdc2.jar > nohup.out &
 
Upvote 0

amarnath

Member
Licensed User
Longtime User
This means you get premium technical support from the hosting provider. I guess you can chat with them.
Even though I am using unmanaged VPS, they do provide chat bot and human support.


Even the hosting provides you a control panel, you still need to use the terminal to run some commands.
I guess there is a remote terminal run on browser but it is usually very slow.

Download:

WinSCP
I use WinSCP (FTP client) for transferring files between my desktop and the server.

Putty
You can install putty when installing WinSCP. You can click the icon (or Ctrl+P) to open putty.
I upload my server apps into /home directory.

View attachment 169490
 

Attachments

  • Nt Err.png
    Nt Err.png
    96.8 KB · Views: 85
Upvote 0

aeric

Expert
Licensed User
Longtime User
Are you sure the SSH/Linux username is your email, not "root" ?
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
I may be wrong but the username doesn't seem right.

Do you get email stated the SFTP login information (SFTP usually use port 22)? (not FTP with port 21)
How do you login to the control panel?
Which VPS provider is this?
Once you login to the dashboard you should found the SSH root password settings.
I think you should login using "root" and the SSH password in putty.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Last edited:
Upvote 0

aeric

Expert
Licensed User
Longtime User
This is how a VPS dashboard panel should look like.
You should be able to choose to install an OS on a location and change the root access using SSH.
From what you have provided so far, you don't seem to login to a VPS.

1769107043120.png
 
Upvote 0

amarnath

Member
Licensed User
Longtime User
This is how a VPS dashboard panel should look like.
You should be able to choose to install an OS on a location and change the root access using SSH.
From what you have provided so far, you don't seem to login to a VPS.

View attachment 169505


I’m not an expert in Linux or server management, and I’m having trouble setting up my B4J jRDC2 server on my Ubuntu VPS.


1769108235164.png





I would really appreciate your guidance.


I am not an expert. Please help me.
I’m willing to provide my VPS login details (IP, username, and password) so you can set up the B4J server for me.
Could you please share your email address?
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
I’m having trouble setting up my B4J jRDC2 server on my Ubuntu VPS
You should be able to choose to install an OS on a location and change the root access using SSH.
From what you have provided so far, you don't seem to login to a VPS.
You need to get a real VPS plan.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Which is the best plan for VPS.
Depends on your location.
I recommend hostinger which has servers available in many countries.
I only get the cheapest VPS with 1 vCPU and 4GB RAM. It is sufficient to run several B4J server apps.
I can post a referral link if you are interested.
 
Upvote 0

amarnath

Member
Licensed User
Longtime User
Depends on your location.
I recommend hostinger which has servers available in many countries.
I only get the cheapest VPS with 1 vCPU and 4GB RAM. It is sufficient to run several B4J server apps.
I can post a referral link if you are interested.
1769110108252.png



please send referral link

1769110256447.png
 
Upvote 0
Top