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

Similar Messages

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

  • BAD CLASS FILE ERROR WHEN TRYING TO CALL JAVA CLASS IN WEB-INF DIRECTORY

    I AM NEW TO THIS FORUM. PLEASE HELP ME IDENTIFY/RESOLVE THIS ERROR - bad class file: /java/tomcat/webapps/ChoiceTel/WEB-INF/classes/XYZ/SMUA.class. OTHER JSP SCRIPTS THAT CALL JAVA CLASSES DO WORK WELL.
    THE FUNNY THING ABOUT COMPILIING THIS JAVA CLASS WAS - I HAD TO A jar xvf OF activation.jar and mail.jar IN THE XYZ DIRECTORY BEFORE SUCCESSFULLY COMPILING SMUA.
    THE CALL BEING MADE FROM THE JSP SCRIPT IS AS FOLLOWS:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <BODY>
    <%@ page import="XYZ.*" %>
    <%!
    %>
    <%
    SMUA sndmail = new SMUA();
    sndmail.postMail ("[email protected]","Test Subject","What Message","[email protected]");
    %>
    </BODY>
    </HTML>

    Dude. Please don't shout. If your keyboard is like mine, it can produce both upper and lower case letters. Please use them appropriately.
    Do you have the activation.jar/mail.jar available in the WEB-INF/lib directory for this application?

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

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

  • Cannot access JScrollPane, bad class file !!!!

    Hi everybody. I have got a big big problem. I can not compile my code because this message alwayes is displayed:
    C:\Java\hosseindab\Dabb.java:8: cannot access JScrollPane
    bad class file: .\JScrollPane.class
    class file contains wrong class: javax.swing.JScrollPane
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    private JScrollPane skrollytan;
    I tried to uninstall and reinstall SDK och Textpad, but it didn't work. I even installed them on another computer, but it was the same problem. I do not know what has happened. I have tried j2SDK 1_3_1_15 and j2sdk 1_4_0_01. No use. I could compile the same files some hours ago, but now the Textpad says NO, NO, NO!!! and generates the above error. Just please help me, I don't have much time to deliver my java program.
    The code is:
    import java.awt.*;
       import java.awt.event.*;
       import javax.swing.*;
       public class Dabb extends JFrame implements ActionListener
           private JLabel lBild1,lBild2,lBild3;
           private JScrollPane skrollytan;
           private JPanel panelen;
           private JRadioButton knapp1, knapp2, knapp3;
       private JSplitPane delning;
       private ButtonGroup gruppen;
       public Dabb()
            lBild1 = new JLabel(new ImageIcon("Solnedg�ng.jpg"));
            lBild2 = new JLabel(new ImageIcon("Vinter.jpg"));
            lBild3 = new JLabel(new ImageIcon("Bl�a kullar.jpg"));
            skrollytan = new JScrollPane();
            panelen = new JPanel();
            gruppen = new ButtonGroup();
            knapp1 = new JRadioButton("Solnedg�ng",true);
            knapp2 = new JRadioButton("Vinter",false);
            knapp3 = new JRadioButton("Bl�a kullar",false);
            delning = new JSplitPane();
            delning.setLeftComponent(panelen);
            delning.setRightComponent(skrollytan);
            Container c =  getContentPane();
            c.add(delning);
            delning.setMinimumSize(new Dimension(300,300));
            panelen.setLayout(new BoxLayout(panelen,
                                   BoxLayout.Y_AXIS));
            gruppen.add(knapp1);
            gruppen.add(knapp2);
            gruppen.add(knapp3);
            panelen.add(knapp1);
            panelen.add(knapp2);
            panelen.add(knapp3);
            knapp1.addActionListener(this);
            knapp2.addActionListener(this);
            knapp3.addActionListener(this);
            setSize(600, 400);
            setVisible(true);
            setDefaultCloseOperation(EXIT_ON_CLOSE);
       public void actionPerformed(ActionEvent e)
            Object o = e.getSource();
            if(o == knapp1)
                skrollytan.setViewportView(lBild1);
            else if(o == knapp2)
                 skrollytan.setViewportView(lBild2);
            else if(o == knapp3)
                 skrollytan.setViewportView(lBild3);
       public static void main(String [] argv)
            Dabb v = new Dabb();
        }

    Your post compiles for me, no errors.
    As a guess. you have a problem classpath or mislocated or duplicate files.
    This line is especially suspect: bad class file: .\JScrollPane.class
    What is that leading period? Do you have a file named ScrollPane?
    Something else in the computer is bad, not the program.
    Try compiling from the commandline.

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

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

  • I am trying to get the free trial to cc but it said there seems to be a problem with the files (Error code: 205)

    I am trying to get the free trial to cc but it said there seems to be a problem with the files (Error code: 205) please help

    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Bad class file

    This is probably a very basic issue but here it goes: I've been developing a web application in tomcat. Originally we were using the JWSDP 1.3 bundle. I decided to download tomcat 4.1.3 and tried to run the application. I keep getting "bad class errors" and something about tag pool 13 of 10. Any clue as to what is causing the problem? I think it has something to do with the classpath environment variable in windows XP, unfortunately the IT people must have changed my user rights b/c I can no longer edit/change the System variables., I've tried adding a user variable CLASSPATH with the new path to the application, but it still doesnt seem to work.
    Thanks for any help

    Because this is the only post Google returns for "netbeans bad constant pool tag", I'd like to add this (even though the post is many years old):
    The original post mentions Windows XP and CVS - so my recent experience may be relevant.
    I moved a bunch of Netbeans projects via Windows onto a Linux server to add them to a CVS repository.
    When I reentered the Projects into Netbeans all hell broke loose : for example: projects compiled clean but the IDE red-flagged them; libraries showed up on the Project Property sheets but were absent in the Libraries tab under the Project in the Projects tree. Netbeans itself appeared to be "in distress".
    I had noticed that many java sources were now double-spaced (a blank line inserted after each original line). I suspected somewhere during the journey from Windows to Linux the old carriage-return + line-feed glitch had happened. But, hey-ho, this doesn't effect the java and could be filtered out later.
    Then the moment of revelation: most of the XML and .properties files had also been double-spaced.
    So code that originally read (for example):
    javac.classpath=\
    foo:\
    bar
    now read:
    javac.classpath=\
    foo:\
    bar
    This (subtle) introduction of the extra lines ruins everything ... but once you realise what's happened, it is easily fixed !

  • Problems uploading class files to web server

    Regular class files upload fine(to yahoo geocities) but when I try to upload multiple class files of the same instance(ex: MyProg.class, MyProg1$.class, MyProg1$2.class) the ones with the $ symbols wont upload therefore rendering my applet on my website useless. I can change the name and then upload it, but when I go to rename it within the site, I get an "invalid file name" error. I just want my applets to run on my web page so that people can play with them.
    Any help would be greatly appreciated!
    Scott Miller

    AOL is the same. Note that the xxx$.class files relate to inner classes and you can solve your problem by removing them and creating seperate classes for these.

  • Custom Class file errors out on import javax.servlet.http.HttpSession

    I am trying to write a class file to handle events. This is a test class file copied from the UIX Docs. When I put this in JDeveloper 903 ,and build it the compiler gives the error:
    Error(2,27): cannot access class javax.servlet.http.HttpSession; file javax\servlet\http\HttpSession.class not found
    I am not sure what is the problem? Can anyone please help?
    Here is the code:--
    package mypackage1;
    import javax.servlet.http.HttpSession;
    import oracle.cabo.servlet.Page;
    import oracle.cabo.servlet.BajaContext;
    import oracle.cabo.servlet.event.PageEvent;
    import oracle.cabo.servlet.event.EventResult;
    public class MyClass
    /** This is handleStoreNameEvent version 1 */
    public static EventResult handleStoreNameEvent(BajaContext context,
    Page page,
    PageEvent event)
    String userName = event.getParameter("txt1");
    HttpSession session = context.getServletRequest().getSession(true);
    session.putValue("User Name", userName);
    Page nextPage = new Page("NextPage");
    return new EventResult(nextPage);
    }

    Hi, you are missing the servlet.jar file from your classpath.
    In JDeveloper, you can add this by opening up your project -> libraries and adding the servlet runtime library.

  • Class File Error 1046

    Hi all, I am trying to write my first class file, been away
    from flash for so long now and im just starting with as3, I have a
    problem with this class file
    I keep get an error
    here is my class // it is in the same directory as my fla,swf

    Hi ActionScripter1,
    If I am not wrong you are not using feature of a document
    class in Flash file.
    I have modified the class given by you to set it as a
    document class
    to run this code you have to do following things:
    1. Update the class with the class pasted below.
    2. Remove all the code about preloadManager from the first
    frame.
    3. set your 'Document Class' property to preloadManager
    As per my opinion this should be the way to implement a
    preloader.
    In this class you will have access to each and every object
    placed on stage. and here 'this' refers to 'stage' only.
    //Updated Class
    package {
    import flash.text.TextField;
    import flash.display.*;
    import flash.events.*;
    import flash.net.*;
    public class preloadManager extends MovieClip {
    public static var l:Loader = new Loader();
    //CONSTRUCTOR for preloadManager Class
    public function preloadManager()
    trace("This is the start point of your programme")
    startPreload('123.swf');
    public function startPreload(swfFile) {
    l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
    preloadLoop);
    l.contentLoaderInfo.addEventListener(Event.COMPLETE,
    preloadComplete);
    l.load(new URLRequest(swfFile));
    }//end startPreload
    public function preloadLoop(e:ProgressEvent):void {
    var perc:Number=e.bytesLoaded/e.bytesTotal;
    //percent is on my stage as a dynamic textField
    //Error 1120: Access to undefined property percent
    //how would I access this or pass it as a display reference
    to my class?
    percent.text=Math.ceil(perc*100).toString();
    }//end preloadLoop
    public function preloadComplete(e:Event):void {
    removeChildAt(0);
    percent=null;
    addChild(l);
    }//end preloadComplete
    }//end class
    }//end package

  • 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