How to deploy an applet textbased?

Hello Evrybody,
I want to deploy an applet but I have 2 problems.
* It has to be textbased, no gui.
* It is after a authentication page.
Is there a browser (or other way) of deploying such a applet?
With kind regards
Arnoud

Cindy C. knew this one:
(pg 197 in the j2ee tutorial.pdf)
You can also create application-specific subdirectories (that is, package directo-ries) in either the document root or the WEB�INF/ lasses directory
Note: When you add classes and archives to a WAR, deploytool automatically packages them in the WEB1/2INF subdirectory. This is correct for Web components and server-side utility classes, but incorrect for client-side classes such as applets and any archives accessed by applets. To put client-side classes and archives in the cor-rect location, you must drag them to the document root after you have added them to the archive.

Similar Messages

  • How to 'deploy' an Applet when class files are on client machine?

    Hi all,
    I've searched through these forums and I can't find where my specific question has been asked before, so please accept my apologies for any duplication.
    I am trying to develop an applet for use on an intranet. (The specific requirement is that the applet must operate a scanner, and upload the scanned images to the database - we want it to be an applet so that it seamlessly integrates with the rest of the web application from the user's POV).
    Therefore the applet needs to run outside of the sandbox, but I don't want to go to all the hassle of getting a certificate from Verisign and signing the applet - that doesn't seem like it should be necessary, since there is no problem getting access to the client PC to install the class files by hand!
    I have read on this tutorial page that applets "that are loaded from the local file system (from a directory in the user's CLASSPATH) have none of the restrictions that applets loaded over the network do," so I don't think I am barking up the wrong tree:
    http://java.sun.com/docs/books/tutorial/deployment/applet/security.html
    That is exactly what I want to do! But whenever I try to run the applet, I get a no class definition found exception. However, if I run the applet as a standalone application (using its static main method) then the JRE has no trouble locating the class file - so I know that my CLASSPATH environment variable is set ok.
    Therefore I think the problem must be in my JNLP file. This is what mine looks like at present:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://localhost:8080/JGNS008" href="http://localhost:8080/JGNS008/scanner-applet.jnlp">
        <information>
            <title>Scanner Applet Prototype</title>
            <vendor>Fooware</vendor>
        </information>
        <resources>
            <!-- Application Resources -->
            <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
            <jar href="ScannerApplet.jar" main="false" />
        </resources>
        <applet-desc
             name="Scanner Applet Prototype"
             main-class="uk.co.fooware.ScannerApplet"
             width="72"
             height="20">
         </applet-desc>
         <update check="background"/>
    </jnlp>How do I rewrite this so that it doesn't try to download the class files from the network?
    Many thanks,
    Richard.

    richardwild wrote:
    ..I am trying to develop an applet for use on an intranet. (The specific requirement is that the applet must operate a scanner, and upload the scanned images to the database - we want it to be an applet so that it seamlessly integrates with the rest of the web application from the user's POV).
    Therefore the applet needs to run outside of the sandbox, but I don't want to go to all the hassle of getting a certificate from Verisign and signing the applet - that doesn't seem like it should be necessary,.. Code can be digitally signed without a 'verified' certificate from Versign.
    ..since there is no problem getting access to the client PC to install the class files by hand!
    I have read on this tutorial page that applets "that are loaded from the local file system (from a directory in the user's CLASSPATH) have none of the restrictions that applets loaded over the network do," so I don't think I am barking up the wrong tree:
    http://java.sun.com/docs/books/tutorial/deployment/applet/security.html
    Huh. I had never heard of that, but since I do not have access to my end user's classpath it is not that important to me.
    BTW - I am guessing they mean the path indicated by [http://pscode.org/prop/all.html?prop=java.class.path].
    And putting classes into JRE folders seems very hackish to me.
    That is exactly what I want to do! But whenever I try to run the applet, I get a no class definition found exception. However, if I run the applet as a standalone application (using its static main method) then the JRE has no trouble locating the class file - so I know that my CLASSPATH environment variable is set ok.Huh?
    Therefore I think the problem must be in my JNLP file. Huh?!? Why not deploy the applet using a standard applet element? The only way to configure an applet using a JNLP is ..
    a) If the applet is intended to be free floating.
    b) If the applet is intended to be embedded in a plug-in2 architecture JRE. Why impose that restriction, when it seems unnecessary and unproductive?
    Note that the second option is very new, and I would not expect all the things mentioned in the document you linked, to apply equally to JNLP embedded applets. If you want this applet embedded, I suggest you drop the entire JNLP approach and use a standard applet element.

  • How to deploy database Applets

    I use JDeveloper to build applets. What is the best way to
    deploy database applets to the 9iAS Portal?
    marcel

    My application is targeted toward home users with an Internet connection but minimal computer knowledge. It is not clear to me how I could install and configure a database server using WebStart, and doing it manually would hopelessly overwhelm my target audience. So I opted for a simple embedded PureJava database which stores information in ASCII files.
    I have several such files containing product data catalogs which I need to transfer using WebStart and write to a standard, platform-independent directory (i.e. no C:\ or such) which my JDBC URL can then access. I can pack my data files into a JAR and programmatically extract them on the client side. However, the problem is finding out what the application's client-side default path is in order to save my files to a standard location. It appears that the default path is the Windows Desktop the first time the app is started, but changes to the application's home directory (C:\Program Files\Java Web Start\.javaws\cache\...\myApp) thereafter.
    Any hints or suggestions?

  • How to Deploy an Applet successfully?

    I tried the tutorial in the JDeveloper 2.0 Beta. Everything
    worked fine. I could run the applet within the JDeveloper. I
    completed the section on deploying the applet. When I started
    running the applet using IE, I got the following message "load:
    tutorial.EmpApplet can't be instantiated" and the program
    stopped. What could be the problem? How do I deploy my applet?
    null

    when deploying application i am getting
    java.lang.ClassFormatError.borland/jdbc/dataset/Dataset
    (local variable name has bad constant pool index)
    can ya please reply soon;
    JDeveloper Team (guest) wrote:
    : Bernard,
    : By 'Js2', I assume you mean JDeveloper 2.0 Beta? If that is
    the
    : case, then the deployment wizard can be found as follows:
    : Select New from the File menu to display the New Gallery.
    : Click on the Deployment tab (may have to click on right arrow
    : (->) to view all the tabs in the New Gallery.
    : I think the one you want for applets is the Simple Archive.
    : Double-click on the type of deployment you want to start the
    : deployment wizard.
    : Note: This will be changing slightly in 2.0 production.
    : Deployment will be available from the Project menu instead of
    the
    : new Gallery, and all deployment wizards will be incorporated
    into
    : one, where you choose the deployment type on the first page of
    : the wizard.
    : -L
    : Bernard Polarski (guest) wrote:
    : : I could manage to run in netscape an applet that connect to
    my
    : : 7.3.4 DB, but I used Kawa on the JDK 1.1.7b of Sun. For
    jsuite,
    : : the problem is that borland & Oracle redefine many java
    classes
    : : of Sun and you must bring these new classes with you in a
    Zip
    : or
    : : Jar file. The problem in Js2, is that I did not found a
    : : deployment wizard to help create a zip file containing all
    the
    : : predefined classes. This wizard exists in Jbuilder2 but I
    could
    : : not manage to find it in JS2. Suppose it come in next
    version.
    : : B. Polarski
    : : JDev team (guest) wrote:
    : : : Looks like the appletviewer does not have access to the
    : : : borland.jbcl.* classes. Did you choose to check the
    borland.*
    : : : classes for dependencies before generating the archive?
    : : : Also check the .html page to see if the <archive> tag is
    : : there.
    : : : Hope this helps.
    : : : Regards
    : : : JDev Team
    : : : Worm (guest) wrote:
    : : : : TK Cheng (guest) wrote:
    : : : : : I tried the tutorial in the JDeveloper 2.0 Beta.
    : : Everything
    : : : : : worked fine. I could run the applet within the
    : : JDeveloper.
    : : : I
    : : : : : completed the section on deploying the applet. When I
    : : : started
    : : : : : running the applet using IE, I got the following
    message
    : : : : "load:
    : : : : : tutorial.EmpApplet can't be instantiated" and the
    program
    : : : : : stopped. What could be the problem? How do I deploy
    my
    : : : : applet?
    : : : : I got the same message in IE 5.0, "Failed to load" in
    : : Netscape
    : : : : 4.5, and finally tried HotJava 1.1.5 and got:
    : : : : "File not found when looking for:
    : : : : borland.jbcl.dataset.StorageDataSet
    : : : : null:
    : : : : java.lang.NoClassDefFoundError".
    : : : : If anyone knows how to fix this PLEASE let me know.
    : : Worm
    null

  • How to deploy jclient applet to 9iAS

    Hi All,
    I have urgency problem about applet deploy.
    Step:in jdevloper 903
    a) to produce new empty porject.
    b) to produce Swing/JClient for BC4J -----> FORM ------->select "applet" form.
    c) to produce new Applet HTML page ---->select a applet .
    d) to run Applet Html page is OK.
    e) The deploy Applet Html page to 9iAS or standard OC4J,deploy profile itself produce.
    f) To run applet from 9iAS or standard OC4J display can not find applet class.
    To tell me as soon as possible thank you
    regards,
    Majin

    Hi Frank,
    problem 1
    a) produce applet of Jclient in jdev9032.
    b) produce applet HTML page to select applet above
    c) to run applet HTML page is OK.
    d) to use convert HTML tools convert (tools menus) applet
    HTML page
    e) to run applet HTML error:
    java.lang.NoClassDefFoundError: oracle/jbo/uicli/controls/JClientPanel
    at java.lang.ClassLoader.defineClass0(Native Method)
    problem 2
    to change <applet> tag to <jsp:plugin> into jsp page to
    run it also occur error:
    java.lang.NoClassDefFoundError: oracle/jbo/uicli/controls/JClientPanel
    at java.lang.ClassLoader.defineClass0(Native Method)
    To place applet code in same directory with jsp or html page codebase=".".
    To deploy 9iAS have same error whether 9iAS and database
    in same machine or not.
    I remember install direct net connect if 9iAS and database
    is not same machine
    regards,
    Majin
    [email protected]

  • Deploying my applet

    hello everyone.
    I have spent the morning reading up on how to deploy my applet but i am just getting frustrated. I had no success trying to create the jar file for my applet. All i kept getting was 'bad command of filename' in the command line. But i don't need a .jar to put my applet in a html page right? All i need is the .class file and the one image I am using?
    I put the 'Applet1.class', the picture, and the html page in the same directory but i was hoping if someone could explain why i am not viewing it. here's what i have in the applet tag:
    <applet
    code = "Applet1.class"
    width = "400"
    height = "300"
    hspace = "0"
    vspace = "0"
    align = "top"
    >
    </applet>
    I just don't understand how to deploy my applet. I am using JBuilder 5 Personal and in it's tutorial it says that the "JDK must be on your path" but i don't know how to do this in the command line! I never learned DOS so my knowledge of it is merely navigational and Borland's site is just horrible for finding answers. (at least for newbies)
    Please help me.
    I have three files: the .class, .gif, and the .html in the same directory. How do i put them together?
    getting sad,
    -cloudtwist-

    1. check your classpath to see whether it is correct for both your java commands as well as your working directory
    2. make sure that your .html is pointing to the correct directory in which your .class file resides.
    3. it could also be that you might not have the proper java plug-in in your browser window. You can atleast momentarily avoid this problem by implementing the applet below which you can view in an appletviewer.
    you can try this very simple applet to check how an applet works. Note that in this I have put the html code along as a comment and it should be run with the command "appletviewer basicapplet.java" after compilation. You don't need a .html file for this.
    If you are getting
    import java.awt.*;
    import java.applet.Applet;
    /*<applet code=basicapplet.class
    width=300
    height=300>
    </applet>*/
    public class basicapplet extends Applet{
    public void paint(Graphics g){
    g.drawString("Hello from Java", 80, 120);

  • How deploy javafx Applet in Tomcat

    Hi all!
    Please help me. How i can deploy JavaFX Applet in Tomcat

    Are you using Netbeans or SDK?

  • How relevant is Java Applet technology in 2006 for wide web deployment?

    How relevant is Java Applet technology in 2006 for wide web deployment?
    I'm developing a website which requires deployment Internationally to as many users as possible. Many people advise to stay away from Java applets, others say only use Java 1.1 (AWT limitation), some say use Flash, others say stay away from applets and plugins altogether.
    Of course it depends on the content. I have interactive 3D content currently powered by Java 1.1 applet BUT I have been using Swing to introduce custom GUI functionality but which I know may limit compatibility. I'm torn by this whole debate and what impact it will have on the relevancy of my website.
    How many users out there have browsers that will cope with my content?
    Then there's the issue of all the various different browsers nowadays. I'm testing for IE and Netscape on Windows platform, but what about other browsers and OSes on other platforms? I notice that some websites have a page with tables to show users what browser is and is not compatible with their web content. How far must a web developer go to test all these things exhaustively?
    Then there's the issue of a 16MB download for the latest Java plugin if a user's system is not up to date. Can all modern browsers handle Java even with the latest Java download?
    Or should I just tell the user to get a compatible browser? Another 10-20MB download, depending.
    Or how about Flash? That reportedly has a vast International deployment base, but do I need to pay for a Flash editor / IDE / compiler? So far I've been using freeware (HTML, Java, NetBeans, PHP, MySQL, PNG images) to achieve excellent results within my ludicrously limited budget. The Flash Player is only a 930KB download, and that is quite user friendly even if I must tell a user to get the latest version � only 2 minutes download on a 56K modem or about 15 seconds on DSL followed by a 2 second really easy install.
    Look here to see where Java ranks against Flash and others :
    http://www.macromedia.com/software/player_census/flashplayer/
    I know Java. I use it for apps and now applets. I get it to communicate with my server's PHP and MySQL. It works well on my machine, but will my applets work for millions of users world wide with few technical problems? Looking through Java forums I see developers struggling with Java Applets in Safari on OSX but not on Windows. Then another has problems with Applets in IE on Windows but not on Netscape. Then one browser struggles with key events . . . it's like a mine field out there and I'm struggling for clear direction.
    Microsoft's support for Java has been poor. If I depend on Java Applets now and for the next year, then will they still be supported 3 or 5 years from now? Or will I have to write off this investment in Java development effort and then switch to something else? Or switch to something else now?
    Does Sun Microsystems somewhere reveal how ubiquitous their JVM deployment is?
    Perhaps I'm totally misinformed, but Java Applets seem to be dying out. I'd really love to hear from other active web developers out there doing stuff for wide deployment to mass markets.

    Since my zwebsite is already using Java 1.1 for 3D visualization I've decided to standardize on Java 1.1 to gain maximum browser compatibility. To add another technology like Flash at this point may just complicate matters, especially for me.
    I'm now converting my Swing GUI to AWT. It wastes a lot of time, but the effort should be worth it in terms of the deployment success rate - in theory at least :-)
    Just imagine if Java 1 had Swing . . . dream on!
    In the deployment stats noted in my first post on this thread they state that Java has 86% world wide desktop deployment. Problem is that I bet that figure only relates to Java1. I wonder what pathetic percentage is true for Java2?
    Regarding the use of Java for content rich dynamic content for world world wide web browser deployment . . . I'm rather disillusioned at this point. It seems for this application Java is stuck indefinitely at Java1 and the cool things they developed after that cannot be used effectively. Please note that I am ONLY referring to wide browser deployment. For stand-alone apps and targeted web deployment (where you can reasonably expect your user to upgrade his/her system for a good reason) Java is still very cool.
    As for Java WebStart: I can see the uses for it, but it just does not fit into the browser application where the general public enter your web pages and see cool content inside the essential context of your webpage. This last point is vital for any serious web site. If the object of the site is to deploy a useful app to the user (like a forex trading front-end with GUI) then use Java WebStart by all means.
    After this website, I'll invest in Flash. I'm sure Flash is not without its share of issues, but it has 97% deployment of nearly the latest versions and user download/upgrade is under 1MB. On top of that it does not seem to suffer from corporate relationship woes like those between Sun and Microsoft.
    After all, Flash is labelled as a 'player' and not a Virtual Machine. Mass users out there want to play rather than know about complex and bulky IT stuff.

  • How to deploy the native dll with the applet package by Sun Java Plugin

    I have an applet which use some native methods. I have written code for the native dll, but I don't know how to deploy the DLL with the applet jar file for Sun Java Plugin. What parameter do i should pass to System.loadLibrary()? I think the solution should don't care which browser used by the end client. How to do it? How to deal with the applet security problem?
    Thank for any comment!

    I have a similar problem.
    Trying to use the javax.comm package requires that the user have the win32com.dll located on their machine.
    I have solved the problem by using a signed applet that allows me to write the dll to the clients machine and then run the code but ideally I would like to run the code without writing the dll to the users machine...i.e. I want to load the dll directly through the applet in the same way the class files are loaded forthe applet are loaded without copying them to the clients machine. After trying everything I have come to the conclusion that it is NOT possible. The calls loadLibrary and load both require that the dll reside on the clients machine. If anyone has had a different experience please rebut this.
    Rob

  • How to deploy forms? Or: FRM-92101 on Forms 10g (10.1.2.0.2)

    Hello,
    we have a problem with deploying changed FMX-Files.
    We work with an OAS 10.1.2.0.2 and the Developer Suite 10.1.2.0.2. The Compilation works fine with frmcmp_batch.sh on the server (Linux X86).
    And these Files are accessible within the JInitiator-Applet. All fine.
    But now there's the problem: If anyone has opened a FMX-File within JInitiator and this FMX-File is compiled again, the compilation is successful but the access on this form is not. The user only get an error
    FRM-92101: There was a failure in the Forms Server during startup. This could happen due to invalid configuration.
    Please look into the web-server log file for detatails.
    Details...
    Java Exception:
    oracle.forms.net.ConnectionException: Forms.session <46> aborted: unable to communicate with runtime process.
    at ...
    I remember, there was an equivalent problem under 9i and the solution there was to set the FORMS90_MMAP-Variable. Under 10g there is no such setting. (and this is clearly no solution)
    Now my question: There had to be a way to treat this problem. And all of the Forms-Developer had to have the same problem. I would be very happy if anybody could tell here how to deploy correctly.
    Many thanks in advance,
    Ralf

    Yes, indeed.
    We want to change fmx-files in a running installation because the functionality of the forms have to change, errors have to be corrected and so on.
    I read the suggestions in Note 286762.1, but honestly I think it is to complicated in a development team to handle with two or more directories and to make clear, which one is the production-directory
    I think this could not be the only possibility.
    We thought about this:
    - we have a development directory, a "waiting" directory and a productivity-directory.
    The process could be:
    - compiling in the development directory
    - checking, if the fmx-file is in use (with lsof)
    - if the fmx-file is in use, the fmx-file will be transferred into the "waiting" directory
    - it the fmx-file is not in use, it will be transferred into the productivity-directory
    - in regular intervalls a job has to test, if the files in the "waiting" directory are freed. If so they will be transferred, else not.
    Only if changes are needed to do immediately (e.g. heavily errors), the fmx-file can be moved manually in the productivity-directory.
    But this is only our idea. I thought there has to be a standard deployment-strategy from Oracle or better ideas from other developers.
    Perhaps someone has a even better suggestion for us.
    Many thanks in advance for every idea,
    Ralf

  • How to load an Applet application for 1000cards?

    Hi Friends..
    I want to know How to load an Applet application for 1000cards?..
    Assume that, i have an Applet application that need to loaded into 1000cards..
    So, how to solve this?
    Do i must to load an application manually for each card?
    Is there any another way?
    Thanks in advance..

    for 1000 cards you can use a "small" printer like an evolis "dualis" or something like that
    we've produced thousands of cards with this method in my company.
    the pro is that you can also print the cards in the same time.
    they usually have simple APIS like get_new_card_from_loader(), put_card_on_contacts(), eject_card()
    you can connect any reader on the printer , the raw card contacts are available on a connector.
    some printers also have contactless couplers.
    but remember that deploying cards in the field is not just loading an applet.
    it's also a cryptographic challenge, you need to change the card keys or anyone will be able to play with your cards, adding and removing applets as they want.
    typically this is achieved by using an ultra secret mother key and whatever derivation algorithm you like using data from INIT UPDATE as diversifier. example, you can TDES cipher part of the INIT UPDATE data using the mother key as TDES key, or use something involving SHA1, using a HSM if you are serious, etc.
    for your entertainment here is a high volume card personnalization machine. That's amazing.
    http://www.youtube.com/watch?v=6ZBF_yKRF5w

  • How can a trusted applet get permissions on server

    Hello all,
    I have just now read some tutorial about Trusted Applet and not even experimented one. So my knowledge is absolutely zero.
    I would like to use Trusted Applets in my environment which I describe below:
    I have a database server on a Linux machine. On the same machine I have Apache web server. I want to deploy an applet in the Apache server so that all my clients can use it with a web browser. I want my applet to get permissions to connect to the database and retrieve the results etc., when any client uses my applet by connecting to the Apache server.
    According to what I understand from the Trusted Applet tutorial, they are used in an exactly opposite environment, meaning: to get permissions on the client machine to access the local file system etc., and their purpose is not to get permissions on the server.
    Could anyone please give me some detailed instructions on how to use Trusted Applet in my environment.
    Best regards,
    Gopal.

    Hello,
    I forgot to add one point: my Server machine has JDK 1.4.1_01
    Best,
    Gopal.

  • Run and Deploy JavaFX applets on Linux Fedora

    Hi all,
    This is a step by step, how to run and deploy JavaFX applets on Linux/Fedora
    http://java-javafx-iipt.blogspot.com/2009/04/run-and-deploy-javafx-applets-on-linux.html
    Hope you find it useful.
    Kaesar ALNIJRES

    Something like this should workjava -cp /path-to-external-jar:SMSClient.jar TheMainClassWhen you use the -jar option, the -cp option is ignored. If you want to use -jar, you can add a Class-Path entry into theSMSClient jar's manifest with the relative path to the external jar.

  • Mass deployment of applet (jar)

    In order to deploy an applet en-mass when using the Microsoft JVM for IE I run the command below in a login script. How would I do the same when using the SUN JVM - note that SUN JVM uses .jars instead of .cabs.
    Thanks
    rundll32 c:\winnt\system32\msjava.dll,JavaPkgMgr_Install c:\temp\jvue.cab,0,0,0,0,0,0

    For example : If a company of 400,000 people wish to
    use an online software application which uses 3
    applets why burn your bandwidth downloading the same
    applets 400,000 times.. Hence the mass deploy
    solution.Downloading it via a login script already 'burns' bandwidth.
    And if it is set up correctly the applet is only downloaded once, the first time it is used. And after that it is downloaded only when it changes.

  • Hi team, please help me how to deploy creative cloud desktop application through SCCM for an enterprise

    Hi team, please help me how to deploy creative cloud desktop application through SCCM for an enterprise

    Moving this discussion to the Enterprise Deployment for Creative Cloud, Creative Suite forum.

Maybe you are looking for