text/x-java

Java source code

DescriptionJava source code
File extensions.java
Based ontext/x-csrc

Frequently asked questions

What is the MIME type text/x-java?

text/x-java denotes “Java source code”.

Which file extension does text/x-java use?

Files of type text/x-java usually end in .java.

How does a web server serve text/x-java correctly?

With the header Content-Type: text/x-java. In nginx: types { text/x-java java; }; in Apache: AddType text/x-java .java.

Nearby entries