Javatar
Javatar copied to clipboard
Running Applet Code
Firstly, great extension! Works great for desktop apps, but it wont run applets. When the option to run the main class is selected, an error is returned which says the selected class is not the main class. Is this my fault or something the extension cannot do?
No, Javatar doesn't support Applet since it must be used on a website (as far as I know, corrected me if I'm wrong). Javatar main class support only Java applications that contain main method. If your applet can be run as normal application, you have to add main method in order to run it in Javatar.
Yes, you are correct that applets run on a webpage. To open an applet, you simply need an HTML document with the following tag
I don't expect that you would want to wire a browser plugin, but I also don't imagine it would be too difficult to generate this HTML and open it in the computers default browser.
Java also comes with an application called appletviewer, I'm not sure what this is exactly, but jGRASP uses it when running applets.
Oops, the tag didn't show up :P "<applet code=$main_class width= height= >"
erg. The applet tag...
Yes, it's not that hard to generate HTML but I'd preferred to do it if it can be run inside Sublime Text. That way, you don't have to switch between both programs.
I'll take a look at appletviewer, if it have any potential that it can be added into Javatar, then I'll implement it.
Running applet can be implemented into Javatar but, however, appletviewer is not working on OS X (ref) and that might get some expectation for OS X users when implemented.
I will marked this issue as optional, this will not be implemented until it get some interests from another user or until I think this have to be implemented or the problem as mentioned has been resolved.