• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author & internet detective
Posts: 41878
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic