R
Railway10mo ago
Oliver_

Java server cant build

Hi, I have a group project where we currently have a server client in java. Our idea was to have the client on our local computers but the server hosted on Railway. Unfortunally I cant get the server to get a build. I keep runing into context: a27c8c3cdde36368d353a5b491cee25e. My project Id: 1fd637f3-03a9-4a02-8165-aa2d33b08eca
9 Replies
Percy
Percy10mo ago
Project ID: 1fd637f3-03a9-4a02-8165-aa2d33b08eca
Brody
Brody10mo ago
@aleks - need java help
root
root10mo ago
That doesn't look like an error to me - could you send your full logs using https://bookmarklets.up.railway.app/log-downloader/ ?
root
root10mo ago
Oh, you don't have any build system or anything set up. How do you usually compile your project?
Oliver_
Oliver_OP10mo ago
I usually compile using Intelij or terminal with Javac Would it be beneficial to use docker for example?
root
root10mo ago
Yeah, probably - sorry for not responding. Could you send an example of a command you would use to build that? I'm not familiar with how to build a build-system-less project with IntelliJ.
Oliver_
Oliver_OP10mo ago
To compile or build Ive added javac StartServer.java and to start Ive added java StartServer.java. I get this now;
root
root10mo ago
try using javac *.java as your build command and adding jdk21 to the packages for phase.setup.
Configuration File Reference | Nixpacks
App source + Nix packages + Docker = Image
Want results from more Discord servers?
Add your server