Question:
Java and Textpad 7 issues?
Pyrus
2013-07-29 10:18:31 UTC
So, I've downloaded JDK 1.7.0_25 and Textpad 7 since I need to run Java applications, but the problem is that I don't know how to compile from my textpad. It seemed like I had to manually add the tools. And that's what I did. But I had to remember how I first started... When using command prompt ONLY, without the usage of textpad. So, java and javac commands. I went to preferences, gave the correct commands, and to my surprise, they actually worked (Oh, and I DID add that path for the "Enviroment Variable" thing from the Control Panel). Anyways, What I'm trying to say is, that we reached the lessons about Java Applets, and all the computers in my university have the command in textpad already built in or something... So I was wondering, how can I manually add this command? I mean, I tried using the command appletviewer, but it didn't work. It only showed me ("Press any key to continue"), and nothing else, no panel no nothing!.So I searched the path (C:\Program Files\Java\jdk 1.7.0_25\bin\appletviewer.exe) and added it like that, but AGAIN I got the same thing! Now, I'm sure my program is 100% correct, and I specifically brought it back home so that I can use it to test this command and make it run on my computer, and so that I can use it for other JApplet programs I write.

So basically the question is, how can I manually add the tool to run JApplet programs?
Five answers:
husoski
2013-07-29 10:55:54 UTC
I've been using TextPad for simple Java programs since TextPad 3. I haven't upgraded from 6.2.2 yet, so I can't even try to test 7, but what I recall is that there was a one-time-only special setup in the Configure>Preferences... dialog under Tools that would add the three Java tools:

1 : Compile Java

2 : Run Java Applet

3 : Run Java Application



In most cases, with editors and IDEs, things work out best if you add the compiler and development kits before trying to install the IDE/Editor. With TextPad, it's better if you use the interally-generated tools above, instead of trying to create your own.



That's especially true with applets. The appletviewer.exe tool from the JDK runs an HTML file, not a Java class. TextPad has a special feature in the internally-generated "Run Applet" tool that creates a temporary HTML page with just the named applet in it, and launches appletviewer to display it.



That's not possible in the command setup for user-defined tools, so you's have to make your own tool to duplicate the TextPad functionality, and then use your tool as a front-end for appletviewer. That won't be as easy as just letting TextPad do it.



The TextPad Java FAQ might be helpful:

http://www.textpad.com/support/faq/java.html



@McFate: I agree for anything serious. A full-featured IDE is nice. However, I can get a simple test of a computational idea or syntax twist coded and run under TextPad in the time it takes either Eclipse or NetBeans to simply launch. (...or so it seems, sometimes. :^)
Batsheva
2015-08-10 13:36:34 UTC
This Site Might Help You.



RE:

Java and Textpad 7 issues?

So, I've downloaded JDK 1.7.0_25 and Textpad 7 since I need to run Java applications, but the problem is that I don't know how to compile from my textpad. It seemed like I had to manually add the tools. And that's what I did. But I had to remember how I first started... When using...
?
2016-11-13 11:40:40 UTC
Textpad 7
McFate
2013-07-29 10:42:55 UTC
Instructions here:

http://www.textpad.com/support/faq/java.html



But, honestly, if you're developing on a machine under your own control, I'd suggest you use NetBeans or Eclipse instead. They not only integrate with the JDK, they let you step through individual lines with a debugger, inspect instance variables, etc.



@M
Preston
2013-11-13 09:16:13 UTC
Has anybody answered your question? I"m stuck in the same boat as you were. I tried asking everybody but they have no idea why it wasn't showing up or anything. I followed every worksheet and website but it didn't help.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...