Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cant get the output of a class file through the following JSP  RSS feed

 
Rax Wer
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to see the output of a class file through the following JSP.


No output is produced here.
Here Abc is any class file placed at /jdk1.6.0/bin folder.
I have given "execute" permission to java.exe in java.policy file.


Though when i am using getErrorStream in place of getInputStream.
I get error:: NoClassDefinitionFoundError Exception in Thread Main.

Please help anyone.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36396
453
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rax,
Is your directory really named "ProgramFiles" without the space?

Can you run "c:\\ProgramFiles\\Java\\jdk1.6.0\\bin\\java Abc" from DOS? The error message sounds like you might get an error message there too.

Also, note that it is bad practice to have logic in a JSP. Consider refactoring to put this in a Java class.
 
victor piterson
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi rax,
this is victor here ,
i read your code,
i think you can try this

in place of your code line.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!