Is anyone here familiar with TextPad?

  • Thread starter Thread starter pmb_phy
  • Start date Start date
AI Thread Summary
TextPad can be used as a text editor for Java programming, but it requires specific configuration to function properly. Users should navigate to Configure - Preference - and select Document Classes to ensure Java is set as the default class. It's also important to set up Associated Files and File Name Filters correctly. Issues may arise if the compilation process is not configured properly, leading to errors such as "NoClassDefFoundError." Users are advised to check the macros for "Compile Java" and "Run Java" to ensure they are executing the correct commands. Proper document class definitions are essential when saving files to avoid hidden issues that could affect compilation and execution.
pmb_phy
Messages
2,950
Reaction score
1
Is anyone here familiar with TextPad? I'm trying to use it as an interface for editing and running Java but I'm having problems. I don't know how to set it up to work with the Java environment.

Thanks

Pete
 
Computer science news on Phys.org
I use TextPad as a text (ASCII, txt, html) editor, except for Word documents.

Try going into Configure - Preference - and find Document Classes. One of the default classes is Java.

You might also have to set up Associated Files and File Name Filters.
 
I have no idea what kind of problem you're experiencing. There's really no such thing as a "Java environment." TextPad is a text editor. You can configure some macros to run command-line programs to compile and run your code, but, apart from that, there is no Java environment. Perhaps you could be a little more specific with your question?

- Warren
 
Astronuc said:
I use TextPad as a text (ASCII, txt, html) editor, except for Word documents.

Try going into Configure - Preference - and find Document Classes. One of the default classes is Java.

You might also have to set up Associated Files and File Name Filters.
I use TextPad as an editor too. I used it a few years ago when I was learning C++ and it was a great tool. But now I can't figure out what I'm doing wrong. E.g. I wrote this piece of code


// Fig. 2.1: Welcome1.java.
// A first program in Java.

public class Welcome1 {

// main method begins execution of Java application
public static void main( String args[] )
{

System.out.println( "Welcome to Java Programming!" );

} // end main method

} // end class Welcome1

Then I selected "Tools->Compile Java" and it took a few seconds and then in another window that popped up behind the code window and read

"Tool completed successfully"

Then I selected "Tools->Compile Java Application" and a DOS window popped up and said
Exception in thread "main" java.lang.NoClassDefFoundError: Welcome1
Press any key to continue . . .
Seems to me that there are some pathways that the computer can't find/doesn't know about. What do I do at this point? I'm not even sure that its compiling. :frown:

Pete
 
I am not versed in Java, so hopefully chroot can help. I don't know if the syntax of your code is correct or not, but I would wonder if Textpad is using the correct compilation or not, or if it is inserting stuff (equivalent of hidden or control codes?) that is unwanted.

But I am familiar with some TextPad's idiosyncracies. One has to be sure a class of documents is defined and is used when saving a particular class. I am not sure if that is what is happening here. Maybe you found a new one.
 
I'd suggest looking at what the "Compile Java" and "Run Java" macros actually do, and edit them if necessary.

- Warren
 
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...
Back
Top