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:

amarnath

Member
Licensed User
Longtime User
You can sign up using my referral link so I can also earn some credits while you can enjoy 20% discount:
https://hostinger.my?REFERRALCODE=C2CAERIC8GAF

View attachment 169512
It’s 1:40 AM in India. I’ll purchase it early this morning at 10 o’clock. Please guide me

1769112769788.png
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
It’s 1:40 AM in India. I’ll purchase it early this morning at 10 o’clock. Please guide me
Once you purchased the VPS plan, read the instructions from the email to login to the panel.

Once you are logged in to the panel, click VPS in the panel and click Manage.
Find the SSH setting and copy the password to use in WinSCP.
There are some Tutorials you can find at the bottom of the panel.

Install an Operating System (you can choose Ubuntu or Debian).
Choose India as the location so you get lower latency (best connection for you).

Also try to ask Kodee, the AI agent chat bot.

The jRDC setup is what I have showed above.
 
Last edited:
Upvote 0

amarnath

Member
Licensed User
Longtime User
Once you purchased the VPS plan, read the instructions from the email to login to the panel.

Once you are logged in to the panel, install an OS (you can choose Ubuntu or Debian).
Choose India as the location if you are in India so you get lower latency (best performance for you)

There are some tutorials you can find at the bottom of the panel.

Click VPS in the panel and copy the password to use in WinSCP.

The rest is what I have showed above.

Also try to ask Kodee, the AI agent chat bot.
Thanks to you, I got a 20% discount.
I hope you will cooperate if there is ever a problem.
Thank you for giving me such valuable time.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
I recommend choosing Plain OS image. So far I don't find any OS with Panel is helpful.

Edit: You can decide to install any Panel to the OS later.
I have not much experience on these panels except for CPanel and Plesk but these panels are not free.
For free alternatives, I think Easypanel and HestiaCP are worth a try.
 
Last edited:
Upvote 0

aeric

Expert
Licensed User
Longtime User
It’s 1:40 AM in India. I’ll purchase it early this morning at 10 o’clock. Please guide me

View attachment 169513
I just realized this Business plan is not VPS plan. DON'T BUY this plan!
You need to click the top menu Services and choose VPS showing KVM.

Choose a plan and period (1 / 12 / 24 months) and server Location

KVM1 plan with 12-months + domain name
1 vCPU core
4 GB RAM
50 GB NVMe disk space
4 TB bandwidth
Referral Link (Discount 20%): https://www.hostinger.my/cart?produ...erral_id=019be9fe-7dbd-713b-b8e2-32c2d5b7fda4

KVM2 plan with 24-months (+2 months) + domain name
2 vCPU cores
8 GB RAM
100 GB NVMe disk space
8 TB bandwidth
Referral Link (Discount 20%): https://www.hostinger.my/cart?produ...erral_id=019be9fe-fe62-72fb-aaa2-b61d5ce65fde
 
Upvote 0

amarnath

Member
Licensed User
Longtime User
I just realized this Business plan is not VPS plan. DON'T BUY this plan!
You need to click the top menu Services and choose VPS showing KVM.

Choose a plan and period (1 / 12 / 24 months) and server Location

KVM1 plan with 12-months + domain name
1 vCPU core
4 GB RAM
50 GB NVMe disk space
4 TB bandwidth
Referral Link (Discount 20%): https://www.hostinger.my/cart?product=vps:vps_kvm_1&period=12&referral_type=cart_link&REFERRALCODE=C2CAERIC8GAF&referral_id=019be9fe-7dbd-713b-b8e2-32c2d5b7fda4

KVM2 plan with 24-months (+2 months) + domain name
2 vCPU cores
8 GB RAM
100 GB NVMe disk space
8 TB bandwidth
Referral Link (Discount 20%): https://www.hostinger.my/cart?product=vps:vps_kvm_2&period=24&referral_type=cart_link&REFERRALCODE=C2CAERIC8GAF&referral_id=019be9fe-fe62-72fb-aaa2-b61d5ce65fde
1769179767771.png
 
Upvote 0

