Using class files with applets

I've converted a college project, a calculator, into an applet for a website resume. When the html file that loads the applet is opened on a machine with a JVM, the applet works fine. When I tested it on a machine that doesn't have a JVM, the applet wouldn't open.
I'm assuming its because I'm using methods from classes such java.math, java.awt and java.awt.event. I wanted to try to include the neccessary class files into a .jar file that could be included into the archive attribute. Would this work? and also, where can I actually find these files so that I can put them into a jar file. For example, which directories would I look at to find them? I'm on Mac OS 10.3.7.
Even with a search utility,I can't find the specific files with I'm looking for.
Any help is greatly appreciated

Hi,
It doesn't matter that you have used classes in the packages java.math etc. The application will never run if there isn't a JRE installed for the web browser. I think most people usually puts a script on the html page which detects if a JRE is installed, and directs users to the download page if there is no JRE.
Kaj

Similar Messages

  • Using *.so files with eclipse

    Hey there
    I'm having a little problem compiling an application which uses *.so files with eclipse:
    If I run eclipse from the directory in which the *.so files are present, the application will run.
    However, if I run eclipse from any other directory , the applicationwon't run, stating that the *.so were not found.
    I've placed the path to the directory on my $PATH , and tried to add the following line to the VM variables in the RUN menu:
    -Djava.class.path=<directory _name>
    but to no avail..
    Any ideas?
    Thank You!
    Message was edited by:
    Yossale

    I added it to the LD path, but nothing changed.
    How can I check if eclispe picked up the change?First check that you can now run your program from any directory and then worry about Eclipse.
    Where did you setup the LD_LIBRARY_PATH?

  • How use class file in jsp(very urgent)

    i have class file called birds (birds is actually a xslt file transformed to java class file) now this class file i have to use in my jsp file. how can i use them. if possible can any one give me sample code please very urgent
    can any one help me

    java files
    import org.w3c.dom.*;
    import javax.servlet.http.*;
    import javax.xml.transform.*;
    import javax.xml.transform.stream.*;
    import java.io.*;
    public class XmlParser
         public String XmlParser()
              try
    String strXML= "employee.xml";
                   String xslFile = "employeeId.xsl";
                   TransformerFactory tFactory = TransformerFactory.newInstance();
                   StreamResult theTransformationResult = new StreamResult( new ByteArrayOutputStream() );
                   Transformer transformer = tFactory.newTransformer(new StreamSource(xslFile));
                   transformer.transform(new StreamSource(new StringReader(strXML)), theTransformationResult);
                   String output = theTransformationResult.getOutputStream().toString()
              catch(Exception e)
                   System.out.println(" ***** XmlParser.XmlParser ERROR ***** " + e);
    return output;
    using class files in jsp
    <%@ page import="com.qqqq.aaaa.XmlParser"%>
    <%
         XmlParser xmlParser          =     new XmlParser();
    out.println(xmlParser.XmlParser());
    %>
    i think it will help you.

  • Using ditaval files with XML Author

    I've been evaluating XML Author and am trying to determine how to use ditaval files with it. If I want to save a ditamap as a book for PDF creation, the Prompt for DitaVal File check box is greyed out. Does anyone know why this might be the case? Is the use of ditavals limited to a full implementation of FrameMaker?
    I tried adding PromptForDitaval=1 to the [General] section of the ditafm.ini file to no avail.

    Make sure you are using the latest hotfix for Director (11.5.8) - it is the first to support AS# in Flash. Your SWF members will probably need to be linked to their external files instead of fully imported.
    Or perhaps you're saying that you've met both these conditions and are still seeing problems?

  • Using Word files with audio on a PC

    I was wondering if it were possible for one to use Word files with recorded audio from a Mac on a PC? I'm not sure if it is possible at all, but if somebody knows how to extract the audio, it would be a great help. I used Word 2008 for the Word files.
    Thanks

    If you don't get an answer here, try the forums devoted entirely to the problems of MS apps:
    http://answers.microsoft.com/en-us/mac/forum/macword

  • How to use .keystore file with BEAweb 6?? Help

    Hi,
    Is there a way to use .keystore file with BEA Weblogic 6 or 6.1 ?
    I used keytool to create private key and public key..
    I do not know how to tell weblogic 6 to use it....
    Can this be done through the GUI or do I have to add something to the .xml
    config file for the site?
    Thanks,
    Rob

    "Bobby Digi" <[email protected]> wrote:
    Hi,
    Is there a way to use .keystore file with BEA Weblogic 6 or 6.1 ?
    I used keytool to create private key and public key..
    I do not know how to tell weblogic 6 to use it....
    Can this be done through the GUI or do I have to add something to the.xml
    config file for the site?
    Thanks,
    Rob
    nope. with 7.0 you can do that.
    >
    >

  • How to use XDCAM files with Premier 4 Trial

    According to everything I have read, using XDCAM files with Premier 4 is easy. It just works. However, it doesn't with me.
    For starters, when I create a new project, there are no XDCAM presets, despite it stating there are in the various documents I have read.
    If I either try to import a file directly or copy it to the hard drive and then import it, I get:
    Error Message
    The importer reported a generic error
    Not very helpful.
    This is a trial version of Premier to try to establish if this product is any good. I did try to contact Adobe but they say they don't support trial users. Not very helpful. Since Adobe are obviously not very interested in selling their products, is there anyone else out there whop can answer this or should I just use Final Cut Pro instead (well if Adobe are not interested in helping a potential customer, what chance is there of being helpful once they have your money???)

    As far as I am concerned, editing XDCAM EX files with CS4 - I have yet to edit XDCAM (HD) files - is as easy as editing DV(CAM) material on my i7 Extreme machine with Vista Ultimate and 12 Gig of RAM.
    I am also pleased to report that the audio bug that beset CS3 when editing XDCAM EX files namely, audio cutting out randomly, is a thing of the past.
    The whole CS4 Suite (including Premiere) has been running very smoothly on my (beefy) machine.

  • How to use .class files from jsp

    hi i want to use .class files in my jsp program can any one help me

    so if you are using pacakges here is normal example...
    say you .java code is something like...
    package com.util;
    public Class BeanUtility{
    }place the .class file at WEB-INF/classes/com/util folder if those folders are missing create it and place the .class file there. or pacakage it as a jar file & put it into WEB-INF/lib folder
    Now in jsp you can either use jsp:Usebean tag or use normal scriplets to create an instance of the nessary class...
    here is an example for you
    <%@ page language="java" import="com.util.BeanUtility" %>
    <%
    BeanUtility bn = new BeanUtility();
    %>however,i'd suggest you to make use of JSTL / Inbuilt tag libraries /MVC 2.0 approach for better maintainance & readablity.
    Hope this might help
    REGARDS,
    RaHuL

  • "Use RAW files with external editor" greyed out for Photoshop CS2?

    I've just upgraded from iPhoto 5, and the "Use RAW files with external editor" option in the advanced preferences is greyed out when I select Photoshop CS2 as my external editor (back in the General pane).
    It works fine when Preview.app is selected. I can understand that pre-CS2 Photoshop wouldn't be available, but CS2 is capable of editing RAW images.
    Has anyone been able to get iPhoto 6 to send a RAW image to Photoshop CS2 using this preference? I've written an Applescript to do it in iPhoto 5, but I'd rather use something cleaner...
    15" PowerBook G4   Mac OS X (10.4.4)  

    Works great with Photoshop Elements, opens with Camera Raw. The issue is you can't save it so that iPhoto gets the changes.
    You have to save it and then re-import. I tried all permutations of saving it in originals and modified folders in the library. No luck. The only thing I didn't try is to save it as a jpeg over the top of the full sized one iPhoto created on import.

  • How to use "choose file with prompt" command?

    I need to use "choose file with prompt" command and I want give user possibility choose ONLY images (jpeg, png, gif). So, I write like this:
    choose file with prompt "Please, choose images for processing..." of type {"JPEG Image"}
    But this doesn't work! - All files (including jpegs) are dimmed, and user can't choose any....
    So, how can I filter JPEGs, PNGs and GIFs?

    I have found, that most of images on my computer has missing file_type, I don't know why..... so "type identifier of (info for (choose file))" also doesn't work properly.
    The only one way that 100% works is use Uniform Type Identifier (UTI) -- details here: http://www.huw.id.au/code/fileTypeIDs.html
    thanks.
    iMac G3, PowerBook G3 FW   Mac OS X (10.4.5)  

  • Is anybody use Hyper File with LabView?

    Is anybody use Hyper File with LabView?
    I Have a project that need to conect to a hyper file data base Made by PCsoft.
    Thanks
    Benoit Séguin
    Software Designer

    I have never used HyperFile, but a quick check of the company's website indicated that there are ODBC drivers available for it so it should be a simple matter connecting through ADO.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Using java files with JSP

    Ok, so im pretty new to this JSP lark and have a question.
    I have Java Classes resting in .java files, i need to know how
    do i link these files to my .jsp page so that the classes/variable etc.
    declared with the java files are recognised when they are come
    across in the .jsp file.
    I dont know if I have explained that properly.

    Just include this statement at the top of your jsp:
    <%@page import="yourpackage.yourclass"%>
    The .java files should of course be compiled into .class files prior to using (and you don't include the extension when importing).

  • How to use parameter file with java

    Is it possible to use a parameter file with Java, and is there any class/method to make it easy to call and use these parameter from a text file, other than scanning the whole text file manually as we can do normally with visual basic/c++, so we can call the program with the parameter file, like java testing c:\\testing.ini

    If I understand you correctly, you may be looking for a properties file. This is basically a text file that contains pairs of strings in the form:
    parameter1=value1
    parameter2=value2
    parameter3=value3
    ...etc.
    and the values are retrieved using the java.util.Properties class - see:
    http://java.sun.com/j2se/1.3/docs/api/java/util/Properties.html
    Sample use://Call chis method once, to load the props file.
    //props file is called "demo.properties", and is
    //in a directory that is included in the classpath
        private void loadMyProperties() throws Exception
         InputStream stream = getResourceAsStream("/demo.properties");
         if(stream == null)
             throw new Exception("stream is null!");
         demoProperties = new Properties();
         demoProperties.load(stream);
         stream.close();
    // Then you can retrieve properties in your code using:
    String param3 = demoProperties.getProperty("parameter3");
    //...etc

  • How to configure the .ini file with applet

    hai
    i am using native methods in that methods they use some ip addresses. when i am using that native methods in applet run the applet using appletviewer tool it works fine but when i am open that applet using html page browser not configure that .ini file data .how to configure that .ini file with browser

    Hi Jay SenSharma,
    Thanks for your immediate response.
    I saw your URL links, But in your link give the recursive deployment using wlst. But my question is how to configure the oracle weblogic library files into Admin server & Managed Servers by using the wls.jar file through wlst script to create the new domain.
    But if create the new domain by using GUI mode then we manually give the admin server port number & managed servers port number and name.
    By default the library files are configured with the Admin server in GUI mode. But the Managed server the Library files are not configured with the Managed servers. Then we manually select all the library files to the corresponding managed servers. Then only the applications are deployed into the corresponding managed server.
    Regards,
    S.vinoth Babu

  • Se development kit (jdk 6) problem creating class file with HelloWorldApp

    I downloaded the java SE Development kit (JDK 6) with Java FX SDK and used the download manager from Java web site, the program downloaded the
    jdk-6u13-javafx-1_1_1-windows-i586 icon to my desktop and the java program to
    C\Program Files\Java\jdk1.6.0_13
         Jre1.5.0_05
         Jre1.6.0_03
         Jre6
    I then created a Java source file which was HelloWorldApp.java. and typed in the Hello World Code as requested I saved it to
    C\Documents and Settings\Compaq_owner\Java.
    Then I try to compile my source file into a .class file and get stuck as I am told to open a command window which I do through, start\allprograms\accessories\command promt.
    My command window says C:\Documents and Setting\Compaq_Owner>
    I am told to compile my source file and I must change my directory in the command window to the directory where my file is located.
    I type after the existing promt, cd C:\java and also tried, cd C:\Documents and Settings\Compaq_Owner\Java\HelloWorldApp. And was told both times the system cannot find the path specified
    I typed dir after the promt and can see the java directory there in the list, but have I placed my HelloWorldApp File in the wrong place what is wrong please help I cannot get off the ground
    Kind regards pete

    petefizz wrote:
    I then created a Java source file which was HelloWorldApp.java. and typed in the Hello World Code as requested I saved it to
    C\Documents and Settings\Compaq_owner\Java.Then the full path to your HelloWorldApp.java file is: C\Documents and Settings\Compaq_owner\Java\HelloWorldApp.java.
    Then I try to compile my source file into a .class file and get stuck as I am told to open a command window which I do through, start\allprograms\accessories\command promt.
    My command window says C:\Documents and Setting\Compaq_Owner>
    I am told to compile my source file and I must change my directory in the command window to the directory where my file is located. You file is located in the directory, C\Documents and Settings\Compaq_owner\Java
    I type after the existing promt, cd C:\java and also tried, cd C:\Documents and Settings\Compaq_Owner\Java\HelloWorldApp. And was told both times the system cannot find the path specifiedcd stands for Change Directory. You want to change to the directory where your .java file is. You can not use a path that ends in a file because a file is not a directory.
    You may need to put C\Documents and Settings\Compaq_owner\Java inside double quotes, "C\Documents and Settings\Compaq_owner\Java" I think newer versions of Windows will not require the double quotes.

Maybe you are looking for

  • TS1963 Migrating from Time Machine onExternal Disk,  Why won't Migration Assistant see my USB Connected external disk drive?

    I had to format my internal disk drive on my MacBook Pro, and reload Mountain Lion 10.8.3.   The startup assistant could not see my external disk drive with the Time Machine backup files.  After many tries I told it to skip restoring the files and le

  • Ios 6 Ipod touch 5th Gen - In-app Purchases Don't work

    Ok i don't know if it is just me but i just recently got my new ipod and i cannot restore any of my in app purchases. such as extra content for jetpack joy ride or angry birds, plants vs zombies and so on. i got to purshase an in app item as usal i p

  • CVP 9.0 (1) - VXML Server service is not getting started

    Hi I am installing a CVP 9.0(1) in my lab and the VXML Server service is  not getting started; It throws the below error. From CVP Error logs, I see the following the snippets. 13: 172.16.13.147: May 29 2013 11:53:55.937 -0700: %CVP_9_0_Infrastructur

  • USB Printer Driver in OS X 10.2.8

    Hi, I am going to set up a B&W G3 for someone this Thursday. She wants to use her old printer, but can't find the printer's driver CD. I know one of the great things about Mac OS X is that it has many USB printer drivers built right into the system,

  • "Billing block" status has been set.

    One contract was incepted (Created) on 13.03.2008. BRI's also generated, BRI is nothing but which calculates the EMI amount with respective billing dates. But due to some reason all BRI got u201Cblock for billingu201D status. Because of that BILLING