Sent via Deja.com
http://www.deja.com/
Is the class in a package? I don't actually have forte so I can only
comment on what the error looks like. If the class is in a package
you need to use its full name when trying to run it from command line:
java examples.texteditor.Ted
And you need to be in the directory containing examples/texteditor/Ted.
HTH, Eric
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
2) You might need special jar files that are included in the forte
classpath.
Hi,
This sounds like a classpath problem. It looks
like the class file is not being found. Is the
current directory on the classpath?
BTW, there is a news server/mailing list for these
questions, monitored by Sun support personnel, at
news://news.netbeans.com - you may want to check
it out.
Regards,
Tim Boudreau
NetBeans - Sun Microsystems
The reason you are getting an error from the Command Prompt is that you
are not passing in the correct class.
In article <91kilj$7qq$1...@nnrp1.deja.com>, wingle...@hotmail.com
says...
> I have forte Community Edition and it has Text Editor example,
> Ted.class it works when run from forte but get the following error when
> run from JDK Dos console. What is wrong? Thank you ^_~
> E:\java\forte4j\Development\examples\texteditor>java Ted
The class Ted is in the package examples.texteditor.
so to run it you need to be in
E:\java\forte4j\Development
and run
java examples.texteditor.Ted