Is anyone here familiar with TextPad?

  • Thread starter Thread starter pmb_phy
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around using TextPad as an interface for editing and running Java programs. Participants share their experiences and troubleshooting steps related to configuring TextPad for Java development, addressing issues with compilation and execution of Java code.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Exploratory

Main Points Raised

  • One participant, Pete, seeks help with setting up TextPad to work with Java, expressing uncertainty about the configuration needed for the Java environment.
  • Another participant suggests navigating to Configure - Preference to find Document Classes, indicating that Java is one of the default classes and mentioning the need to set up Associated Files and File Name Filters.
  • Warren challenges the notion of a "Java environment," stating that TextPad is primarily a text editor and can only run command-line programs through macros, asking for more specifics about the problem.
  • A later reply from Pete describes a specific issue encountered while compiling a Java program, noting that although the compilation appears to succeed, an error regarding "NoClassDefFoundError" occurs when trying to run the application, suggesting potential path issues.
  • Another participant expresses uncertainty about the correctness of the Java syntax and raises concerns about TextPad possibly inserting unwanted characters, emphasizing the importance of defining document classes correctly.
  • Warren recommends examining the "Compile Java" and "Run Java" macros to ensure they are functioning as intended and suggests editing them if necessary.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the nature of the problems being faced with TextPad and Java. Multiple viewpoints regarding the configuration and functionality of TextPad remain, with some participants questioning the setup while others provide suggestions based on their experiences.

Contextual Notes

There are unresolved issues regarding the specific configuration steps needed for TextPad to properly compile and run Java applications. The discussion highlights potential dependencies on user-defined settings and the need for clarity in the setup process.

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
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
6K
Replies
3
Views
7K
  • · Replies 10 ·
Replies
10
Views
11K
Replies
35
Views
10K
  • · Replies 1 ·
Replies
1
Views
2K