Skip to main content

CLASSCASTEXCEPTION - JXTA SHELL

1 reply [Last post]
gunesby
Offline
Joined: 2008-01-30

Hello!
I have a problem with working JXTA Shell.I can compile and run my java files by using Eclipse and command line.But it doesn't work when I use th JXTA Shell to see how th new commands work.The problem is just like this:

JXTA>IDTutorial
# Shell - Exception in command : IDTutorial
java.lang.ClassCastException: IDTutorial cannot be cast to net.jxta.impl.shell.ShellApp
at net.jxta.impl.shell.ShellCmds.getInstance(ShellCmds.java:410)
at net.jxta.impl.shell.ShellApp.loadApp(ShellApp.java:627)
at net.jxta.impl.shell.bin.Shell.Shell.processCmd(Shell.java:778)
at net.jxta.impl.shell.bin.Shell.Shell.processPipeCmd(Shell.java:897)
at net.jxta.impl.shell.bin.Shell.Shell.processMultipleCmd(Shell.java:804)
at net.jxta.impl.shell.bin.Shell.Shell.runShell(Shell.java:948)
at net.jxta.impl.shell.bin.Shell.Shell.run(Shell.java:181)
at java.lang.Thread.run(Unknown Source)

# Shell - Could not load command 'IDTutorial'

However IDTutorial.java runs successfully through the command line and Eclipse as I've said before, it throws ClassCastException on the Shell platform.If anybody can help, I'll be glad..

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bondolo
Offline
Joined: 2003-06-11

IDTutorial is not a shell command. You can't run it from within the JXTA shell.