java action

0
Buildfile: C:\Users\vignesh\Documents\Mendix\sample-main\deployment\build_core.xml compile:     [javac] Compiling 63 source files to C:\Users\vignesh\Documents\Mendix\sample-main\deployment\run\bin     [javac] C:\Users\vignesh\Documents\Mendix\sample-main\javasource\myfirstmodule\actions\ADD_STRING_JA.java:37: error: ';' expected     [javac]     public java.lang.String toString()     [javac]                                     ^     [javac] C:\Users\vignesh\Documents\Mendix\sample-main\javasource\myfirstmodule\actions\ADD_STRING_JA.java:53: error: ';' expected     [javac]     public java.lang.String toString()     [javac]                                     ^     [javac] C:\Users\vignesh\Documents\Mendix\sample-main\javasource\myfirstmodule\actions\ADD_STRING_JA.java:60: error: reached end of file while parsing     [javac] }     [javac]  ^     [javac] 3 errors BUILD FAILED C:\Users\vignesh\Documents\Mendix\sample-main\deployment\build_core.xml:30: Compile failed; see the compiler error output for details. Total time: 1 second what is the error here?  
asked
1 answers
0

This is the line causing the problem...

public java.lang.String toString()

It looks like you are trying to declare a variable called “toString” but you have added “()” to the end which defines it as a method instead.

The “toString” method should already be declared in your Java Action so you can’t redefine it. 

Hope this helps.

answered