CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   Macro scripting in netbeans, importing star libraries (https://www.cfd-online.com/Forums/star-ccm/114634-macro-scripting-netbeans-importing-star-libraries.html)

laurensvd March 14, 2013 10:27

Macro scripting in netbeans, importing star libraries
 
Hello everyone.

After scripting some of my macros in a standard text editor I decided itīs time to increase productivity / scripting complexity by switching to netbeans. Although I imported the star-codemodule.jar in my libraries the program does not recognise the star-ccm+ specific classes (i.e. 'import star.common.*;' already throws an error). I am using netbeans 6.9, java 1.6 and am scripting for Star-CCM+ 6.04.016.

Can anyone tell me how I can properly link those libraries in netbeans? Help would be very appreciated.

Greetings,
Laurens

abdul099 March 21, 2013 17:18

Link ALL *.jar files in ALL subdirectories of

Windows:
CCMP-installation-directory/java/platform/core
and
CCMP-installation-directory/java/platform/modules

Linux:
CCMP-installation-directory/star/lib/java/platform/core
and
CCMP-installation-directory/star/lib/java/platform/platform

laurensvd March 31, 2013 10:02

Thanks, that did the trick.

pk2296 October 31, 2020 22:06

I get the same error, with NetBeans 12.1 and StarCCM+ 14.04.011 with JDK 11. I have tried linking all the .JAR files in both these paths, to no avail. Please let me know if you think I'm doing something wrong.

(Common modules like import star.common.*; import star.base.neo.*; import star.vis.*; are not identified by the IDE.)


All times are GMT -4. The time now is 00:31.