amarnath

Member
Licensed User
Longtime User
Maybe you need to ask your bank or check whether your credit card can make online payment. Does it have 2FA?
Try other payment method or cards.
I’ve tried four different debit cards, but I’m still having the same issue. I’ll try again on Monday since banks are closed on Saturdays in India. Paytm isn’t available in my region either, and my debit card doesn’t support Net Banking.
 
Last edited:
Upvote 0

amarnath

Member
Licensed User
Longtime User
I have purchased the following VPS plan from Hostinger:

Plan: KVM 2 (1-year subscription)
Resources:
2 vCPU cores
8 GB RAM
100 GB NVMe SSD storage
8 TB monthly bandwidth
SSH Access Details:

Hostname: srv1293718.hstgr.cloud
IP Address: 82.112.236.198
Username: root
SSH Command: ssh root@82.112.236.198
Root Password: D#########


1769274175653.png
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
I have purchased the following VPS plan from Hostinger:

Plan: KVM 2 (1-year subscription)
Resources:
2 vCPU cores
8 GB RAM
100 GB NVMe SSD storage
8 TB monthly bandwidth
SSH Access Details:

Hostname: srv1293718.hstgr.cloud
IP Address: 82.112.236.198
Username: root
SSH Command: ssh root@82.112.236.198
Root Password: D#########


View attachment 169553
Try refer to my replies in post #5 and #6.
 
Upvote 0

amarnath

Member
Licensed User
Longtime User
I'm not here to offer help. I don't have a server. So I can't help you.
But I just wanted to say,
Aeric, you're a good person.
Aeric sounds like someone with a genuinely helpful and compassionate spirit, especially staying up late to support others. That kind of selflessness inspires stronger communities. May you both continue to uplift others the way you’ve been uplifted.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
If you have put some logs in the code, you can check by opening the nohup.out to see the logs.
Update the rdcLink in your client app
Eg. http://82.112.236.198:17178/rdc
Try make access using the client app.

You can use my jRDC2 server and client template with default compilation which link to SQLite database.
If test is success, you can switch to MySQL.

To install MySQL, you can refer to :
 
Last edited:
Upvote 0

teddybear

Well-Known Member
Licensed User
It’s all good so far. What are the next steps?

View attachment 169557
Nohup, short for no hang up, is a command in Linux systems that keep processes running even after exiting the shell or terminal.
It is typically used to deploy your application in a production.
For debugging, you can run java -jar jrdc2.jar directly, it will show the log.
 
Upvote 0

amarnath

Member
Licensed User
Longtime User
Nohup, short for no hang up, is a command in Linux systems that keep processes running even after exiting the shell or terminal.
It is typically used to deploy your application in a production.
For debugging, you can run java -jar jrdc2.jar directly, it will show the log.
1769376911912.png


1769378719612.png
 
Upvote 0

amarnath

Member
Licensed User
Longtime User
Hi, I've running RDC server and works fine. but URL always shows this.



root@srv1293718:/opt/jrdc2# java -jar jRDC2.jar

2026-01-30 21:00:41.130:INFO :eek:ejs.AbstractConnector:main: Started ServerConnector@5cee5251{HTTP/1.1, (http/1.1)}{0.0.0.0:17178}
2026-01-30 21:00:41.132:INFO :eek:ejs.Server:main: Started Server@2a3b5b47{STARTING}[11.0.9,sto=0] @450ms
jRDC is running (version = 2.23)

RemoteServer is running (01/30/2026 20:32:00)
Error fetching connection.

1769806940133.png




where is my problem



1769807230362.png
 
Upvote 0

teddybear

Well-Known Member
Licensed User
RemoteServer is running (01/30/2026 20:32:00)
Error fetching connection.
Apparently, the database connection pool configuration does not work.
1. check if mysql server is started.
2. is the connection pool configuration correct?

You can test it using the http://82.112.236.198:17178/test
It will show
RemoteServer is running (01/31/2026 09:51:01)
Connection successful.

Also you can see the runnning log on the terminal console
 
Upvote 0
Top