Overhead Projector Extension for VGA?

I have an overhead projector (connected to a Smartboard) in my classroom and I want to connect my iPad 2. I know I can connect using the VGA adapter. My question is, is there some type of extension cord so I can attach to the VGA connector up on the projector, but have my iPad down with me? There are so many different cord types and connectors, and I don't want to buy the wrong thing. (the projector does not have an HDMI port).  Thank you!

While you can do this, it's somewhat awkward and clumsy - particularly since the adaptor drops out of the ipad very easily. Not the best sight lines.
Some alternatives.
connect an Apple TV to your projector. It is expensive (99 dollars), and you'll need to get an adaptor to connect it (I think those run about 30), but it will allow a wireless connection.
Check out Reflection. It allows you to project your ipad image onto a computer, and if the computer is displaying on the projector then the iPad image will show on the screen. Much cheaper than the Apple TV.
Use the iPad to control the computer - not what you were thinking, but would allow you to control Smartboard software on the iPad.
It's important to note that, while you can project an iPad image onto a Smartboard, you can't use any of the interactive touch features of the Smartboard with it - you can't control the iPad from the touchscreen, and you can't run Smart software on the iPad (there is a viewer that will allow you to read Smart notebooks on the iPad, I believe, but not a full software suite).

Similar Messages

  • Projector Extension for Mac

    Hello,
    I'm running Tiger 10.4.6 and for some reason, when I publish
    a Mac projector file, there is no "Flash Player" icon. I appears to
    be coming up blank. Is there an extension I can add so it finds it?
    I find this very interesting because things like this are only
    suppose to happen on Windows. It shouldn't need an
    extension.

    This is weird, I exported a projector file in a different
    folder and it drew the Mac projector icon. Maybe it's time to fix
    permissions.

  • What is the best overhead projector for a new 13" MacBook Pro

    What is the best overhead projector for a new retina display macbook pro?

    The key issue you should be worried about is what's the best projector for the intended room/environment/audience you will be projecting from/to. The Mac is just a content provider and will always exceed the resolution capabilities of all projectors in the market so will have to downgrade its output to suit their reduced capabilities. 
    Only thing you may want to make sure is that the projector have digital HDMI input. That way you can plug the Retina in with just a cable and not need to purchase any intervening adapter dongle prone to failure or misplacement.

  • HT1338 I'm trying to attach my MacBook Pro to an overhead projector and can't get it to work. If I go to System Prefs/Displays, I see the box on the screen.  But when I collapse the Prefs the desktop is not seen. Can you help?

    I'm trying to get an overhead projector to identify my macbookpro.  If I go to Prefs and select screens that dialogue box comes up on screen.  So I know there's nothing wrong with the VGA cable.  But when the screen box is collapsed nothing happens.  My computer is not recognized by the projector.  Can anyone help? 
    On a PC I used to hit "control F5.  But I don't believe that works on a MacBook. Any suggestions?

    About the only thing you can try is using the Online Internet Recovery system to reinstall Lion on your Mac over the top of the current install. that will reset all system files and should not touch your personal files or the apps you have installed.
    Or iof you have a recent Time Machine backup use that to restore your Mac to that point in time.

  • New Macbook Air stopped transmitting to overhead projector

    Hello,
    Up until last week, I was successfully using 2 different overhead projectors with my MacBook Air (purchased around 2008 or 2009). I've just bought a new MacBook Air, and it has stopped projecting. I use the same connector (VGA?). Seems like it worked at first (showing my desktop, powerpoint, etc.), but it wouldn't show Yotube. Later that same day, at a different projector, it wouldn't project anything at all.
    Is this a common problem? What can I do?
    Any help would be greatly appreciated. Thanks.

    What type of input does the projector use? A lot use VGA, in which case you'd need this: http://store.apple.com/us/product/MB572Z/B/mini-displayport-to-vga-adapter

  • Best way to hook a Mini display port to a vga projector AND a vga monitor

    I am looking for the best way to hook a Mini display port to a vga projector AND a vga monitor for use in a classroom, right now I am thinking a Mini displayport adapter to a splitter.

    The Thunderbolt port is the one to use; you use the same mini-DisplayPort adapter you used for the older minis.
    Regards.

  • I am a teacher who would like to use my Ipad2 in the classroom -but out school only has projector that has VGA inputs. And just to complicate thing I was to use it wirelessly (I have an Itv also). Can I get true mirrioring?

    I am a teacher who would like to use my Ipad2 in the classroom -but out school only has projector that has VGA inputs. And just to complicate thing I was to use it wirelessly (I have an Itv also). Can I get true mirrioring?

    The one you are looking at I believe is an older model and does not have very good reviews for working with an AppleTV2 / iPad 2 setup.
    Here is the one that has worked for our district:
    http://www.amazon.com/ViewHD-Component-Converter-Support-Surround/dp/B004F9XVBC/ ref=pd_cp_e_2
    I can't say if the one you are referring two works or not, however I can say that based on the reviews, it looks like you may run into problems with the $45 version.

  • New Projector Exporter for Flash Pro CC (cross platform)

    Hi All,
    We have a new cross platform Projector Exporter for Flash Pro CC available as an extension at the below location:
    [http://nipunasthana.wordpress.com/projectorforflashcc/]
    Thanks,
    Nipun Asthana
    Flash Professional Team

    Projector Exporter has now officially been included with the new Flash Pro CC 2014 release!

  • IPad 2 crashes when connected to an overhead projector

    Hi everyone,
    I handle IT for the public library. We use an iPad 2 for many courses and programs.
    Lately, any time we connect the iPad to our overhead projector via HDMI adapter (model A1388), the iPad crashes and needs to be completely rebooted in order to restore any functionality.
    I'm currently upgrading to iOS 8.1, so hopefully that will have a beneficial impact, but thought I'd see if anyone had any suggestions to share.
    Thoughts?

    Be advised that there are reports of older hdmi cables not working in 8.0 and 8.0.2.  Don't know that status of 8.1.  If you run into this problem, you will need to try a new cable.
    unable to use HDMI adapter after iOS 8.0 upgrade

  • Mac books and panasonic overhead projectors.

    Our school district has gone to mac book airs. I have seen two collegues create power points in Microsoft office, using MS Office for macs and the power ppint was created on a mac. Now the problem: when they connect to the overhead and run the powerpoint the slides are way to big to show on the overhead projector.  We have the image resolution on the macs under the display icon in the header we set the reslolution to as small as 1940 x760. If I remember correctly.  The power point slide is still to big.  Our solution so far is to enlarge the margin area in the slide. For example a title on a page instead of being at a 1" margin is now at a 3" margin ( move all the inofrmation to the middle of the slide) and this appears to work. I see something about scale in the help but am unsure if this is going to help.  Hope I have explained this well enough. P. S. the overhead projector is a Panasonic do have the model at this writing. 3-5 years old and ceiling mounted, so not moveable.

    Hi
    Still one has to know that DVDs can only be SD-video (it's a standard) any program used.
    But You can get a better result by using iMovie HD6 or FinalCut any version as they can deliver intrelaced video over to iDVD (or Roxio Toast™ or DVD-Studio Pro) - this will not discard every second line as iMovie'08 or 09 or 11 does.
    You might also try to use FotoMagico™ to make SlideShows as this also results in as high quality possibly.
    If You need even better then consider
    • Blu-Ray (Roxio Toast™ Pro bundle incl. BD-component) - Short BD movies on standard DVD disks (BUT neeed Blu-ray player to be viewed (no not on any standard Mac either))
    • Save to Memory stick and Playback on PlayStation 3
    Yours Bengt W

  • I am new to Apple; how do i toggle between the pc and and overhead projector? Which keys?

    I am new to Apple; how do I toggle between the pc and an overhead projector? Which keys?

    Not sure how your question relates to an AirPort Extreme, AirPort Express or Time Capsule......these products:
    It appears that you have a question about a MacBook Air.  If that is the case, then please post your question in the support area for the MacBook Air linked below:
    MacBook Air

  • CP5.5: Play CBT in Overhead Projector - What's a Good Slide Size?

    We are in the process of converting all of our PPT training into CBTs using CP5.5.
    I tried 1024 x 768 for the slide size but it was too large on the overhead projector.
    What slide size should I aim for so that it fits on the screen?

    Hi there
    I believe that an overhead projector typically assumes 1024x768. I use dual overheads at the church where I'm a media jockey and that's the size those use. I might imagine that's quite common as they were just installed last January.
    However, Captivate tosses a wrinkle in the mix by adding another number of pixels to the height. This is done in order to make room for a playback control below the main part of the movie. Additionally, when you are using a browser to present the Captivate movie, you also need to account for the area reserved for the right scrollbar. Not only that, but again in a browser you also need to subtract pixels to account for the Menu bar, toolbars and Status bar.
    How exactly are you presenting the Captivate?
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Warranty extension for Satellite U400

    Hello!
    I have a question about possibility to extend warranty for my laptop.
    On the official web-ste there is information about my device and it;s written over there:
    "Standard Warranty
    Coverage: International Days:365 Expiration Date: 2010-05-25
    Extended Warranty
    Servicename: International Warranty Extension from 1 to 2 years Service Coverage: International Days: 730 Expiration Date: 2011-05-25 "
    It's written that I have already an extended warranty, but i've just register the standard warranty of my new laptop!
    Anyway, the question is: can i buy a warranty extansion in my cause and what type of extension i have to buy (from 2 to 4, from 2 to 3 e.t.c.)
    Thank you in advance!
    P.S. And one more question: my friend is going to buy Toshiba Satellite A500-1F2. The same question: which kind of warranty extension is he able to purchase?
    Thank you!
    Best regards,
    Dmitry

    Hi
    Usually all notebooks are covered by standard warranty for a 1 year.
    If you register the notebook on the Toshiba page, you will get an additional warranty year (altogether 2 years).
    I think this is what you can see on the Toshiba page.
    I think you can extend the warranty too.
    You have to look here:
    http://eu.computers.toshiba-europe.com -> Peripherals & Services -> Services -> Warranty extensions
    There you will have to check available Warranty Extensions for your notebook model.
    Greets

  • Custom service (using Reader Extensions) for REST invocation

    Hello,
    is it possible to implement and configure a custom service (using Reader Extensions) for REST invocation?
    Best regards
    CommanderPeek

    Yes LiveCycle does support REST as an endpoint http://help.adobe.com/en_US/livecycle/9.0/programLC/help/index.htm?content=000562.html

  • Using JSSE : "Invalid Netscape CertType extension for SSL client" Error

    Hi all,
    Im using the sample code given sun site for JSSE with Client Authentication. The sample as such it worked with the testkeys provided in that. But it didn't workout when I tried using other certificates.
    Both client and server certificates I generated from our internal Netscape Certificate Manager.
    Function of the server :
    The server will read a private key from the given keystore and starts listening on a port. This server will server only GET request.
    Function of the client :
    The Client sends a GET request to the server and gets the response back.
    I simply changed the key store name alone in the working sample code.
    It is not working.
    The Exception thrown on client side :
    D:\users\Jp\java\jssesamples\sockets\client\class>java SSLSocketClientWithClientAuth1 localhost 1089 /urls
    localhost
    1089
    /urls
    java.net.SocketException: Software caused connection abort: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
    at com.sun.net.ssl.internal.ssl.OutputRecord.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_az.j(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)
    at SSLSocketClientWithClientAuth1.main(SSLSocketClientWithClientAuth1.java:119)
    Exception thrown on server side :
    D:\users\Jp\java\jssesamples\sockets\server\class>java ClassFileServer 1089 . TLS true
    USAGE: java ClassFileServer port docroot [TLS [true]]
    If the third argument is TLS, it will start as
    a TLS/SSL file server, otherwise, it will be
    an ordinary file server.
    If the fourth argument is true,it will require
    client authentication as well.
    javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Invalid Netscape CertType extension for SSL client
    at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_aw.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_aw.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.AppInputStream.read(DashoA6275)
    at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:406)
    at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:446)
    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:180)
    at java.io.InputStreamReader.read(InputStreamReader.java:167)
    at java.io.BufferedReader.fill(BufferedReader.java:136)
    at java.io.BufferedReader.readLine(BufferedReader.java:299)
    at java.io.BufferedReader.readLine(BufferedReader.java:362)
    at ClassServer.getPath(ClassServer.java:162)
    at ClassServer.run(ClassServer.java:109)
    at java.lang.Thread.run(Thread.java:536)
    Caused by: java.security.cert.CertificateException: Invalid Netscape CertType extension for SSL client
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkClientTrusted(DashoA6275)
    at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkClientTrusted(DashoA6275)
    ... 17 more
    error writing response: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateExce
    ption: Invalid Netscape CertType extension for SSL client
    javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: java.security.cert.Certificate
    Exception: Invalid Netscape CertType extension for SSL client
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.d(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.e(DashoA6275)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write(DashoA6275)
    at java.io.DataOutputStream.writeBytes(DataOutputStream.java:256)
    at ClassServer.run(ClassServer.java:128)
    at java.lang.Thread.run(Thread.java:536)
    Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Invalid Netscape CertType extension
    for SSL client
    at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_aw.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_aw.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.AppInputStream.read(DashoA6275)
    at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:406)
    at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:446)
    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:180)
    at java.io.InputStreamReader.read(InputStreamReader.java:167)
    at java.io.BufferedReader.fill(BufferedReader.java:136)
    at java.io.BufferedReader.readLine(BufferedReader.java:299)
    at java.io.BufferedReader.readLine(BufferedReader.java:362)
    at ClassServer.getPath(ClassServer.java:162)
    at ClassServer.run(ClassServer.java:109)
    ... 1 more
    Caused by: java.security.cert.CertificateException: Invalid Netscape CertType extension for SSL client
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.a(DashoA6275)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkClientTrusted(DashoA6275)
    at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkClientTrusted(DashoA6275)
    ... 17 more
    The Client code :
    * @(#)SSLSocketClientWithClientAuth.java     1.5 01/05/10
    * Copyright 1995-2002 Sun Microsystems, Inc. All Rights Reserved.
    * Redistribution and use in source and binary forms, with or
    * without modification, are permitted provided that the following
    * conditions are met:
    * -Redistributions of source code must retain the above copyright
    * notice, this list of conditions and the following disclaimer.
    * -Redistribution in binary form must reproduct the above copyright
    * notice, this list of conditions and the following disclaimer in
    * the documentation and/or other materials provided with the
    * distribution.
    * Neither the name of Sun Microsystems, Inc. or the names of
    * contributors may be used to endorse or promote products derived
    * from this software without specific prior written permission.
    * This software is provided "AS IS," without a warranty of any
    * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
    * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
    * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
    * EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY
    * DAMAGES OR LIABILITIES SUFFERED BY LICENSEE AS A RESULT OF OR
    * RELATING TO USE, MODIFICATION OR DISTRIBUTION OF THE SOFTWARE OR
    * ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE
    * FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT,
    * SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
    * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF
    * THE USE OF OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN
    * ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
    * You acknowledge that Software is not designed, licensed or
    * intended for use in the design, construction, operation or
    * maintenance of any nuclear facility.
    import java.net.*;
    import java.io.*;
    import javax.net.ssl.*;
    import javax.security.cert.X509Certificate;
    import java.security.KeyStore;
    * This example shows how to set up a key manager to do client
    * authentication if required by server.
    * This program assumes that the client is not inside a firewall.
    * The application can be modified to connect to a server outside
    * the firewall by following SSLSocketClientWithTunneling.java.
    public class SSLSocketClientWithClientAuth1 {
    public static void main(String[] args) throws Exception {
         String host = null;
         int port = -1;
         String path = null;
         for (int i = 0; i < args.length; i++)
         System.out.println(args);
         if (args.length < 3) {
         System.out.println(
              "USAGE: java SSLSocketClientWithClientAuth " +
              "host port requestedfilepath");
         System.exit(-1);
         try {
         host = args[0];
         port = Integer.parseInt(args[1]);
         path = args[2];
         } catch (IllegalArgumentException e) {
         System.out.println("USAGE: java SSLSocketClientWithClientAuth " +
              "host port requestedfilepath");
         System.exit(-1);
         try {
         * Set up a key manager for client authentication
         * if asked by the server. Use the implementation's
         * default TrustStore and secureRandom routines.
         SSLSocketFactory factory = null;
         try {
              SSLContext ctx;
              KeyManagerFactory kmf;
              KeyStore ks;
              char[] passphrase = "passphrase".toCharArray();
              ctx = SSLContext.getInstance("TLS");
              kmf = KeyManagerFactory.getInstance("SunX509");
              ks = KeyStore.getInstance("JKS");
    //          ks.load(new FileInputStream("testkeys"), passphrase);
              ks.load(new FileInputStream("clientkey"), passphrase);
              kmf.init(ks, passphrase);
              ctx.init(kmf.getKeyManagers(), null, null);
              factory = ctx.getSocketFactory();
         } catch (Exception e) {
              throw new IOException(e.getMessage());
         SSLSocket socket = (SSLSocket)factory.createSocket(host, port);
         * send http request
         * See SSLSocketClient.java for more information about why
         * there is a forced handshake here when using PrintWriters.
         socket.startHandshake();
         PrintWriter out = new PrintWriter(
                        new BufferedWriter(
                        new OutputStreamWriter(
                        socket.getOutputStream())));
         out.println("GET " + path + " HTTP/1.1");
              /* Some internet sites throw bad request error for HTTP/1.1 req if hostname is not specified so the foll line */
              out.println("Host: " + host);
         out.println();
         out.flush();
         * Make sure there were no surprises
         if (out.checkError())
              System.out.println(
              "SSLSocketClient: java.io.PrintWriter error");
         /* read response */
         BufferedReader in = new BufferedReader(
                        new InputStreamReader(
                        socket.getInputStream()));
         String inputLine;
         while ((inputLine = in.readLine()) != null)
              System.out.println(inputLine);
         in.close();
         out.close();
         socket.close();
         } catch (Exception e) {
         e.printStackTrace();
    The Server code :
    * @(#)ClassFileServer.java     1.5 01/05/10
    * Copyright 1995-2002 Sun Microsystems, Inc. All Rights Reserved.
    * Redistribution and use in source and binary forms, with or
    * without modification, are permitted provided that the following
    * conditions are met:
    * -Redistributions of source code must retain the above copyright
    * notice, this list of conditions and the following disclaimer.
    * -Redistribution in binary form must reproduct the above copyright
    * notice, this list of conditions and the following disclaimer in
    * the documentation and/or other materials provided with the
    * distribution.
    * Neither the name of Sun Microsystems, Inc. or the names of
    * contributors may be used to endorse or promote products derived
    * from this software without specific prior written permission.
    * This software is provided "AS IS," without a warranty of any
    * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
    * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
    * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
    * EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY
    * DAMAGES OR LIABILITIES SUFFERED BY LICENSEE AS A RESULT OF OR
    * RELATING TO USE, MODIFICATION OR DISTRIBUTION OF THE SOFTWARE OR
    * ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE
    * FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT,
    * SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
    * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF
    * THE USE OF OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN
    * ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
    * You acknowledge that Software is not designed, licensed or
    * intended for use in the design, construction, operation or
    * maintenance of any nuclear facility.
    import java.io.*;
    import java.net.*;
    import java.security.KeyStore;
    import javax.net.*;
    import javax.net.ssl.*;
    import javax.security.cert.X509Certificate;
    /* ClassFileServer.java -- a simple file server that can server
    * Http get request in both clear and secure channel
    * The ClassFileServer implements a ClassServer that
    * reads files from the file system. See the
    * doc for the "Main" method for how to run this
    * server.
    public class ClassFileServer extends ClassServer {
    private String docroot;
    private static int DefaultServerPort = 2001;
    * Constructs a ClassFileServer.
    * @param path the path where the server locates files
    public ClassFileServer(ServerSocket ss, String docroot) throws IOException
         super(ss);
         this.docroot = docroot;
    * Returns an array of bytes containing the bytes for
    * the file represented by the argument <b>path</b>.
    * @return the bytes for the file
    * @exception FileNotFoundException if the file corresponding
    * to <b>path</b> could not be loaded.
    public byte[] getBytes(String path)
         throws IOException
         System.out.println("reading: " + path);
         File f = new File(docroot + File.separator + path);
         int length = (int)(f.length());
         if (length == 0) {
         throw new IOException("File length is zero: " + path);
         } else {
         FileInputStream fin = new FileInputStream(f);
         DataInputStream in = new DataInputStream(fin);
         byte[] bytecodes = new byte[length];
         in.readFully(bytecodes);
         return bytecodes;
    * Main method to create the class server that reads
    * files. This takes two command line arguments, the
    * port on which the server accepts requests and the
    * root of the path. To start up the server: <br><br>
    * <code> java ClassFileServer <port> <path>
    * </code><br><br>
    * <code> new ClassFileServer(port, docroot);
    * </code>
    public static void main(String args[])
         System.out.println(
         "USAGE: java ClassFileServer port docroot [TLS [true]]");
         System.out.println("");
         System.out.println(
         "If the third argument is TLS, it will start as\n" +
         "a TLS/SSL file server, otherwise, it will be\n" +
         "an ordinary file server. \n" +
         "If the fourth argument is true,it will require\n" +
         "client authentication as well.");
         int port = DefaultServerPort;
         String docroot = "";
         if (args.length >= 1) {
         port = Integer.parseInt(args[0]);
         if (args.length >= 2) {
         docroot = args[1];
         String type = "PlainSocket";
         if (args.length >= 3) {
         type = args[2];
         try {
         ServerSocketFactory ssf =
              ClassFileServer.getServerSocketFactory(type);
         ServerSocket ss = ssf.createServerSocket(port);
         if (args.length >= 4 && args[3].equals("true")) {
              ((SSLServerSocket)ss).setNeedClientAuth(true);
         new ClassFileServer(ss, docroot);
         } catch (IOException e) {
         System.out.println("Unable to start ClassServer: " +
                   e.getMessage());
         e.printStackTrace();
    private static ServerSocketFactory getServerSocketFactory(String type) {
         if (type.equals("TLS")) {
         SSLServerSocketFactory ssf = null;
         try {
              // set up key manager to do server authentication
              SSLContext ctx;
              KeyManagerFactory kmf;
              KeyStore ks;
              char[] passphrase = "passphrase".toCharArray();
              ctx = SSLContext.getInstance("TLS");
              kmf = KeyManagerFactory.getInstance("SunX509");
              ks = KeyStore.getInstance("JKS");
    //          ks.load(new FileInputStream("testkeys"), passphrase);
              ks.load(new FileInputStream("serverkey"), passphrase);
              kmf.init(ks, passphrase);
              ctx.init(kmf.getKeyManagers(), null, null);
              ssf = ctx.getServerSocketFactory();
              return ssf;
         } catch (Exception e) {
              e.printStackTrace();
         } else {
         return ServerSocketFactory.getDefault();
         return null;
    Could anyone help ?
    thanks in advance
    Jayaprakash

    The same thing.
    I have found the place where the exception throws.
    It is com.sun.net.ssl.internal.ssl.AVA class.
    It has a constructor AVA(StringReader)
    There is a check in this constructor of different certificate extensions
    (if-else). If it sees no familiar extension it throws exception and handshake fails.
    It is not difficult to fix this problem: just ignore unknown extension.
    Everything works fine with this "improved" class (under VA 3.5).
    But the problem is - the using of this class in applets.
    How can I say the browser to use my "improved" class and not the one it downloaded with java plug-in?

Maybe you are looking for

  • Error when exporting

    I'm working with a 64 bit system on windows 7, using Acrobat 9.4.1 Standard.  When I try to export a .pdf out of PageMaker 7 or FrameMaker 8, I get the followng message:  Error: "Adobe PDF creation cannot continue because Acrobat is not activated.". 

  • F4 help for file path in the Application server

    Hi All, i want to provide the F4 help so as to enable us to give the file path in the application server (AL11). I'm in version 4.0 Regards Shekhar

  • Problems with Apple TV 5.1 update

    I just updated the 2nd generation Apple TV to 5.1, and now the only things that show up on the main screen are settings and Computers. Any suggestions?

  • SAP PI ftp FIle transfer one to one with the same filename

    Hello all, maybe sombody ask the same in this forum, but couldn't find any topic regarding these. Okay: We have a scenario which have to pick up a txt file from a folder and to deliver to another folder outside. The file transfer itselfs isn't a prob

  • Bug report, toplink lacks checking for required attributes

    given the following code, I get an ORA-00911: invalid character error code . Instead you should expect to be getting an error from toplink saying missing argument... final String sql = "select....where line.Da_Object_Id =#id "; final DataReadQuery da