This week's book giveaway is in the Cloud forum.
We're giving away four copies of Terraform in Action and have Scott Winkler on-line!
See this thread for details.
Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

IntelliJ Naming convention in project structure

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

When I look at online tutorials about JavaFX programming the project structure looks different then the one I see when I create a new JavaFx project.

In the tutorials used online the new project the structure looks like this:

SRC >> sample >> controller, main and sample.fxml

My structure looks like this:

src >> main >> java >> sample.demo2 >> HelloApplication and HelloController

src >> main >> resources >> sample.demo2 >> hello-view.fxml


Is this because I use a newer version of Intellij than is used in the course or can I adjust this ?

Thank you very much in advance.
 
Sheriff
Posts: 22512
122
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your IntelliJ project uses Maven, the tutorial project doesn't. In Maven, there is a separation between Java class sources (src/main/java/<package>) and other files, called resources (src/main/resources). When you do a build, the two are merged, and the src/main/java and src/main/resources prefix are no longer present.

I wouldn't worry about this. It's just a different way of structuring your files. The end result is the same.
 
John Hermes
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rob Spoor wrote:Your IntelliJ project uses Maven, the tutorial project doesn't. In Maven, there is a separation between Java class sources (src/main/java/<package>) and other files, called resources (src/main/resources). When you do a build, the two are merged, and the src/main/java and src/main/resources prefix are no longer present.

I wouldn't worry about this. It's just a different way of structuring your files. The end result is the same.



Thank you very much.

you've put my mind at ease!
 
Rob Spoor
Sheriff
Posts: 22512
122
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're welcome.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic