Problem with adding mime for jad/jar

Discussion in 'Apache' started by sandsater, Jul 5, 2006.

  1. #1
    I have some problems with getting the Mime-type work for jad/jar
    I think jar is working but when I try to access a jad-file I get "filetype unknown". I run Apache 2.x something, installed via xampp.

    What I have done is two things, (It should be enough with one? but I took both beacause nothing worked and I didn´t know better)

    (1)httpd.conf: Inside <IfModule mime_module> I added
    AddType text/vnd.sun.j2me.app-descriptor .jad
    AddType application/x-java-archive .jar

    (2)mime.types:
    text/vnd.sun.j2me.app-descriptor jad
    application/x-java-archive jar
     
    sandsater, Jul 5, 2006 IP
  2. sandsater

    sandsater Guest

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Anyone? :(
     
    sandsater, Jul 10, 2006 IP
  3. forkqueue

    forkqueue Guest

    Messages:
    401
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That looks correct to me - you did restart Apache after making these changes right?
     
    forkqueue, Jul 10, 2006 IP
  4. sandsater

    sandsater Guest

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes, and if not, I have restarted my computer a number of times since so that should have been done a lot. But still, "unknown file type" :(
     
    sandsater, Jul 10, 2006 IP
  5. aspl

    aspl Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    use it without x
    i.e. AddType application/java-archive .jar
     
    aspl, Aug 1, 2006 IP
  6. sandsater

    sandsater Guest

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Ok, but how does that affect the .jad type? Jar is working fine but not jad.
     
    sandsater, Aug 2, 2006 IP