#My build dont compile

111 messages · Page 1 of 1 (latest)

drowsy scarabBOT
#

This post has been reserved for your question.

Hey @oak swan! 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.

oak swan
#
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();
    }
}```
drowsy scarabBOT
#

<@&765578700724371486>

Requested by Steelfri#0031
oak swan
#

Please, i cant do nothings without this

nocturne sleet
# oak swan

You don't run build to make a jar, you make artifacts in the project structure and build those

oak swan
#

How i make a jar ?

nocturne sleet
#

press Ctrl+Alt+Shift+S

#

(if ur on windows, otherwise idk the mac keybind lol)

oak swan
nocturne sleet
#

yes

#

click on Artifacts

#

on the side of the window

#

press the +

oak swan
#

Yes

nocturne sleet
#

click jar

#

then modules with dependencies

#

then press OK

#

and then OK again at the bottom of the window

oak swan
#

Yes

nocturne sleet
#

then at the top of the screen, press build

#

then build artifacts

#

then press enter

#

and it should build

oak swan
#

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

oak swan
nocturne sleet
#

yeah that should work

#

Btw i recommend making your classes capitalized

#

E.g. main should be Main

oak swan
#

So because my plugin.yml dont compile i cant run the plugin

nocturne sleet
#

hm

nocturne sleet
#

idk why it doesn't work

#

as it's fine for me

#

try adding the plugin.yml to the jar manually

oak swan
#

alr

nocturne sleet
#

Wait @oak swan show the logs

#

the build logs

oak swan
#

wait

#

tf

nocturne sleet
#

try building again

#

Build -> Build Artifacts -> Build

oak swan
#

now its corrupted and 1ko

nocturne sleet
#

you don't run

#

a plugin

oak swan
#

?

#

hein

nocturne sleet
#

try to run

#

any plugin

#

on your server

#

it wont work

#

it's not a runnable jar file

oak swan
#

nah its corrupted

nocturne sleet
#

you dont manually run it with double click / enter

nocturne sleet
oak swan
#

idk bro

nocturne sleet
#

did it give you that error when you opened in winrar?

oak swan
#

i change nothings

oak swan
nocturne sleet
#

but

#

did you get that error when trying to open with winrar

oak swan
#

look

#

its building the content of my export directory

nocturne sleet
#

did u press

#

the build button

#

the hammer

#

or

#

the build here

#

Also i think i know what you're doing wrong

nocturne sleet
#

C:/users/root/desktop/spigot/plugins/

oak swan
#

the build "here"

#

yes

#

thats the directory

nocturne sleet
#

No

#

ait

#

wait

#

Does bureau

#

mean desktop

oak swan
#

Yes

#

in french

nocturne sleet
#

ok

#

send that jar

oak swan
nocturne sleet
#

show the

#

artifact ur using

#

this area

#

take a pic of that

oak swan