Compiling from Command Line
Basically I'm forced to provide a way to compile my project without using external tools or dependencies. Only jar in the project is an hsqldb file. Please help me

37 Replies
⌛
This post has been reserved for your question.
Hey @coffeecat9492! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
do i want to help you

Why are you mocking my shitty folder structure, it's my current trash directory
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I already compiled
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View

Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I'm aware of that too
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View

Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Holy hug it worked! Somewhat
This one's probably going to help little lol eh...

Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Yeah, but it runs in the IDE, so there's something missing
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Do I have to specify the resorces somewhere or just copy it over?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Well, it's in here. Maybe I hugged the folder structure ehhh.....
sec
No, seems in the right place, I'm using filepath /resources/xzy.txt tho... maybe something to do with the path?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
"resources/client.config" nevermind
It's correct
Do you have different source and resource folders?
Did you tell Java where the resources are?
or are they copied to your build directory?
I just copy pasted them
Oh yeah, it's in the source folder next to com/
Where are the resources copied to?
Like what does the directory structure look like?
And how are you loading them?
via the classloader.getResource
Structure is pretty simple

What do you pass to it?
yourClassLoader.getResource("resources/client.config")
?
Can you show the contents of build
?"resources/client.config" yes
Is it in
build/resources/client.config
?AHHHHH
wrong file
....
WRONG FILE
It's the server file
lol
Oh my hugging
Whee it works, now for making a script to automate that
How do I get it to register the jar?

Yeah, no idea... How are there so many solutions online and none of them work

sever is not a typo btw lol
runs as long as I don't specify a classpath
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one.