CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Siemens (
-   -   STAR-CCM+ Java class (

Claudene July 17, 2008 04:37

STAR-CCM+ Java class
I have design a Java class to be called from a STAR-CCM+ macro. But I've got the error: ...17: cannot find symbol symbol : class javatest

I set the variable CLASSPATH before starting starccm+ but it didn't solve the problem. I have also tried to set from menubar Tools->Options->"STAR-CCM+, Environment", „User macro classpath" but it also not works.

Here you can find my steps: change directory: cd /home/cre/StarCCM compiling Java program (/home/cre/StarCCM/ javac "d /home/cre/StarCCM I'm using Bash, so: export CLASSPATH=/home/cre/StarCCM starting STAR-CCM+: starccm+ Start the server connection and run the starccm+ macro. The error above is printed out.

The public class javatest{ public javatest(){} public void print(){

System.out.println(" # Class javatest called");} }

STARCCM+ macro: ... public void execute() { javatest myobj = new javatest(); myobj.print(); ...

I'll appreciate any kind of suggestion. Thanks in advance.

Claudene July 17, 2008 05:49

Re: STAR-CCM+ Java class
Solved!! I save the STARCCM+ macro and my code saved on the directory


both java code has now in the first line

package javatest;

the macro saved from STARCCM+ has the line 'package macro;', I took it out.

that's it!!!

All times are GMT -4. The time now is 22:06.