Is it a bug in Sun's Tutorial example!!!!

Hello everybody! I donno whether the following Tutorial example code is buggy or not but it won't run under j2sdk 1.4.2 and also under 1.5 as smoothly as Tutorial says(only the 1st line prints but not all). You can find the code:
http://java.sun.com/docs/books/tutorial/essential/io/dataIO.html
And the file name is:
DataIODemo
Does anyone know how to make it work?
Thanks.
--DM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

The author made a "bonehead" error - s/he hardcoded a newline character ('\n') when writing the invoice1.txt file. Since this is a UNIX/Linux character, it will not cause an error when run there - BUT - when run on an OS that doesn't use that convention - Windows, etc - it results in an incorrectly written file.
This illustrates a code portability problem; don't hardcode!
I leave as an exercise for the reader the correction of the format of the total dollar amount.
A corrected copy is below. //********* preceeds changes. Compare with the original to see the differences.
import java.io.*;
public class DataIODemo
    public static void main(String[] args)
        throws IOException
        // write the data out
        DataOutputStream out  = new DataOutputStream(new
            FileOutputStream("invoice1.txt"));
        double[] prices       = {19.99, 9.99, 15.99, 3.99, 4.99};
        int[] units           = {12, 8, 13, 29, 50};
        String[] descs        = {"Java T-shirt",
            "Java Mug",
            "Duke Juggling Dolls",
            "Java Pin",
            "Java Key Chain"};
        char lineSep          = System.getProperty("line.separator").charAt(0);
        for (int i = 0; i < prices.length; i++)
            out.writeDouble(prices);
out.writeChar('\t');
out.writeInt(units[i]);
out.writeChar('\t');
out.writeChars(descs[i]);
out.writeChar(lineSep);
out.close();
// read it in again
DataInputStream in = new DataInputStream(new
FileInputStream("invoice1.txt"));
double price;
int unit;
StringBuffer desc;
double total = 0.0;
try
while (true)
price = in.readDouble();
in.readChar();
// throws out the tab
unit = in.readInt();
in.readChar();
// throws out the tab
char chr;
desc = new StringBuffer(20);
while ((chr = in.readChar()) != lineSep)
desc.append(chr);
System.out.println("You've ordered " +
unit + " units of " +
desc + " at $" + price);
total = total + unit * price;
} catch (EOFException e)
System.out.println("For a TOTAL of: $" + total);
in.close();

