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
No description
37 Replies
JavaBot
JavaBot2y ago
This post has been reserved for your question.
Hey @coffeecat9492! Please use /close or the Close 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
0x150
0x1502y ago
do i want to help you
No description
coffeecat9492
coffeecat9492OP2y ago
Why are you mocking my shitty folder structure, it's my current trash directory
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
coffeecat9492
coffeecat9492OP2y ago
I already compiled
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
coffeecat9492
coffeecat9492OP2y ago
No description
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
coffeecat9492
coffeecat9492OP2y ago
I'm aware of that too
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
coffeecat9492
coffeecat9492OP2y ago
No description
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
coffeecat9492
coffeecat9492OP2y ago
Holy hug it worked! Somewhat
coffeecat9492
coffeecat9492OP2y ago
This one's probably going to help little lol eh...
No description
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
coffeecat9492
coffeecat9492OP2y ago
Yeah, but it runs in the IDE, so there's something missing
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
coffeecat9492
coffeecat9492OP2y ago
Do I have to specify the resorces somewhere or just copy it over?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
coffeecat9492
coffeecat9492OP2y ago
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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
coffeecat9492
coffeecat9492OP2y ago
"resources/client.config" nevermind It's correct
dan1st
dan1st2y ago
Do you have different source and resource folders? Did you tell Java where the resources are? or are they copied to your build directory?
coffeecat9492
coffeecat9492OP2y ago
I just copy pasted them Oh yeah, it's in the source folder next to com/
dan1st
dan1st2y ago
Where are the resources copied to? Like what does the directory structure look like? And how are you loading them?
coffeecat9492
coffeecat9492OP2y ago
via the classloader.getResource Structure is pretty simple
coffeecat9492
coffeecat9492OP2y ago
No description
dan1st
dan1st2y ago
What do you pass to it? yourClassLoader.getResource("resources/client.config")? Can you show the contents of build?
coffeecat9492
coffeecat9492OP2y ago
"resources/client.config" yes
dan1st
dan1st2y ago
Is it in build/resources/client.config?
coffeecat9492
coffeecat9492OP2y ago
AHHHHH wrong file .... WRONG FILE It's the server file
dan1st
dan1st2y ago
lol
coffeecat9492
coffeecat9492OP2y ago
Oh my hugging Whee it works, now for making a script to automate that How do I get it to register the jar?
coffeecat9492
coffeecat9492OP2y ago
No description
coffeecat9492
coffeecat9492OP2y ago
Yeah, no idea... How are there so many solutions online and none of them work
No description
coffeecat9492
coffeecat9492OP2y ago
sever is not a typo btw lol runs as long as I don't specify a classpath
JavaBot
JavaBot2y ago
💤 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.

Did you find this page helpful?