cloverGUI

Not sure if this is the right place to ask GUI questions! Let me know if not.

I just started experimenting with GUI, and I am having trouble with “reformat”. While running I get error saying “dynamic java code has compile errors!”. Independently, the java code compiles successfully! The error message point to a file (*.java.err) for error details, but that file does not exist.

Any thoughts?

Thanks
Akhil

relevant error message–>
INFO: (compiling dynamic source)
Jan 9, 2006 9:28:46 AM org.jetel.util.Compile compile
WARNING: …can’t locate class sun.tools.javac.Main - will use external javac
Jan 9, 2006 9:28:47 AM org.jetel.graph.Phase init
SEVERE: REFORMAT0 …FATAL ERROR !
java.lang.RuntimeException: Error(s) when compiling: C:\DOCUME~1\agupta\LOCALS~1\Temp\CloverReformat.java
- compiler output can be found in: C:\DOCUME~1\agupta\LOCALS~1\Temp\CloverReformat.java.err
at org.jetel.util.DynamicJavaCode.compile(Unknown Source)
at org.jetel.util.DynamicJavaCode.instantiate(Unknown Source)
at org.jetel.component.Reformat.init(Unknown Source)
at org.jetel.graph.Phase.init(Unknown Source)
at org.jetel.graph.WatchDog.runPhase(Unknown Source)
at org.jetel.graph.WatchDog.run(Unknown Source)
Jan 9, 2006 9:28:47 AM org.jetel.graph.WatchDog run
INFO: [WatchDog] !!! Phase finished with error - stopping graph run !!!
Jan 9, 2006 9:28:47 AM org.jetel.graph.TransformationGraph run
INFO: [Clover] WatchDog thread finished - total execution time: 1 (sec)
Jan 9, 2006 9:28:47 AM org.jetel.graph.TransformationGraph run
INFO: [Clover] !!! Graph execution finished with errors !!!
Failed starting graph !

-—
I couldn’t find C:\DOCUME~1\agupta\LOCALS~1\Temp\CloverReformat.java.err file in my pc.

Thanks
Akhil

Specifying the class name worked.

Thanks a bunch! Can’t wait to try out the new GUI!

Akhil

Hello Akhil !

I have created a new forum focused on CloverGUI, so we should move there.

Anyway, the error file shoud be in your temp directory - where java.io.temp system property points to.
Make sure you have all neccessary libraries imported to your project when executing any graph from GUI - see the documentation.
If you manage to compile the class outside GUI, then use your compiled class instead of source code - just tell REFORMAT the name of your class (but must be also imported/part of the CLASSPATH).

The new version of GUI has built-in transformations/mappings editor which greatly reduces problems with creating and compiling transformation methods. It will be released within a week or so.

David.