Vertex attribute layout qualifiers have been introduced in GLSL 1.50.
So you would at least need to use #version 150 or you could use #version 130 and omit the layout qualifiers in the GLSL vertex shader and query the automatically assigned attribute indices afterwards in Java via glGetAttribLocation(programId, "position") and glGetAttribLocation(programId, "tc").
I am guessing that the above is the "other errors" you are getting. But in general, when you get any errors then ALWAYS paste them verbatim how the driver logs them. Otherwise, people will always best-guessing what you could probably mean by "other errors".