Samsung TV apps aren't written in Java though, they are web apps.....
Application File Structure
Technically, a Smart TV application is a web page consisting of:
HTML page
Shows the application‘s structure. Samsung Smart TV SDK supports HTML5.
CSS file
Defines the application‘s style.
JavaScript file
Controls the application‘s behavior.
Config.xml file
Contains information on the operating environment and the application version. This file is required for running the application on a TV screen.
Optional Flash files