#My build dont compile
111 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @oak swan! Please use
/closeor theClose Postbutton 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.
package test.steelfri.test;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public class main extends JavaPlugin {
@Override
public void onEnable() {
Bukkit.getConsoleSender().sendMessage(
"§9" + getDescription().getName() + " activé!\n" +
"§ePlugin créé par " + getDescription().getAuthors() + "\n" +
"§9Version : " + getDescription().getVersion() + "\n" +
"§9" + getDescription().getDescription()
);
super.onEnable();
}
@Override
public void onDisable() {
super.onDisable();
}
}```
<@&765578700724371486>
Please, i cant do nothings without this
You don't run build to make a jar, you make artifacts in the project structure and build those
How i make a jar ?
Yes
click jar
then modules with dependencies
then press OK
and then OK again at the bottom of the window
Yes
then at the top of the screen, press build
then build artifacts
then press enter
and it should build
How build artifacts
it create a folder again
i click on the hammer right ?
or the build section
ok
its ok
i find
thx bro
u save me
I have another problem, it doesnt compile all my file only the class not the plugin.yml
Do you know why ? @nocturne sleet
hmm
yeah that should work
Btw i recommend making your classes capitalized
E.g. main should be Main
hm
it should work
idk why it doesn't work
as it's fine for me
try adding the plugin.yml to the jar manually
alr
now its corrupted and 1ko
try to run
any plugin
on your server
it wont work
it's not a runnable jar file
nah its corrupted
you dont manually run it with double click / enter
what did you do
idk bro
did it give you that error when you opened in winrar?
i change nothings
its with winrar
i know
but
did you get that error when trying to open with winrar
did u press
the build button
the hammer
or
the build here
Also i think i know what you're doing wrong