Thanks for your reply.
Did you use standard Javac or Rational Rose?
I wrote simple TestingClass.java
package ext.test; import java.io.File;import java.io.FileWriter;publicclass TestingClass { publicstaticvoid main (String[] args) { try{ FileWriter outputStream = new FileWriter("C:\\test\\helloworld.txt"); for (int i = 0; i < 25; i++) { outputStream.write("Hello World!" + "\r\n"); } outputStream.close(); }catch (Exception e) { e.printStackTrace(); } }}
Placed it inside of <wc.home>\codebase\ext\test
compiled using javac ext\test\TestingClass.java
<wc.home>\codebase\ext\test\TestingClass.class was created
Then I used my class in Workflow Expression
try{ ext.test.TestingClass();}catch (Exception e) { e.printStackTrace();}
syntax check returned
Checking Syntax...
e:\Windchill_9.0\Windchill\temp\WfExpression269079314.java:39: package ext does not exist
ext.test.TestingClass(); ^
1 error
Syntax check complete.
I catched similar exception at runtime