invalid method declaration; return type required
public labelValue(String value) {

codice:
import java.awt.*;

public class label extends Frame {
	
	Label labelObj = new Label();
	
	public labelValue(String value) {
		labelObj.setText(value);
		setTitle("Label " + value);
		add(labelObj);
		pack();
		show();
		return true;
	}
	
	public static void main(String[] args) {
		try {
			new labelValue(args[0]);
		} catch(ArrayIndexOutOfBoundsException err) {
			System.out.println("Error: set label value...");
		}
	}
}