Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIS 6.0 can not serve .java files

Status
Not open for further replies.

stergiosnik

Technical User
Sep 19, 2007
64
GR
Hello everyone.

I have a problem with IIS 6.0 server.

I am trying to serve .java files i.e.

and I get the following error message

"Page can not be found
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)"

I have added in IIS 6.0 (properties) MIME types the .java (application - octet stream) setting but still the same problem.

Any ideas what might be the problem?

Thank you in advance.

Stergios
 
Hi.

If you want run .java files, you should add it to mapping in IIS6.

Try this:
-Select virtual directory or website, where you want run .java files and choose properties.
-Choose tab Home directory and click on configuration
-In first tab mapping you have to assign application to extension .java (you have to add new item and select program which will be called by webserver for this extension)
-It will be also usefull add .java in documents tab(if you want it also as default pages)
-You have to also enable this program in Web service extensions(add new item with program and enable it). Web service extensions are in root of IIS6.
-Restart IIS6

I really don't know if this helps, because I think .java files need to be compiled first. I don't know much about Java. But I suppose with this procedure your webserver will be able to serve .java files...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top