Similar Messages

  • Run client execution problem  when running Sun J2EE tutorial example

    Hi,
    I'm trying to run the Sun J2EE tutorial example, CartApp.
    When come to run the client application I got the following error:
    The command:
    E:\Dev\src\J2EE_J2EE_tutorial\examples\ears>runclient -client CarApp.ear -name CartClient -textauth
    The error:
    Application threw an exception:java.io.IOException: CarApp.ear does not exist
    The deployment complete without error.
    I tried to the the APPCPATH to :
    set APPCPATH=E:\Dev\src\J2EE_J2EE_tutorial\examples\ears\CartAppClient.jar
    set APPCPATH=CartAppClient.jar
    On both set, it gave the same error above.
    Did someone known the problem I have ?
    Thnaks

    hi ,
    I think u have given other disply name to your J2EE client ,
    Anyway check disply name of J2EE client through deploytool.
    u have to use that display name to access the j2ee client .
    suppose ur j2ee client displyname is testclient, u can use:
    runclient -client ConverterApp.ear -name testclient
    hope this will help u,
    babu.

  • Help with SUN JNDI tutorial example

    HI guys there's an example of how to bound an object along with its codebase in the sun jndi tutorial
    import javax.naming.*;
    import javax.naming.directory.*;
    import java.util.Hashtable;
    * Demonstrates how to bind a Serializable object to a directory
    * with a codebase.
    * (Use Unbind to remove binding.)
    * usage: java SerObjWithCodebase <codebase URL>
    class SerObjWithCodebase {
    public static void main(String[] args) {
         if (args.length != 1) {
         System.err.println("usage: java SerObjWithCodebase <codebase URL>");
         System.exit(-1);
         String codebase = args[0];
         // Set up environment for creating initial context
         Hashtable env = new Hashtable(11);
         env.put(Context.INITIAL_CONTEXT_FACTORY,
         "com.sun.jndi.ldap.LdapCtxFactory");
         env.put(Context.PROVIDER_URL, "ldap://localhost:389/o=JNDITutorial");
         try {
         // Create the initial context
         DirContext ctx = new InitialDirContext(env);
         // Create object to be bound
         Flower f = new Flower("rose", "pink");
         // Perform bind and specify codebase
         ctx.bind("cn=Flower", f, new BasicAttributes("javaCodebase", codebase));
         // Check that it is bound
         Flower f2 = (Flower)ctx.lookup("cn=Flower");
         System.out.println(f2);
         // Close the context when we're done
         ctx.close();
         } catch (NamingException e) {
         System.out.println("Operation failed: " + e);
    So in therory you should be able to retrieve an object in through doing a look up, and then cast it... but in this approach the client that performs the look up shouldn't need to include the class definition of the object that is being retrieved, because it's being included in the code base of the context, but then how do you avoid compilation errors such:
    SerObjWithCodebase.java:73: cannot resolve symbol
    symbol : class Flower
    location: class SerObjWithCodebase
    Flower f2 = (Flower)ctx.lookup("cn=Flower");
    in the client code that is attepting to perform the look up?... is there a work-around for this problem? please let me know, thanks in advance.

    As far as I am aware, there is no possible way to compile or execute code without the client knowing it's definition.
    The client will always need the class definition if it want's to use it.
    If you don't want this coupling, then you could look at using an EJB container (which still requires the client to have skeleton code) or using something like web services

  • Help with  running sun jndi tutorial example LookUp.class

    I am learning JNDI,and when I run LookUp.java available in JNDI TUTORIAL ,souce code here:
    * @(#)Lookup.java     1.3 99/08/12
    * Copyright 1997, 1998, 1999 Sun Microsystems, Inc. All Rights
    * Reserved.
    * Sun grants you ("Licensee") a non-exclusive, royalty free,
    * license to use, modify and redistribute this software in source and
    * binary code form, provided that i) this copyright notice and license
    * appear on all copies of the software; and ii) Licensee does not
    * utilize the software in a manner which is disparaging to Sun.
    * 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 SUFFERED BY LICENSEE AS A RESULT OF USING,
    * MODIFYING OR DISTRIBUTING 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.
    * This software is not designed or intended for use in on-line
    * control of aircraft, air traffic, aircraft navigation or aircraft
    * communications; or in the design, construction, operation or
    * maintenance of any nuclear facility. Licensee represents and warrants
    * that it will not use or redistribute the Software for such purposes.
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import java.util.Hashtable;
    class Lookup {
    public static void main(String[] args) {
         // Check that user has supplied name of file to lookup
         if (args.length != 1) {
         System.err.println("usage: java Lookup <filename>");
         System.exit(-1);
         String name = args[0];
         // Identify service provider to use
         Hashtable env = new Hashtable(11);
         env.put(Context.INITIAL_CONTEXT_FACTORY,
         "com.sun.jndi.fscontext.RefFSContextFactory");
         try {
         // Create the initial context
         Context ctx = new InitialContext(env);
         // Look up an object
         Object obj = ctx.lookup(name);
         // Print it out
         System.out.println(name + " is bound to: " + obj);
         // Close the context when we're done
         ctx.close();
         } catch (NamingException e) {
         System.err.println("Problem looking up " + name + ": " + e);
    after I compiled it sucessfully,I typed
    java LookUp d:/test.java ,error message shown following:
    Problem looking up LookUp.java: javax.naming.NoInitialContextException: Cannot i
    nstantiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is
    java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory]
    please help me!

    Read the Preparations chapter of the tutorial.
    It tells you to download and install the file
    system service provider from
    http://java.sun.com/products/jndi/#download

  • Is this bugs for Sun Java System Portal Server 6 2005Q4 (errorStoreDP) ?

    Hi,
    I installed Sun Java System Portal Server 6 2005Q4 under window xp environment.
    I used the following command to deploy war file, it worked for me (because I setup enough services and role for amadmin user), deploy/undeploy was worked very well for me.
    pdeploy deploy -u amadmin -w amAdminPassword -g -p
    amAdminPassword -v portletsamples.war
    Two months later, I did not change anything (configuration) within the two months.
    I use the same deploy/undeploy command to deploy war file again, I got the following error =>
    errorStoreDP (sms-UNKNOWN_EXCEPTION_OCCURRED)
    Message:The user does not have permission to perform the operation.
    Why this condition happened ? is this bugs for sun portal server ?
    I uninstall this sun portal server and reinstall it again, I still got
    the same error message. why ?
    But funny thing is that I format my machine, then install window xp and
    install System Portal Server 6 2005Q4 again, then it works for me again.
    is this reasonable ?
    I really don't know why ?
    Can someone help me ?
    Thanks!

    Hello,
    It seems you are really asking how you should design your application to use portlets.
    Your approach now seems to be that you would just copy your servlets to portlets. You can use the PortletRequestDispatcher to include content from your servlet. See http://portals.apache.org/pluto/multiproject/portlet-api/apidocs/javax/portlet/PortletRequestDispatcher.html
    I also found the following discussion on this topic http://www.mail-archive.com/[email protected]/msg00481.html
    But I don't think I'd recommend that approach for your application. How would you maintain the application going forward? You will have both servlets and portlets to maintain when you change the applicaiton. I assume you will be keeping the servlet application and using it also? Do you want the portlet content to match the servlet content always, or will they display differently?
    Instead, what you might consider an model-view-controller approach and designing a web service (the model) for both applications (servlet and portlet, views) to consume.
    As for the basics of porlet applications, the JSPPortlet will use JSPs for presentation of hte portlet content. GenericPortlet is the default implementation of the Portlet interface. Implementing the portlet interface means you must write the implementation yourself. Here are a couple of good tutorials to get you started on the Portlet spec:
    http://www.javaworld.com/javaworld/jw-08-2003/jw-0801-portlet.html
    http://www.javaworld.com/javaworld/jw-09-2003/jw-0905-portlet2.html
    Also there is this JSE tutorial, but I don't know how current it is:
    http://developers.sun.com/prodtech/portalserver/reference/techart/portlets.html
    Hope that helps.

  • Another bug in sun one studio?

    is this another bug in sun one studio or something else.
    i have set the author to a different name through
    tools -> options -> java sources
    but when i create session beans or cmp beans, it uses the previous name.
    however java main classes display the new name

    This looks like a bug to me. I didn't see anything in the bug database that was similar, so I would suggest that you file a bug at:
    http://java.sun.com/webapps/bugreport/
    using:
    Category: Sun Java Studio, Sun ONE Studio, Forte for Java
    SubCat: EJB Components

  • JEE 6 Tutorial example missing

    I have downloaded the Java EE 6 tutorial examples. The hello2_basicauth example on basic authentication is missing. Does any one know why can that happen?
    Thanks in advance,
    Roberto

    download
    http://www.javapassion.com/j2ee/HW14MDB.htmlrefer
    http://java.sun.com/javaee/5/docs/tutorial/doc/bnbpq.html

  • Getting below error while running Tutorial example in Jdev 10G (10.1.3.3.0)

    Hi Guys ,
    I am trying to run the Tutorial example in Jdev 10G ( 10.1.3.3.0) and getting the below error message.
    Please help me to resolve this error.
    Error :
    Network Error (tcp_error)
    A communication error occurred: "Operation timed out"
    The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.
    For assistance, contact your network support team.
    Thanks and regards
    Raghu

    Hi Raghu,
    Make sure you are using the right version of Jdeveloper with your EBS application,
    I understand you are trying to run the page with a R12 application, below are the Jdev , EBS map,
    ATG Release 12 Version     JDeveloper 10g Patch
    12.0.0     <<Patch 5856648>> 10g Jdev with OA Extension
    12.0.1 (patch 5907545)     <<Patch 5856648>> 10g Jdev with OA Extension
    12.0.2 (patch 5484000 or 5917344)     <<Patch 6491398>> 10g Jdev with OA Extension ARU for R12 RUP2 (replaces 6197418)
    12.0.3 (patch 6141000 or 6077669)     <<Patch 6509325>> 10g Jdev with OA Extension ARU for R12 RUP3
    12.0.4 (patch 6435000 or 6272680)     <<Patch 6908968>> 10G JDEVELOPER WITH OA EXTENSION ARU FOR R12 RUP4
    12.0.5 (No new ATG code released)     No new JDev patch required
    12.0.6 (patch 6728000 or patch 7237006)     <<Patch 7523554>> 10G Jdeveloper With OA Extension ARU for R12 RUP6 Release 12.1 ATG Release 12.1 Version     JDeveloper 10g Patch
    12.1 (Controlled Release - only included for completeness)     <<Patch 7315332>> 10G Jdev with OA Extension ARU for R12.1 (Controlled Release)
    12.1.1 (rapidInstall or patch 7303030)     <<Patch 8431482>> 10G Jdeveloper with OA Extension ARU for R12.1.1
    12.1.2 (patch 7303033 or patch 7651091)     <<Patch 9172975>> 10G JDEVELOPER WITH OA EXTENSION ARU FOR R12.1 RUP2
    For more details, pleas erefer the metalink
    Note 416708.1 How to find the correct version of JDeveloper to use with eBusiness Suite 11i or Release 12.x
    With regards,
    Kali.
    OSSi.

  • Having problem in getting JaveEE tutorial example source

    I have tried to follow the link below to get example source, unfortunately it doesnt work, can someone show me how to get or send it to my email.
    http://docs.oracle.com/javaee/6/tutorial/doc/gexaj.html#giqtt
    Thanks~

    Please provide your platform OS and version, jdk version and the version of any tools you are using (netbeans, glassfish, etc).
    Also, what happens when you follow the instructions titled' To Obtain the Tutorial Component Using the Update Tool' at the link you provided?
    Java EE 6 Tutorial Component
    The tutorial example source is contained in the tutorial component. To obtain the tutorial component, use the Update Tool.
    To Obtain the Tutorial Component Using the Update Tool
    1.Start the Update Tool.
    From the command line, type the command updatetool.
    On a Windows system, from the Start menu, choose All Programs, then chooseJava EE 6 SDK, then choose Start Update Tool.
    2.Expand the GlassFish Server Open Source Edition node.
    3.Select the Available Add-ons node.
    4.From the list, select the Java EE 6 Tutorial check box.
    5.Click Install.
    6.Accept the license agreement.
    After installation, the Java EE 6 Tutorial appears in the list of installed components. The tool is installed in the as-install/docs/javaee-tutorial directory. This directory contains two subdirectories: docs and examples. The examples directory contains subdirectories for each of the technologies discussed in the tutorial.

  • Trouble With Web Services Tutorial Examples

    I am having trouble getting the Web Services Tutorial examples to run.
    For example, when I compiled the hello1 example, and tried to run it, I got a directory listing. All the directory listing contained was the dukewaving.gif file.
    When I tried to run hello2, I got something similar. This time though, there were two jsp files in the listing. By clicking on the first one, I was able to run the application.
    Now I can't run the bookstore1 example. I went back a second time, to be sure that I was following the instructions exactly as written. I am gettng an HTTP Status 404 - Servlet BookStoreServlet is not available.
    I don't know why this is happening. There were no errors when I ran the Ant targets, and the WAR file did get copied to the webapps directory.
    I would be very grateful for any help. I am very new to Java and am finding this very frustrating.
    Thank You,
    Chrissy

    This is what's in my log file. Why is the servlet being marked as unavailable?
    2004-03-13 21:11:37 Manager: deploy: Deploying web application at '/bookstore1'
    2004-03-13 21:11:37 Manager: Uploading WAR file to C:\jwsdp-1.3\webapps\bookstore1.war
    2004-03-13 21:11:37 Manager: Extracting XML file to C:\jwsdp-1.3\conf\Catalina\localhost\bookstore1.xml
    2004-03-13 21:11:37 Manager: install: Installing context configuration at 'file:/C:/jwsdp-1.3/conf/Catalina/localhost/bookstore1.xml' from 'jar:file:/C:/jwsdp-1.3/webapps/bookstore1.war!/'
    2004-03-13 21:13:47 Marking servlet BookStoreServlet as unavailable

  • Error deploying jpa from oepe tutorial example on Weblogic 12c server

    I am having the next error trying to deploy jpa in to Weblogic 12c server from the oepe tutorial example at http://www.oracle.com/webfolder/technetwork/tutorials/obe/jdev/obe11jdev/11/eclipse_intro/eclipse_intro.html. The "I---------I" markups are below, "bean.Hello", "hello" and "response.jsp". I've tried to find a solution on the web but nothing. I'll apreciate any help. thanks.
    greeting.jsp:1:1: Needed class "bean.Hello" is not found.
    ^
    greeting.jsp:5:44: The bean type "bean.Hello" was not found.
    <jsp:useBean id="hello" scope="page" class="bean.Hello"></jsp:useBean>
    I----------I
    greeting.jsp:6:23: This bean name does not exist.
    <jsp:setProperty name="hello" property="*" />
    I-----I
    greeting.jsp:34:18: Error in "C:\Users\Andres Tobar\workspace\DemoEARWeb\WebContent\pages\response.jsp" at line 13: This bean does not exist.
    <%@ include file="response.jsp" %>
    I------------I

    I have started again all the tutorial from the begining, trying to not miss any configuration setting even the ones displayed on pictures, finding that the tutorial example now works. I think the first time i have tryed it i missed to activate the anotations facet in project properties because this configuration step is not explained in the tutorial unless you take a close look into the tutorial images. Probably that was the cause of the mentioned error, not so sure, but the tutorial example really works.

  • Disable commands BUG under Sun-Solaris 10 ?

    <p>If you execute a disable commands while another user is justdoing a "force restructure",</p><p>you got no error and the command "display application"shows the command-flag with false.</p><p> </p><p>But every user can still execute a "force restructer",even if the user log in later.</p><p> </p><p>This behaviour occurs under OS=Sun Solaris with essbase Version9.2.0.1,</p><p>under windows with essbase version 9.2 Build 082 it worksfine.</p><p> </p><p>Is this a known BUG ?</p>

    I can't help you solaris tuning, but some things to look at.
    1. Is the Essbase.cfg file the same on both servers? You might have parallel calculation turned on in one and not the other. Caches could also be set differently
    2. Are the database caches set the same? This could impact performance as well
    3. Are you doing an apples to apples comparison? Is one database loaded and recalculated many times while the other is not (or restructured or reloaded)

  • Sun ejb tutorial compilation problem with sample code

    I have been trying to follow the ejb tutorial off of Sun's web site. However, I get the following problem when I try to compile the sample code.
    prompt>javac Demo.java
    works fine
    Prompt>javac DemoBean.java
    works fine
    Prompt>javac DemoHome.java
    DemoHome.java:23: cannot resolve symbol
    symbol : class Demo
    location: interface ejb.demo.DemoHome
    public Demo create() throws CreateException, RemoteException;
    ^
    1 error
    Prompt>
    Can anyone help me out as I have tried several books which conveniently skip the part about compiling errors.
    I noticed I don't have a CLASSPATH variable and then i created one with just '.' in it and that didn't work. any help would be appreciated as this is driving me crazy. Thanks.

    try to change the order of the exception.
    first RemoteException and then CreateException

  • Code generation bug in Sun Studio 12

    Hi,
    The following program prints `Failure' when compiled with -xO4 where nothing should be printed (when compiled with no optimization or -xO2). It looks to me that the first comparison `buggy_routine' against 0x80 is returning True where it should return False.
    #include <stdlib.h>
    #include <stdio.h>
    typedef unsigned long long int      EIF_NATURAL_64;
    typedef unsigned char   EIF_BOOLEAN;
    typedef int EIF_INTEGER_32;
    typedef char * EIF_REFERENCE;
    char s[] = "9223372036854775808";
    void buggy_routine (EIF_REFERENCE Current, EIF_NATURAL_64 arg1)
        EIF_NATURAL_64 tu8_1;
        tu8_1 = (EIF_NATURAL_64) ((EIF_INTEGER_32) 128L);
        if ((EIF_BOOLEAN) (arg1 <= tu8_1)) {
        } else {
            if ((EIF_BOOLEAN) (arg1 <= ((EIF_NATURAL_64)  9223372036854775808ull ))) {
            } else {
                  printf("Failure\n");
    int main (int argc, char ** argv, char **envp ) {
        EIF_NATURAL_64 loc2 = (EIF_NATURAL_64) 0;
        loc2 = (EIF_NATURAL_64) atoll(s);
        buggy_routine ("s", loc2);
    }To reproduce:
    cc -xO4 bug.c -o bug ; ./bug
    It fails on both 32 and 64-bit code generation for x86. I haven't tried on Sparc as I need to install Sun Studio 12. Is this a known issue? Is there an easy workaround?
    I tried with Sun Studio 11 and it worked just fine there.
    Regards,
    Manu
    PS: I've tried with both version (the first is the one from the default installation) and the second after I noticed there were some patches available:
    cc: Sun C 5.9 SunOS_i386 Patch 124868-01 2007/07/12
    cc: Sun C 5.9 SunOS_i386 Patch 124868-02 2007/11/27

    An issue filed at bugs.sun.com does not go directly into the bug database. It is evaluated, and if it turns out the report is actually a bug not previously reported, goes into the database. You get a notification and chance to reply after the report is evaluated.
    In this case, I picked up your report myself, and filed the bug. The bug ID is 6654314, and will be visible at bugs.sun.com in a day or two.

  • Applet from Sun's tutorial - can't get it to work

    Hi all - I'm new to Java
    Here's what I did so far:
    I installed the Sun ONE Studio CE.
    I downloaded the example .java files - ClickMe and Spot from the tutorial found at http://java.sun.com/docs/books/tutorial/java/concepts/practical.html
    Using Sun ONE Studio I compiled the two java files into class files.
    I created a html file called ClickMe.html and inserted the code from the tutorial page.
    Now when I open the page (using localhost or the filepath) the applet displays ok and no errors occure. However no red spots apear when I click somewhere in the applet.
    By searcing a little around I was led to beleive that it might have to do with setting the classpath so that the ClickMe.class which is called from the html file can find the Spot.class.
    In command promt I ran C:>set and found that CLASSPATH="\QTJava.zip"
    I then ran the command C:>set CLASSPATH=C:\sun-one-ide\sampledir\spot (which is the folder where the .java, .class and the .html file is on my computer).
    This a) did not help and b) when I restarted my computer was back to CLASSPATH="\QTJava.zip"
    I am running Windows XP professional.
    Am I doing something wrong? Or do I need to install something more like the JRE (I kind of thought that everything needed was installed with the studio)?

    Thank you for your reply. I tried everything you suggested. I checked "Show Java Console", and this is the error message that came when I tried to click inside the applet.
    java.lang.NoClassDefFoundError: Spot
         at ClickMe.mousePressed(ClickMe.java:28)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)Seems like even though the spot.class file lies within the same folder, the ClickMe.class (which is the one that runs as an applet in the html file) can't find it. It again makes me wonder if the CLASSPATH have something to do with this (though I'm just guessing).
    If anyone got more suggestions I'd be very happy.

Maybe you are looking for

  • How to get rid of 'created with adobe elements 9 trial version' message off my video?

    I have created a film using the trial version and this message is right in the centre of the whole thing! Does anyone know how I can get it off? Help :S Hann x

  • ITunes Match on my iPhone shows songs that are not in iTunes on my Mac and PC.

    Yes, I know that deleting songs from iTunes does not necessarily mean they are deleted from iTunes Match, too. Not checking the box when deleting songs is definitely not why this is occurring, so hear me out. My Mac hosts my main iTunes library. What

  • Can't get ethernet bridge to connect to network

    Hi I am trying to connect my old iMac G3 (10.2) to my airport express network with an Aeropad Mini (an ethernet bridge powered by USB hub on my mac - made by Macsense). The network is seen successfully by an iMac G5, an Intel Macbook and a PC. The co

  • Third party scenarios -- problem

    Hi Gurus In third party scenario.  The vendor supplies the material and if  1)by unfortunately goods get damaged before reaching to the client 2)client identified some of the materials are poor in quality. In these scenarios what is the business proc

  • Weblogic 6.1 sp1 and SQLServer 2000

    We want to connect our Weblogic 6.1 sp1 server to a SQLServer 2000 db. We downloaded the JDriver from bea.com, but all the istructions that came with it are for WLserver 5.1. What has to be done to do this with 6.1 sp1? Thanks, Ariel