#Java Packages

12 messages · Page 1 of 1 (latest)

analog ibexBOT
#

This post has been reserved for your question.

Hey @tough skiff! 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.

true heron
#

it doesn't, you're free to name it whatever, even dev.drwarpman. the common approach to that would be me.drwarpman tho, but no one enforces package names

#

the pom.xml file is a guide to maven on how to build your project. if you change your package layout, make sure to update it there aswell

#

whatever/package/name/ClassName would be whatever.package.name.ClassName. each package segment is its own folder. You can put your class whereever you like

#

make your default package, for example me.drwarpman, and put all the classes that belong to you in that package. make subpackages when needed, such as me.drwarpman.subpackage

#
  1. src means the source folder, main denotes the main source set, java tells you the language. src/main/resources would be the resources for the main sourceset, src/main/kotlin would be kotlin source code of the main sourceset. note that src/main/java isn't part of the package name, org.example is tho
    5.1 different source sets, if you have multiple
    5.2 see 5
true heron
#

that would be a good one, yes

#

you can just make up a name, no one enforces the package name convention

#

yea

true heron
#

bananabeer

#

afaik the naming convention is to use all lowercase, no _