Creating the NetBeans Project

Create a NetBeans project.

The first step in creating a Simulation Assistant is to create a project in NetBeans. Each Simulation Assistant typically consists of an assistant class and numerous task classes. The assistant class provides the overall order for the tasks in your assistant, while the task classes contain the steps that perform actions in Simcenter STAR-CCM+.

Make sure that your installations of Simcenter STAR-CCM+ and NetBeans support the same Java Development Kit (JDK).. For example, in Simcenter STAR-CCM+ version 2302, java libraries use Java Development Kit (JDK) 17, which requires Apache NetBeans 12.5 or upwards.

Note If you require assistance in setting up NetBeans or your project, refer to Creating a Simulation Assistant Project in NetBeans in the Simcenter STAR-CCM+ user guide.
Create and prepare a new project in NetBeans:
  1. Launch NetBeans and select Java with Ant from the Categories list.
  2. Select Java Application from the Projects list, click Next and name the project InternalFlowAssistant.


  3. While creating the project, do not create the main class.
  4. Add two Java packages to the project’s source package and name them:
    • Assistant
    • XHTML
  5. Load the Simcenter STAR-CCM+ libraries into your NetBeans project. You must import the .jar files that are located in the following directories:
    • [STAR-CCM+_Installation]/star/lib/java/platform/core
    • [STAR-CCM+_Installation]/star/lib/java/platform/core/locale
    • [STAR-CCM+_Installation]/star/lib/java/platform/lib
    • [STAR-CCM+_Installation]/star/lib/java/platform/modules
    • [STAR-CCM+_Installation]/star/lib/java/platform/modules/ext
    • [STAR-CCM+_Installation]/star/lib/java/platform/modules/locale
    NoteIf you are creating the project on a Windows platform, it is recommended that you copy and paste the Simcenter STAR-CCM+ libraries to the root directory of your system, for example: C:\STAR-CCM+ Libraries. When building code, Windows has a limitation of how large the path to the libraries can be. In the default Simcenter STAR-CCM+ installation directory, the Simcenter STAR-CCM+ libraries would contain paths that are too long. When building the project, this would cause problems.
The project is displayed below.