Hi, i recently tried to work with java, i use eclipse IDE becouse its free and it was recommended to me by a friend. I created a project and added the library JavaSE-17 and i have it installed too. When i try to import org.bukkit.plugin.java.JavaPlugin; it gives me an error that it cant find the package when i installed it like i said. Can somebody please help me?
#Help with java
1 messages · Page 1 of 1 (latest)
<@&987246527741304832> please have a look, thanks.
You have to download the package individually
Per default, only the jdk is installed
You have to find the bukkit developer kit, install it and add it to your project
Also good, eclipse is my IDE of choice too
(FYI intellij is free as well)
(thats fair)
Whatever the asker wants
I just think eclipse is better at automated/suggested imports
And more
(im only mentioning it bc that "because its free" sounded like if others wouldnt be)
True true
I think it would be better for you to tell what do i have wrong here becouse I think i installed the libraries right
u should probably delete that module-info.java file unless ur actively wanting to create a modularized project
but then u also have to give it the proper content
it can be a bit annoying that eclipse creates this by default, unless u know what ur doing
ur line 5 is incorrect java syntax
u cant put a semicolon there
u need to open the class
public class Main extends JavaPlugin {
...
}
if the issue still persists after following both steps it would help if u share some screenshots of where u setup that library
i.e. where u added it to eclipse
for example, it might perhaps only be added as documentation-jar, not binaries etc or similar stuff
You first need to learn java
You can't just make a plugin like that
MOOC is a completely free introductory Java course created by the University of Helsinki, it is a great way to learn Java from the ground up.
It consists of two parts, one at beginner, and another at intermediate level. The end of the course is marked by creating your own Asteroids game clone!
Even though the instructions show how to configure and use NetBeans for the course, you can use IntelliJ. To use IntelliJ, simply install the TMC plugin by opening IntelliJ -> File -> Settings -> Plugins and searching for TMC. You will then be able to use IntelliJ to complete MOOC.
Visit MOOC here: https://java-programming.mooc.fi/
(the course is available in both English and Finnish)
alathreon • used /tag id: mooc
·
About the course - Java Programming