Bad Sample Files or I'm intoxicated

I believe you guys may have some miss information in your sample files or the beer I have consumed this evening has comprised my comprehensionfaculties.
I'm trying to test out the TLF sample files in Flex 3.2 and 3.3 however I am getting compiler errors. I may be missing a .swc that the instructions didn't mention or you may have some outdated references in your sample code.
The sample files I downloaded and readme are here:
http://opensource.adobe.com/wiki/display/tlf/Text+Layout+Framework
The readme suggest that the samples are compatible with Flex 3.2 and indeed give instructions for how to get it working. However, after following the instructions (and figuring out a few of the ambiguous steps) I was able to get almost everything working except a few small things like compiling and actually running the sample. =)
When I try to compile I am getting the following errors from the SimpleEditor example (the only project I am using):
Unable to find:flashx.textLayout.conversion.TextConverter
(is this file in another .swc the instructions missed or perhaps it is Flex 4 class and therefore not compatible with Flex 3.2-3?):
Undefined method:_textFlow.interactionManager.selectRange
(has this been changed to setSelection I wonder?):
Undefined event: StatusChangeEvent.INLINE_GRAPHIC_STATUS_CHANGE
(could be a typo in your sample code *INLINE_GRAPHIC_STATUS_CHANGED* <--- NOTE: The added “D”
Any help and guidance would be much obliged.
PS. you have some hardcoded paths in your sample files that make running the samples a tad vexing.
-erik

I have tried downloading the samples and I am able to run them without any issues, may be you have an older version of tlf swc. To get the latest swc and the sdk you can download the source of sdk and swc from svn. Visit the following URL to get the instructions on how to get the source, http://opensource.adobe.com/wiki/display/flexsdk/Get+Source+Code.
Hope this helps.
Thank You
Chetan Sachdev
http://www.riageeks.com

Similar Messages

  • Bad class file: WSRP_v2_Registration_PortType ...

    I've been trying to deploy a portlet to a 10.1.3.2 Portlet Container on OAS 10g without much luck. The portlet deploys correctly to the standalone OC4J within JDeveloper. Here is the error:
    ... \application-deployments\Portlet\Portlet\oasis\names\tc\wsrp\v2\bind\runtime\WSRP_v2_Registration_Binding_SOAP_Tie.java:930: cannot access oracle.portlet.wsrp.v2.soap.runtime.WSRP_v2_Registration_PortType_modifyRegistration_Fault_SOAPSerializer
    bad class file: ... \application-deployments\Portlet\Portlet\oracle\portlet\wsrp\v2\soap\runtime\WSRP_v2_Registration_PortType_modifyRegistration_Fault_SOAPSerializer.java
    file does not contain class oracle.portlet.wsrp.v2.soap.runtime.WSRP_v2_Registration_PortType_modifyRegistration_Fault_SOAPSerializer
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    new oracle.portlet.wsrp.v2.soap.runtime.WSRP_v2_Registration_PortType_modifyRegistration_Fault_SOAPSerializer(ENCODE_TYPE, NOT_NULLABLE, SOAPVersion.SOAP_11), SOAPVersion.SOAP_11);
    ^
    1 error
    The class it is complaining about is in wsrp-stubs.jar. I've included the jar in my deployment from JDeveloper and placed it in OAS as a shared lib and import it into the classpath at deployment time. The sample portlets distributed with the portlet container deploy without issue. I'm out of ideas. Any thoughts you have would be appreciated. Thanks!
    -Jason

    Boing.

  • How do I find bad music files?  I have thousands of files, but some are bad.  When I try to load them into iTunes, it just spins.  I need a routine to identify and remove the bad files.  Any ideas?

    How do I find bad music files?  I have thousands of files, but some are bad.  When I try to load them into iTunes, it just spins.  I need a routine to identify and remove the bad files.  Any ideas?

    Hi ajoddo20,
    Welcome to the Apple Support Communities!
    You can use Home Sharing to import music and other media from one computer to another. Please use the instructions and information located in the attached article for information on how to complete the process. 
    iTunes 11 for Mac: Use Home Sharing to import items from another iTunes library
    Cheers,
    Joe 

  • Opening plug in settings, sample files, loops, effects, etc

    What application do I need to use to open the plug in settings, sample files, loops, etc.? Some open with quicktime, however, most all of them are pst files. I am new to this and have no idea what that is. The files are there, they just won't open, even if I change them to open with quicktime. Any help would be appreciated.
    Garage band v1.1.0 (26)   Mac OS X (10.4.8)  

    I've tried opening them from within garageband, no success. I went through finder just to see what type of file they were compared to the ones that would open. the ones that will open open with quicktime and are .aif files. The other ones won't open even if I select quicktime as the application to open them with. I know I sound stupid, but I'm kinda new to the digital recording. Am I missing an application or driver or something? Thanks for responding.
      Mac OS X (10.4.8)  

  • UDF error: bad class file

    Hi to all!
    i faced with following problem:
    i'm trying to use in message mapping exported Java function and get following error:
    <i>Source code has syntax error:  E:/usr/sap/DXI/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapb97a3fc699d611dcaf9d001b78d07a70/source/com/sap/xi/tf/_UserToRoleId_.java:3: cannot access kolpix.echo bad class file: E:\usr\sap\DXI\DVEBMGS00\j2ee\cluster\server0\.\temp\classpath_resolver\Mapb97a3fc699d611dcaf9d001b78d07a70\classpath\Echo_1(kolpix/echo.class) class file has wrong version 50.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. import com.sap.aii.mappingtool.tf3.;import com.sap.aii.mappingtool.tf3.rt.;import java.util.;import java.io.; import java.lang.reflect.*;import kolpix.echo; ^ 1 error</i>
    There is my Java function:
    package kolpix;
    public class echo {
        public echo() {
        public static String hello(String str) {
            return "Hello "+str+"!";
    in UDF into the <b>Imports</b> textField i just put <b>kolpix.echo;</b>
    and in body function i just put <b>return echo.hello("World");</b>
    Could any one explain what does it mean and what i must do to solve the problem?
    Thx in advance.

    <a href="http://j-integra.intrinsyc.com/support/kb/article.aspx?id=183240">That info explain all</a>

  • Cannot access Graphics - bad class file

    Hey.
    When I try to compile my source I get an error saying...
    .\Man.java:146: cannot access Graphics
    bad class file: .\Graphics.java
    file does not contain class Graphics
    Please remove the files or make sure it appears in the correct subdirectory.
    It's on a different computer so that's not exactly it, but it's close enough. Compiler was working fine until the other day when i found out that all the source files were zipped up in src.zip, I had to extract Graphics.java so I could open it in emacs, and after I did that it started giving me that error message. There's nothhing wrong with my source, and I didn't move Graphics, it's still in the correct place exactly as it was, and i looked at it, all the right stuff is still inside. I'm quite confused.
    So do I have to reinstall? That would mean a massive download on my 56k and I kinda wanna carry on with my work.

    You should not need to unzip src.zip to use the Graphics class or any class that comes with j2sdk. The compiled classes are in jar files that are installed in certain directories when you install the j2sdk.
    You should only need to have a line "import java.awt.Graphics;" near the start of your source code.
    The error most likely occurred when the compiler found a Graphics.class file but inside the file is java.awt.Graphics class, not a plain Graphics class.

  • LWAP migration of AIR-1131AG-A failed bad mzip file

    Hello Experts,
    I would like to connect a Cisco LWAP 1131AG-A-K9 with a WLC4402 running on 4.1.171.0
    Unfortunately, the software downloaded from the WLC is not correctly unpacked on the AP.
    I can see an error on the console stating "bad mzip file".
    We did several test with converting back to autonomous and migrating to LWAP again using the Cisco Upgrade Tool
    but we are failing constantly, even though the Cisco Upgrade Tool states a successful update.
    All our european Cisco LWAPs 1131AG-E-K9 are running fine by the way on the controller.
    I have added the Console messages to show the error to You.
    Who knows anything about that ?
    Please support.
    *Mar  1 00:00:08.865: %SYS-5-RESTART: System restarted --
    Cisco IOS Software, C1130 Software (C1130-RCVK9W8-M), Version 12.4(21a)JA2, RELEASE SOFTWARE (fc1)
    Technical Support: http://www.cisco.com/techsupport
    Copyright (c) 1986-2009 by Cisco Systems, Inc.
    Compiled Mon 02-Nov-09 18:17 by prod_rel_team
    *Mar  1 00:00:08.892: %CAPWAP-5-CHANGED: CAPWAP changed state to DISCOVERY
    *Mar  1 00:00:09.389: %CDP_PD-4-POWER_OK: Full power - AC_ADAPTOR inline power source
    *Mar  1 00:00:09.839: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0, changed state to up
    *Mar  1 00:00:18.494: %DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0 assigned DHCP address 163.157.68.121, mask 255.255.255.0, host
    name AP001e.7abd.cf52
    Translating "CISCO-CAPWAP-CONTROLLER.corp.skf.net"...domain server (163.157.156.161)
    Translating "CISCO-LWAPP-CONTROLLER.corp.skf.net"...domain server (163.157.156.161) [OK]
    *Mar  1 00:00:38.814: %CAPWAP-3-ERRORLOG: Did not get log server settings from DHCP.
    *Mar  1 00:00:38.816: %CAPWAP-3-ERRORLOG: Could Not resolve CISCO-CAPWAP-CONTROLLER.corp.skf.net
    *Mar  1 00:00:48.819: %CAPWAP-3-ERRORLOG: Go join a lwapp controller
    *Mar  1 00:00:48.819: %LWAPP-3-CLIENTERRORLOG: Set Transport AddressCalled
    examining image...
    extracting info (286 bytes)
    Image info:
        Version Suffix: k9w8-.124-3g.JA
        Image Name: c1130-k9w8-mx.124-3g.JA
        Version Directory: c1130-k9w8-mx.124-3g.JA
        Ios Image Size: 3410432
        Total Image Size: 3410432
        Image Feature: WIRELESS LAN|LWAPP
        Image Family: C1130
        Wireless Switch Management Version: 4.1.171.0
    Extracting files...
    c1130-k9w8-mx.124-3g.JA/ (directory) 0 (bytes)
    extracting c1130-k9w8-mx.124-3g.JA/info (286 bytes)
    extracting c1130-k9w8-mx.124-3g.JA/6701.img (131328 bytes)
    *Mar  1 00:00:48.831: %LWAPP-5-CHANGED: CAPWAP changed state to JOIN
    *Dec  9 12:37:21.242: %LWAPP-5-CHANGED: CAPWAP changed state to IMAGE
    extracting c1130-k9w8-mx.124-3g.JA/c1130-k9w8-mx.124-3g.JA (3138988 bytes)
    extracting c1130-k9w8-mx.124-3g.JA/7101.img (13132
    *Dec  9 12:38:19.147: %SYS-4-PUPDATECLOCK: Periodic Clock update with ROMMON failed, because size left in ROMMON (4294967295), size
    needed (29), error code (-1)
    *Dec  9 12:38:19.148: %SYS-5-RELOAD: Reload requested by lwapp image download proc. Reload Reason: NEW IMAGE DOWNLOAD.
    *Dec  9 12:38:19.148: %LWAPP-5-CHANGED: CAPWAP changed state to DOWN8 bytes)
    extracting info.ver (286 bytes)
    New software image installed in flash:/c1130-k9w8-mx.124-3g.JA
    Configuring system to use new image...done.
    archive download: takes 58 seconds
    Writing out the event log to nvram...
    Xmodem file system is available.
    flashfs[0]: 11 files, 3 directories
    flashfs[0]: 0 orphaned files, 0 orphaned directories
    flashfs[0]: Total bytes: 15998976
    flashfs[0]: Bytes used: 6035968
    flashfs[0]: Bytes available: 9963008
    flashfs[0]: flashfs fsck took 30 seconds.
    Base ethernet MAC Address: 00:1e:7a:bd:cf:52
    Initializing ethernet port 0...
    Reset ethernet port 0...
    Reset done!
    ethernet link up, 100 mbps, full-duplex
    Ethernet port 0 initialized: link is up
    Loading "flash:/c1130-k9w8-mx.124-3g.JA/c1130-k9w8-mx.124-3g.JA"...#################################################################
    ###################################################################################################################################b
    ad mzip file, unknown zip method
    Error loading "flash:/c1130-k9w8-mx.124-3g.JA/c1130-k9w8-mx.124-3g.JA"
    Interrupt within 5 seconds to abort boot process.
    Loading "flash:/c1130-rcvk9w8-mx/c1130-rcvk9w8-mx"...###############################################################################
    File "flash:/c1130-rcvk9w8-mx/c1130-rcvk9w8-mx" uncompressed and installed, entry point: 0x3000
    executing...

    We are using right now only Lightweight-APs with ETSI-Standards on several Controllers without having that problem.
    The problem appears during the migration from AUutonomous to Lightweight of an 1131AP with American-Standard.
    The according WLC is configured to support US-Country of course.
    I cannot believe that this is the problem.  This would mean different LWAPP-images per regulation domain.
    Who knows more about this damned mzip-error during the extracting phase of the LWAPP-image ?

  • Informatica - import data from line 6 in sample files in universal adapter

    Hi ,
    I am trying to extract data from R12 tables to sample CSV files provided by oracle in universal adapter CRM analytics.
    As per oracle guidelines we are supposed to import data from line 6 as first five lines will be skipped during ETL process.
    While importing the the target file in target designer ,I am entering 6 as value in the Lov box "Start import at Row".
    Still Data is loaded from first line of the file and not 6 th line.
    Please let me know more on how to achieve this requirement.
    Thanks,
    Chaitanya.

    HI,
    Please let me know the solution for this.It is very high priorirty for me now.
    I want to extract data into sample files provided by oracle starting from 6 th line.
    At present I am able to load from first line of the .csv file.
    Thanks,
    Chaitanya

  • Problem with sample file "SampleShapefileToJGeomFeature"

    I download two zip files shape2sdojava.zip and sdo_java_040319.zip (http://www.oracle.com/technology/software/products/spatial/index.html) , because I want write java aplication that will work with shp files.
    I tried to compile this example file "SampleShapefileToJGeomFeature.java", but i get error message:
    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
         DBFReaderJGeom cannot be resolved to a type
         DBFReaderJGeom cannot be resolved to a type
         The constructor ShapefileReaderJGeom(String) is undefined
         ShapefileFeatureJGeom cannot be resolved to a type
         ShapefileFeatureJGeom cannot be resolved to a type
         The method getShpFileType() is undefined for the type ShapefileReaderJGeom
         The method getMinMeasure() is undefined for the type ShapefileReaderJGeom
         The method getMaxMeasure() is undefined for the type ShapefileReaderJGeom
         The method getMinZ() is undefined for the type ShapefileReaderJGeom
         The method getMaxZ() is undefined for the type ShapefileReaderJGeom
         The method getMinX() is undefined for the type ShapefileReaderJGeom
         The method getMaxX() is undefined for the type ShapefileReaderJGeom
         The method getMinY() is undefined for the type ShapefileReaderJGeom
         The method getMaxY() is undefined for the type ShapefileReaderJGeom
         The method getShpDims(int, double) is undefined for the type ShapefileReaderJGeom
         at SampleShapefileToJGeomFeature.main(SampleShapefileToJGeomFeature.java:303)
    So is this mean that this class DBFReaderJGeom does not exist in java.spatial.util?
    Maybe this sample file is outdated, because class ShapefileFeatureJGeom is changed, now takes two parametars insted of one.
    Message was edited by:
    user547750

    I found similar problem on this thread
    Oracle Spatial Java API Problem
    Is it possible for somebody to send me on mail these jar libraries from oracle database 10gR2?
    And I dont know why this is not fixed yet on the oracle web site?
    mail: konj_p @ yahoo.com
    Thanks

  • Problem in Packages while compailing the code "bad class file"

    Hi,
    I wrote the code for encrypt the password in .java file and i used package also
    i'm importing that package and i'm compiling the .java file it throws the error like this.
    regi1.java:23: cannot access EncryptPassword
    bad class file: .\EncryptPassword.java
    file does not contain class EncryptPassword
    Please remove or make sure it appears in the correct subdirectory of the claspath
    EncryptPassword enc = new EncryptPassword();
                            ^
    1 error
    EncryptPassword.java
    package encrypt;
    import java.io.UnsupportedEncodingException;
    import java.security.MessageDigest;
    import java.security.NoSuchAlgorithmException;
    import sun.misc.BASE64Decoder;
    import sun.misc.BASE64Encoder;
    import sun.misc.CharacterEncoder;
    public class EncryptPassword  
         public EncryptPassword() { }
         public EncryptPassword instance;
         public String getEncrypt(String plaintext) throws Exception
         MessageDigest md = null;
         try
         md = MessageDigest.getInstance("SHA"); //step 2
         catch(NoSuchAlgorithmException e)
         throw new Exception(e.getMessage());
         try
         md.update(plaintext.getBytes("UTF-8")); //step 3
         catch(UnsupportedEncodingException e)
         throw new Exception(e.getMessage());
         byte raw[] = md.digest(); //step 4
         String hash = (new BASE64Encoder()).encode(raw); //step 5
         return hash; //step 6
         public EncryptPassword getInstance() //step 1
         if(instance == null)
         return new EncryptPassword();
         else
         return instance;
    }regi1.java
    import encrypt.*;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class regi1 extends HttpServlet
         public regi1(){     }
          public void service(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse)
            throws ServletException, IOException
            java.io.PrintWriter printwriter = httpservletresponse.getWriter();
            HttpSession httpsession = httpservletrequest.getSession(true);
            httpservletresponse.setContentType("text/html");
            try
            {     EncryptPassword enc = new EncryptPassword();
                   String Email = httpservletrequest.getParameter("email");
                   String Password = httpservletrequest.getParameter("password");
    *--- some code for database connection---*
    String insQry1 =  "INSERT INTO register (Email, Pass);
    pStmt.setString(1,Email);
    pStmt.setString(2,enc.getEncrypt(Password));     
              catch( Exception exception)
                   exception.printStackTrace();           
                   System.out.println(exception);
              httpservletrequest.getRequestDispatcher("./FileSubmit.jsp").forward(httpservletrequest,httpservletresponse);
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Multipost: http://forum.java.sun.com/thread.jspa?threadID=5225097&tstart=0
    Please continue the thread there and don't multipost!
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • How to save kontakt sample files in Logic Pro X project?

    Hi,
    I'm using Kontakt (Komplete, Native Instruments) as my samples for my midi in Logic Pro X, and my sample libraries are stored in an external hard drive which I bring around.
    I need to send my Logic file over to another computer which will not have my hard drive that contains my sample libraries.
    Is there a way to save my Kontakt Sample midi files together with Logic's folder, so when I open Logic without my ext Hard Drive, the midi can still be read?
    I tried clicking Save As --> Organize my project as a "Folder", and ticked EVERYTHING --- Audio Files, EXS instruments and samples, Ultrabeat samples, Space Designer impulse responses, Movie file, Include Apple Sound Library Content.
    But when I unplugged my external hard drive (which my sample files are stored), and clicked open that logic file which i saved, windows pop up saying it cannot locate my samples.
    Is this a bug in Logic Pro X, or am I doing something wrong?
    Or is it totally not possible to copy sample files over?

    skylurker wrote:
    I tried clicking Save As --> Organize my project as a "Folder", and ticked EVERYTHING --- Audio Files, EXS instruments and samples, Ultrabeat samples, Space Designer impulse responses, Movie file, Include Apple Sound Library Content.
    <snip>
    Or is it totally not possible to copy sample files over?
    Hi
    Logic will not copy over any 3rd party samples etc. If you really need to, you would need to copy the appropriate libraries manually, though with Kontakt, some libraries would need to be re-authorised.
    CCT

  • Javac probleme: bad class file error

    I'm new to java
    I have two classes myPoint.jav and TestPoint.java, when I compile them, I error:
    in the command line I type:
    C:\otman\java>javac -g geometry\src\myPoint.java TestPoint.java
    TestPoint.java:8: cannot access myPoint
    bad class file: c:\otman\java\geometry\src\myPoint.class
    class file contains wrong class: geometry.src.myPoint
    Please remove or make sure it appears in the correct subdirectory of the classpa
    th.
    myPoint p = new myPoint();
    ^
    1 error
    Can some one help me Thanks
    //Here is the class c:\otman\java\TestPoint.java
    import geometry.src.*;
         Testing my class Point
    public class TestPoint {
    public static void main(String[] args) {
              myPoint p = new myPoint();
              System.out.println("thank you very much");
              System.exit(0);
    // And here is the class c:\otman\java\geometry\src\myPoint.java
    package geometry.src;
         class myPoint members and methods of a 3D point
    public class myPoint {
         private double m_x,m_y,m_z;          // the coordinates
         public double getx() {return m_x;}
         public double gety() {return m_y;}
         public double getz() {return m_z;}
         public void setx(double x) {m_x=x;}
         public void sety(double y) {m_y=y;}
         public void setz(double z) {m_z=z;}
         public void translate(double dx,double dy, double dz) {
              m_x += dx;m_y += dy;m_z += dz;
         // Constructor ------------------------------------------------------------
         myPoint(double x,double y,double z) {
              m_x=x;m_y=y;m_z=z;
         myPoint() {
              m_x=0;m_y=0;m_z=0;
         myPoint(myPoint p) {
              m_x=p.getx();m_y=p.gety();m_z=p.getz();
    // ---------------------------------------------------------------------------------

    Thank you for the reply but still have problem.
    I created a directory classes and the directories look like:
    C:\otman\java\
    TestPoint.java
    classes\
    geometry\
    src\
    myPoint.java
    When I compile using the line command:
    C:\otman\java>javac -g -d classes geometry\src\myPoint.java TestPoint.java
    I get the error:
    TestPoint.java:8: cannot find symbol
    symbol : constructor myPoint()
    location: class geometry.src.myPoint
    myPoint p = new myPoint();
    ^
    1 error
    Now the directories look like:
    C:\otman\java\
    TestPoint.java
    classes\
    geometry\
    src\
    myPoint.class
    geometry\
    src\
    myPoint.java
    I think that myPoint was compiled without problem but TestPoint was not compiled and it gives 1 error.
    Can you help me? Thanks.<!--Session data-->

  • Bad class file error

    Hi
    I set my java home to JDK 1.4 and execute my build.It is ok.
    Then i try the same by setting JDK 1.5 as java home. build is ok.
    But now i need to use only JDK 1.4.So i set my java home as jdk 1.4 and try to execute the build.xml
    Now i got the error of class file has wrong version 49.0, should be 48.0
    I understand that the class files(49.0) which are created by JDK 1.5 and i try to execute those by JDK 1.4.
    But i donot knwo how to solve this.
    Will anybody please help me to solve?
    Thank you

    Hi
    I didnot compile java files with JDK 1.4 and 1.5 both.
    First time i use JDk 1.4. for all java files
    Second time i use JDk 1.5 for all java files.
    Finally i should use JDK 1.4. So i come to jdk 1.4 and set java home jdk 1.4 and exucute my build.xml. Then i got the bad class file error.
    Can u help me at this point?
    Thank you

  • Bad Class File error - Win2k & J2SDK1.4.0_01

    Hi,
    I am trying to run a 'Hello World' program which came with the FreeTTS package from links from the java.sun.com website, and am not able to compile the program. I get the error:
    FreeTTSHelloWorld.java:4: cannot access file
    cl.com.sun.speech.freetts.audio.Voice
    bad class file: .\cl\com\sun\speech\freetts\audio\Voice.class
    class file contains wrong class: com.sun.speech.freetts.Voice
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    import cl.com.sun.speech.freetts.audio.Voice;
    _______________________________________^
    The FreeTTSHelloWorld.java File is printed below [its embarassingly simple..]
    * Copyright 2001 Sun Microsystems, Inc.
    import cl.com.sun.speech.freetts.audio.Voice;
    import cl.com.sun.speech.freetts.audio.JavaClipAudioPlayer;
    import cl.com.sun.speech.freetts.en.us.CMULexicon;
    public class FreeTTSHelloWorld {
    public static void main(String[] args) {
         try {
         String voiceClassName = (args.length > 0) ? args[0] :
              "com.sun.speech.freetts.en.us.CMUDiphoneVoice";
         Class voiceClass = Class.forName(voiceClassName);
         Voice helloVoice = (Voice) voiceClass.newInstance();
         helloVoice.setLexicon(new CMULexicon());
         helloVoice.setAudioPlayer(new JavaClipAudioPlayer());
         helloVoice.load();
         helloVoice.speak
              ("Thank you for giving me a voice. I'm so glad to say
    hello to this world.");
         System.exit(0);
    catch (Exception e) {
         e.printStackTrace();
    I've tried a billion things, including moving around the .class files [which, by the way, i extracted myself from the .jar files which came with the FreeTTS package - is that what i'm doing wrong? if so, please tell me - ] and still nothing happens - the same error results.
    I've tried reading other cases similar to mine in the forums, but most of the things i read didn't apply to my (quite simple) situation, such as the 'package' line needing to be removed or anything like that..
    I run Win2k and have j2sdk1.4.0_01 installed on my machine
    I beg for anyone's help. Thanks in advance
    -=-Miagi-=-

    Aha!
    Extracting from the jar file might be ok, as long as the directory it's extracted into reflects the class's package name. Open the jar file using WinZip and you'll see that the files it contains are in directories that exactly mirror (including case) the package names.
    The error you're getting tells you that java is looking in .\cl\com\sun\speech\freetts\audio\Voice.class (the '.\' means relative to your current working directory) and my bet would be that the file is not there!
    You shouldn't need to extract these files at all, actually: Try deleting the files you extracted from the jar then try running your program again.
    I hope this is helpful...
    Chris.

  • Input Agent Sample File and mappings

    Dears
    I'm working on a project where I need Documents exported from OFR to be imported to IPM. I'm defining an input agent to monitor the input directory where exported files from OFR are located. I did all the configurations needed in EM,defined the agent in IPM, however, the input agent is not working.
    I guess the problem is with the input agent definition, esp the sample file. I'm finding difficulty in understanding the "Sample File" (what does it represent, where shall it be located, to where the "file path" in it should be indicating).
    Please advise

    Hi,
    For the sample file itself, it defines the format in which the input file would be setup for the input agent to import documents into IPM.
    For the path of where the input file is present, log in to the em console and when you open the IPM managed M-beans you would have the path defined for the input file.
    Check this out and you would be in a good position to understand input agents.
    http://docs.oracle.com/cd/E23943_01/admin.1111/e12782/c09_input_agents.htm#BABBCBIC

Maybe you are looking for

  • Holding the end of a crawling title.

    I have a crawling title, but I want the final phrase to stay stationary in the middle of the screen, rather than just disappear at the end. How do I make this happen? I thought changing ease out to 500 and post roll to 500 would make it slow down, an

  • Certain frequency artifacts appearing in data

    Hi, I've noticed in my measurements that there are two particular frequencies that always appear, regardless of what I'm measuring.  I use a DAQ board (PCI 6010) to perform voltage measurements, and Signal Express to control and analyze the data.   I

  • Question re current 50% off movie packages promotion

    quick question...at the current time, they are offering 50% off most of the combo premium movie packages (HBO, Cinemax, Starz, showtime, encore, etc.) it says half off the refular price for 12 months, then you pay the regular price starting month 13.

  • Elements 12 running horrible on MacBook Air

    I upgraded recently from PE 10 to PE 12. I have tried to use it once and it ran so slow, like to the point I couldn't even use it to make a 30 second video. I ended up having to use 10 to finish up my project. I now need to do a 5 minute video and I

  • "My Day" won't stop opening at login

    I have Microsoft Office for Mac '08, and My Day keeps opening at login. Whenever it does, I right click it, and "Open at Login" is always checked. I uncheck it, and it goes away. Next login, it's checked, and it opens. What should I do?