Chris,
The particular error error I get is " can't find class sun/tools/javac/main
Textpad I installed before the jdk. From the jdk but now have another
install of textpad so should have found the jdk.. I have java .exe in
C:\Program Files\Java\j2re1.4.1\bin, but see no class files here. This
example file gives ther same error:
import java.io.*;
class Myfirst
{
public static void main(String[] args)
{
/*print something to the output stream*/
System.out.println ("Hello Birds, Hello NEW Sky!!");
}
}
The help file with textpad you referred to doesn`t help, that's the one I
was using to get the above going. Basically, I'm left with the problem given
my own configuration of the jdk and textpad of putting the correct setting
for, the parameters value, for compile java and the initial folder, for
compile java both in textpad in configuration menu, which has javac.exe
greyed out so presumably it has found that file somewhere, also the above
code maybe needs an expanded path but though the sdk is installed, don`t see
java.io whereas I see Macromedia and Studio use a java.io.dependency file.
Any java experts out there, help docs on this are @%"!!?
rgds
Colm
Colm Brazel MA
CB Publications
www.cbweb.net <http://www.cbweb.net>
[EMAIL PROTECTED] <mailto:design@;cbweb.net>
[EMAIL PROTECTED] <mailto:cbweb@;iol.ie>
-----Original Message-----
From: Christopher Chaduka [mailto:cchaduka@;mweb.co.zw]
Sent: 18 October 2002 10:57
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] Quickie - page execution times
<from the TextPad Help files>
How to Use with the Java Development Kit
The Java Development Kit (JDK) is a product from Sun Microsystems for
developing Java applications. It can be downloaded from
http://java.sun.com/. We do not support it in any way (except for the
interface with TextPad, described below), so please check that web page for
support information.
Very Important: To be able to use it with TextPad, the JDK must be
installed using its setup program. This writes information to the registry,
which TextPad cannot work without.
After you have installed the JDK, as described in its installation
instructions, you can add commands to compile and run Java applications and
applets to TextPad's Tools menu as follows:
1. From the Configure menu, choose Preferences.
2. Select the Tools page on the Preferences dialog box.
3. Click Add.
4. Select "JDK Commands" from the drop down menu.
5. Click OK.
You can assign shortcuts to any of these commands using the Keyboard page
on the Preferences dialog box.
Notes:
The option to add JDK commands only appears on that menu, if none of your
tools runs JAVAC.EXE, JAVA.EXE or APPLETVIEWER.EXE.
The JDK commands are automatically added to the Tools menu, if the JDK is
installed before TextPad is first run on a PC.
Do not attempt to capture the output of a Java application which reads from
standard input. The Command Results window is output only, so you will not
be able to type responses into it.
</from the TextPad help files>
I have done that and it works fine??
At 10:51 10/18/2002 +0100, you wrote:
>Tim,
>
>Yep, your tip to run the class code over one line worked perfectly. AFAIK
to
>get the api or javadocs related to this you will have to e-mail Ben Forte
or
>read his article in October CFDJ on accessing the factory.
>
>OT, I`m trying to get textpad.exe to compile javacode, anybody configured
>textpad.exe to use the sun jdk to do this, I keep getting a classpath not
>found error, or is it possible to set up textpad.exe to use the jvm
>that comes with MX to compile/run java applications from within textpad.
>
>cheers
>
>Colm
>
>Colm Brazel MA
>CB Publications
>
>www.cbweb.net <http://www.cbweb.net>
>[EMAIL PROTECTED] <mailto:design@;cbweb.net>
>[EMAIL PROTECTED] <mailto:cbweb@;iol.ie>
>
>
>
>
>-----Original Message-----
>From: Tim Blair [mailto:tim@;rawnet.com]
>Sent: 18 October 2002 09:41
>To: [EMAIL PROTECTED]
>Subject: RE: [ cf-dev ] Quickie - page execution times
>
>
>Colm,
>
> > Tried the above( I`m late back on this), but I get a
> > classpath path error,
>
>I was getting an "Object Instantiation Error" at first, don't know if
>that's the error you were getting. I fixed it simply by making sure
>that the CLASS="" attribute was not split over two lines. In Doug's
>original post it showed it like this:
>
>CLASS="coldfusion.
>server.ServiceFactory"
>
>I replaced that with the following and it worked:
>
>CLASS="coldfusion.server.ServiceFactory"
>
>HTH,
>
>Tim.
>
>
>-------------------------------------------------------
>Tim Blair
>Web Application Engineer, Rawnet Limited
>Direct Phone : +44 (0) 1344 393 441
>Switchboard : +44 (0) 1344 393 040
>-------------------------------------------------------
>rawnet ltd
>Atrium Court
>Bracknell [EMAIL PROTECTED]
>Berkshire Tel : +44 (0) 1344 393 040
>RG12 1BW, UK http://www.rawnet.com
>-------------------------------------------------------
>This message may contain information which is legally
>privileged and/or confidential. If you are not the
>intended recipient, you are hereby notified that any
>unauthorised disclosure, copying, distribution or use
>of this information is strictly prohibited. Such
>notification notwithstanding, any comments, opinions,
>information or conclusions expressed in this message
>are those of the originator, not of rawnet limited,
>unless otherwise explicitly and independently indicated
>by an authorised representative of rawnet limited.
>-------------------------------------------------------
>
>
>
>
>
>--
>** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>For human help, e-mail: [EMAIL PROTECTED]
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002
>
>
>--
>** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>For human help, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]