Question Locked

IIS 6.0: I can not download .java files

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello everyone.
I have a problem with IIS 6.0 server. This problem happened suddently.
I am trying to download a .java file and IIS returns the error "The page cannot be found"

For example, I click here: http://www.demosite.com/test.java
and I would expect to see the "Save file" option in order to download and save the "test.java" file on my hard disk but I get the following error message
"Page can not be found
HTTP Error 404 - File or directory not found.
Internet Information Services (IIS)"

I renamed the same java file from .java to .txt i.e. http://www.demosite.com/test.txt and I can download the file but if I change the extension to .java then I get this "HTTP Error 404 - File or directory not found" error.

Any ideas why IIS 6.0 does not allow me to download .java files?

What should I check in IIS in order to figure out the cause of the problem?

Thank you in advance.

2 replies

by Former member

-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

Please post back if you have any more problems or questions.

This discussion is closed to new replies.