JDEV11 isnt properly deploying my applets

So I have an applet I made, just a hello world, works fine in Jdev11. If i tell it to run from the server instance, it cannot find the class file and doesnt load.
load: class CustomerTreeFinal.class not found.
java.lang.ClassNotFoundException: CustomerTreeFinal.class
     at sun.applet.AppletClassLoader.findClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
        blah blah blahHas anyone else had this issue in JD11. I really need to get this working, my job depends on it.

*works in applet viewer but that's it.                                                                                                                                                                                                                           

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 deploy javafx Applet in Tomcat

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

    Are you using Netbeans or SDK?

  • Deploy infobus applet--"Invalidating certificate principals"

    Hi, lots of questions about deploying infobus applet had been
    posted previously, but none of them is my case.
    After finishing generating "package1.jar", I copy every *.jar,
    *.zip file into my deploy directory "c:\temp" as well as the
    package1.applet1.html. But while I open this html file in
    Netscape 4.7, no applet appear. In the java console, the
    following error message appear..
    Invalidating certificate principals in [file:/C|/temp/try/,]
    Can the applet be invoked without webserver?
    I had tried to transfer the whole directory to the website(sun
    webserver), the same error message appear( only change is the
    path now is [155.69.60.117:88])
    Can anyone tell me why?
    thx
    null

    This is hardly an Advanced Language Topic, nor is it Java-related. And who uses Netscape? I'm just playing with you. No but seriously, nobody is gonna answer that here. This is a JAVA forum.

  • Deploying an Applet

    hey there,
    if created a applet with which you can send SQL statements to a Oracle Database and then see the results in a nice swing table (JTable). If Only used the connection manager to acces the database. In the JDeveloper environment this works very nice.
    My problem starts when I want to deploy the Applet somewhere else. The error i'm getting in my iExplorer statusbar (after using the deployment wizard) is:
    load: package1.MainApplet cant be instantiated.
    if got some experience with java and using jars and stuff. I'm pretty sure it's not that (I've tried basicly everything I could think of.
    Is it possible that this error occurs because I'm not running it from the database computer. I thought that it just wouldn't be able to log on to the database. (the logon secuence starts after clicking a button so I expect it would be able to start)
    please let me know what you think even if you think it's of no help, dialog often helps you know
    thanks
    Erik
    [email protected]

    Hi,
    It looks like you are not using BC4J in your applet. There are some bugs there for the 3.1.1 release, but not the ones you are getting.
    The most important thing for deployment of an applet is:
    1. Deploy EVERYTHING that your applet needs to the server. This includes the applet classes themselves, as well as dependency libraries such as the classes12.zip file for the connection, rt.zip, etc. Best thing to do here is to select your project in the Navigator, and choose Properties ... from the right-mouse menu. Now click the Libraries tab. Here you will see a list of libraries. All of the jar/zip files that make up these libraries need to be deployed with your applet to the webserver.
    2. If you have deployed all of your dependency libraries to the webserver, you will need to make sure that the HTML file that contains the applet tag correctly lists all of the jars/zips in the ARCHIVE tag. Note that if you are using the JDK 1.2 plugin (you should), then the ARCHIVE tag appears MORE THAN ONCE in your HTML file. Open that file in a text editor and make sure the ARCHIVE list is correct for ALL instances of the tag.
    Here are some good generic applet references to check:
    Borland JBuilder doc: http://www.borland.com/techpubs/jbuilder/jbuilder3-s/pg/applets.html
    JavaSoft Plugin Download: http://java.sun.com/products/plugin/
    JavaSoft Applets Resources Page: http://www.javasoft.com/applets/index.html
    null

  • 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?

  • 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);

  • Deploying Signed Applet to my users

    Hello,
    I have a signed applet from Thawte and it runs good on my machine, but I have the prblem of trying to deploy the applet to other users on other machines. What is the steps needed so that I don't have to change the java.policy file on their computers. This applet will run on a server that the group has access to.

    Develop a HTML or JSp to point to download the Applet Class and ask the Users to access the Html Page... now the Applet would have downloaded to the User Machines and it will do the job u wanted to do...

  • 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 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.

  • 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.

  • Trouble deploying Java Applet for animation(s) on web site

    I FTP weather radar images up to my host's server, thus onto my web site constantly. As of now, I am successfully doing so with a Java Script. However, I am wanting to do so with a Java Applet.
    The trouble I am having is that the Applet deploys in the browser once on the web site..but the radar images are not being drawn upon thus not showing up to animate. I have a username and password for my web site, but have been told by many that this would not be a prohibitive situation for the Applet to retrieve the images. Thus, I feel that I am coding something wrong causing the Applet to fail in "locating" the images to animate. All files for the Applet are in the same directory as the images I am trying to upload into the Applet, yet still no success. "GR" is the sub directory where the radar image uploaded files are contained within.
    I have attached the coding that I am/have been trying to implement. If anyone can assist I would be greatly appreciative!
    <P>
    <applet archive="aniscode.jar,png.jar" code="AniS.class" align="left" height="800" width="800">
    alt="Java must be installed and working for this animation to work">
    <param name="controls" value="startstop, looprock, toggle, zoom, step, speed, refresh ">
    <param name="backcolor" value="000000">
    <param name="forecolor" value="ffffff">
    <param name="image_window_size" value="800,800">
    <param name="auto_refresh" value="1">
    <param name="toggle_size" value="8,10,5">
    <param name="active_zoom" value="x">
    <param name="pause_percent" value="990">
    <param name="enable_png" value="true
    <param name="basename" value="anim*.png">
    <param name="no_enh" value="true">
    <param name="num_frames" value="10">
    <param name="rate" value="75">
    <param name="image_base" value="http://www.leesweather.net/GR/ ">
    <param name="filenames" value="br1_9.png,br1_8.png,br1_7.png,br1_6.png,br1_5.png,br1_4.png,br1_3.png,br1_2.png,br1_1.png,br1_0.png">
    </applet>

    I FTP weather radar images up to my host's server,
    thus onto my web site constantly. As of now, I am
    successfully doing so with a Java Script.
    However, I am wanting to do so with a Java Applet.
    e trouble I am having is that the Applet deploys in
    the browser once on the web site..but the radar
    images are not being drawn upon thus not showing up
    to animate. I have a username and password for my
    web site, but have been told by many that this would
    not be a prohibitive situation for the Applet to
    retrieve the images. Thus, I feel that I am coding
    something wrong causing the Applet to fail in
    "locating" the images to animate. All files for the
    Applet are in the same directory as the images I am
    trying to upload into the Applet, yet still no
    success. "GR" is the sub directory where the radar
    image uploaded files are contained within.
    I have attached the coding that I am/have been trying
    to implement. If anyone can assist I would be
    greatly appreciative!
    <P>
    <applet archive="aniscode.jar,png.jar"
    code="AniS.class" align="left" height="800"
    width="800">
    alt="Java must be installed and working for this
    animation to work">
    param name="controls" value="startstop, looprock,
    toggle, zoom, step, speed, refresh ">
    <param name="backcolor" value="000000">
    <param name="forecolor" value="ffffff">
    <param name="image_window_size" value="800,800">
    <param name="auto_refresh" value="1">
    <param name="toggle_size" value="8,10,5">
    <param name="active_zoom" value="x">
    <param name="pause_percent" value="990">
    <param name="enable_png" value="true
    <param name="basename" value="anim*.png">
    <param name="no_enh" value="true">
    <param name="num_frames" value="10">
    <param name="rate" value="75">
    <param name="image_base"
    value="http://www.leesweather.net/GR/ ">
    <param name="filenames"
    value="br1_9.png,br1_8.png,br1_7.png,br1_6.png,br1_5.p
    ng,br1_4.png,br1_3.png,br1_2.png,br1_1.png,br1_0.png">
    </applet>I hope you have them properly packed into a jar in which case you can
    use this method...
    Code snippet from hyperview.dev.java.net
    public Image getImageFromJar(String fileName)
    int length = 0;
       if( fileName == null )
           return null;
       Image image = null;
       try
          image = getAppletContext().getImage( getClass().getResource(fileName) );
       catch(Exception exc)
          exc.printStackTrace();
          return (Image)null;
       return image;
    } ///----- Otherwise they should be in the same codebase as the Applet
    // and you can use this call (Way slower to download)
    Image myImage = getAppletContext().getImage(new URL(getCodeBase(),"YOUR_IMAGE_NAME.gif") );Good Luck!
    (T)

  • Deploy an Applet across multiple servers

    I have an applet which will need to be deployed over numerous servers and urls.
    I was wondering if there was a way for the applet to know which ip/url it was run from, without making a properties file and packaging it in the applets jar file.
    As an example,
    Let's say I had 3 servers, at the following urls
    https://server1.com
    https://server2.com
    https://server3.com
    My applet needs to call a servlet on the server where the applet came from.
    Ex.
             URL url = new URL( SERVER +"/ServletToCall" );
             HttpsURLConnection servletConnection = ( HttpsURLConnection ) url.openConnection();
             ...How do I know which url to call without hardcoding it in, or using a properties file?

    you'll need to change
    URL url = new URL( SERVER +"/ServletToCall" );
    //to
    URL url = new URL( getCodeBase().getHost() +"/ServletToCall" );// getCodeBase()unless you are planning on signing the applet

  • Deploying InfoBus Applet

    I am new to java and JDeveloper. I have created a simple InfoBus Java Applet with a connection to an Oracle database. How do I test to see if it works outside the Jdeveloper environment. I went through the steps of packaging my files into a .jar file, deploying this jar file into my deployment directory:jdev\redist, copying the .zip and .jar files referenced in my html file into my deployment directory. What do I do now? Do I need to set a classpath to my deployment directory? How do I execute the application, which is in the jar file, to view in a web browser?

    You have made a few mistakes.
    You can easily package your applet by creating a deployment profile (Project | Deploy | New Deployment profile...)
    Once you include all the appropriate libraries and such, you will have a Jar/Zip file.
    The Redist directory has nothing to do with your deployment target - redist simply contains libraries that you can safely distribute with your apps without licencing issues.
    Now, to test your applet outside of JDeveloper, you can do several things:
    1. You can deploy it to your actual server, etc which you will do eventually.
    2. You can test it using the AppletViewer.
    To do this, Create a CMD shell. Go to the [JDev]\bin directory. Run SetVars.bat to initialize your environment variables. Then run AppletViewer -classpath...;YOUR-JAR appletName
    I hope this helps,
    John
    null

Maybe you are looking for