Results 1 to 4 of 4
- 01-26-2012, 02:59 AM #1
Member
- Join Date
- Jan 2012
- Posts
- 1
- Rep Power
- 0
I add java.exe to programs in preferences but I cannot compile java in textpad. help!
I have completed the following steps in textpad :
In TextPad select Configure --> Preferences. The Preferences window will be displayed.
In the Preferences window select Tools. The right hand side of the window will be populated with any available tools as well as with a button labeled Add.
Click the Add button and select Program from the drop down list. A window entitled Select a File will be displayed.
In the Select a File window navigate to the javac.exe file using the directory location annotated in step 2. Select Open.
Javac will be added in your tools list.
Repeat steps 5 - 6 this time selecting the java.exe file. Java will be added to your tools list.
In the Preferences window select Apply.
Now, when I go to complete the following steps:
Open up Test.java in TextPad.
In TextPad, select Tools --> External Tools --> Compile Java. "Tool Completed Successfully" will be displayed in the Tool Output screen.
In TextPad, select Tools --> External Tools --> Run Java Application. "This is a test." should be displayed in a DOS window.
I do not find copile java in my external tools options, instead I come to the option "java".
When I try to use this option I get this error message:
Could not find the main class: C:\Users\xxxxx\Desktop\Test.java. Program will exit.
Exception in thread "main"
Tool completed with exit code 1
the tool is not completed successfully, nor do i get the message in a dos window. PLEASE HELP.
i need to get this straightened out AS SOON AS POSSIBLE as I will need to use these tools for
my school assignments...
THANK YOU VERY MUCH!!!
- 02-03-2012, 05:18 PM #2
Member
- Join Date
- Jan 2011
- Posts
- 4
- Rep Power
- 0
Re: I add java.exe to programs in preferences but I cannot compile java in textpad. h
One can also use System.exit which will bypass finally block also
- 02-03-2012, 08:06 PM #3
Member
- Join Date
- Oct 2011
- Posts
- 92
- Rep Power
- 0
Re: I add java.exe to programs in preferences but I cannot compile java in textpad. h
Your code has no main class. How do you expect to make an executable java application that doesn't have a main class?
- 02-03-2012, 08:52 PM #4
Similar Threads
-
Programs compile differently on 32-bit and 64-bit versions of eclipse?
By BAPandora in forum EclipseReplies: 1Last Post: 04-27-2011, 10:08 AM -
Java configuration for Textpad? (Need correct settings)
By Lin in forum New To JavaReplies: 2Last Post: 10-30-2010, 04:45 AM -
how to call 2 java programs in one another java program
By renu in forum New To JavaReplies: 8Last Post: 09-30-2010, 06:32 PM -
java.util.Preferences
By jon80 in forum New To JavaReplies: 0Last Post: 06-06-2009, 11:28 PM -
Same error msg with every program Java Textpad
By peterdfl in forum New To JavaReplies: 7Last Post: 04-17-2009, 04:49 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks