Applet/HTML problem while compliling

The following message appears as I wouldlike to compile my basic applet class where its just to write a sentence using html..may i know what is the problem and the solution? thanks!

--------------------Configuration: j2sdk1.4.2_08 --------------------
javac: invalid flag: D:JCreator LEMyProjectsAssignment.htm
Usage: javac
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath Specify where to find user class files
-sourcepath Specify where to find input source files
-bootclasspath Override location of bootstrap class files
-extdirs Override location of installed extensions
-d Specify where to place generated class files
-encoding Specify character encoding used by source files
-source Provide source compatibility with specified release
-target Generate class files for specific VM version
-help Print a synopsis of standard options


Process completed.


There is a reason for me to be here..I'm in search for that reason..

Comments

  • : The following message appears as I wouldlike to compile my basic applet class where its just to write a sentence using html..may i know what is the problem and the solution? thanks!
    :
    : --------------------Configuration: j2sdk1.4.2_08 --------------------
    : javac: invalid flag: D:JCreator LEMyProjectsAssignment.htm
    : Usage: javac
    : where possible options include:
    : -g Generate all debugging info
    : -g:none Generate no debugging info
    : -g:{lines,vars,source} Generate only some debugging info
    : -nowarn Generate no warnings
    : -verbose Output messages about what the compiler is doing
    : -deprecation Output source locations where deprecated APIs are used
    : -classpath Specify where to find user class files
    : -sourcepath Specify where to find input source files
    : -bootclasspath Override location of bootstrap class files
    : -extdirs Override location of installed extensions
    : -d Specify where to place generated class files
    : -encoding Specify character encoding used by source files
    : -source Provide source compatibility with specified release
    : -target Generate class files for specific VM version
    : -help Print a synopsis of standard options
    :
    :
    : Process completed.
    :
    :
    : There is a reason for me to be here..I'm in search for that reason..
    :

    Why are you including the path to the .html file in the compilation process? There is no reason for it. Compile it without the path to the web file, then run it in the .html file or in the applet viewer.

  • : : The following message appears as I wouldlike to compile my basic applet class where its just to write a sentence using html..may i know what is the problem and the solution? thanks!
    : :
    : : --------------------Configuration: j2sdk1.4.2_08 --------------------
    : : javac: invalid flag: D:JCreator LEMyProjectsAssignment.htm
    : : Usage: javac
    : : where possible options include:
    : : -g Generate all debugging info
    : : -g:none Generate no debugging info
    : : -g:{lines,vars,source} Generate only some debugging info
    : : -nowarn Generate no warnings
    : : -verbose Output messages about what the compiler is doing
    : : -deprecation Output source locations where deprecated APIs are used
    : : -classpath Specify where to find user class files
    : : -sourcepath Specify where to find input source files
    : : -bootclasspath Override location of bootstrap class files
    : : -extdirs Override location of installed extensions
    : : -d Specify where to place generated class files
    : : -encoding Specify character encoding used by source files
    : : -source Provide source compatibility with specified release
    : : -target Generate class files for specific VM version
    : : -help Print a synopsis of standard options
    : :
    : :
    : : Process completed.
    : :
    : :
    : : There is a reason for me to be here..I'm in search for that reason..
    : :
    :
    : Why are you including the path to the .html file in the compilation process? There is no reason for it. Compile it without the path to the web file, then run it in the .html file or in the applet viewer.
    :
    :
    i dont quite get your message. im trying to compile the assignment.class which is an applet and in the html code i am definitely required to include the class file in order to be compiled, but i only get this message and nothing happened.i tried compiling the applet itself and assume the appletviewer will take over but it pops out a message that says no such method(main).
    There is a reason for me to be here..I'm in search for that reason..

  • : : : The following message appears as I wouldlike to compile my basic applet class where its just to write a sentence using html..may i know what is the problem and the solution? thanks!
    : : :
    : : : --------------------Configuration: j2sdk1.4.2_08 --------------------
    : : : javac: invalid flag: D:JCreator LEMyProjectsAssignment.htm
    : : : Usage: javac
    : : : where possible options include:
    : : : -g Generate all debugging info
    : : : -g:none Generate no debugging info
    : : : -g:{lines,vars,source} Generate only some debugging info
    : : : -nowarn Generate no warnings
    : : : -verbose Output messages about what the compiler is doing
    : : : -deprecation Output source locations where deprecated APIs are used
    : : : -classpath Specify where to find user class files
    : : : -sourcepath Specify where to find input source files
    : : : -bootclasspath Override location of bootstrap class files
    : : : -extdirs Override location of installed extensions
    : : : -d Specify where to place generated class files
    : : : -encoding Specify character encoding used by source files
    : : : -source Provide source compatibility with specified release
    : : : -target Generate class files for specific VM version
    : : : -help Print a synopsis of standard options
    : : :
    : : :
    : : : Process completed.
    : : :
    : : :
    : : : There is a reason for me to be here..I'm in search for that reason..
    : : :
    : :
    : : Why are you including the path to the .html file in the compilation process? There is no reason for it. Compile it without the path to the web file, then run it in the .html file or in the applet viewer.
    : :
    : :
    : i dont quite get your message. im trying to compile the assignment.class which is an applet and in the html code i am definitely required to include the class file in order to be compiled, but i only get this message and nothing happened.i tried compiling the applet itself and assume the appletviewer will take over but it pops out a message that says no such method(main).
    : There is a reason for me to be here..I'm in search for that reason..
    :
    :


    If you have a .class file, it is already compiled, if it is an applet, you can run it in a web browser or the appletveiwer. You do not need the .html file to compile an applet, an applet is independant of html files during the compilation.

    You have to invoke appletviewer explicitly, it does not just 'take over'. javac does one thing, and one thing only: compiles a .java file into a .class file. That is the same regardless of whether the .java file is an applet, servlet or an application. If you want to run your applet in the appletviewer, type this in the command line:

    appletviewer assignment.htm, making sure the command prompt is working in the currect directory, and that the .htm file is correctly using the APPLET tag.


  • : : : : The following message appears as I wouldlike to compile my basic applet class where its just to write a sentence using html..may i know what is the problem and the solution? thanks!
    : : : :
    : : : : --------------------Configuration: j2sdk1.4.2_08 --------------------
    : : : : javac: invalid flag: D:JCreator LEMyProjectsAssignment.htm
    : : : : Usage: javac
    : : : : where possible options include:
    : : : : -g Generate all debugging info
    : : : : -g:none Generate no debugging info
    : : : : -g:{lines,vars,source} Generate only some debugging info
    : : : : -nowarn Generate no warnings
    : : : : -verbose Output messages about what the compiler is doing
    : : : : -deprecation Output source locations where deprecated APIs are used
    : : : : -classpath Specify where to find user class files
    : : : : -sourcepath Specify where to find input source files
    : : : : -bootclasspath Override location of bootstrap class files
    : : : : -extdirs Override location of installed extensions
    : : : : -d Specify where to place generated class files
    : : : : -encoding Specify character encoding used by source files
    : : : : -source Provide source compatibility with specified release
    : : : : -target Generate class files for specific VM version
    : : : : -help Print a synopsis of standard options
    : : : :
    : : : :
    : : : : Process completed.
    : : : :
    : : : :
    : : : : There is a reason for me to be here..I'm in search for that reason..
    : : : :
    : : :
    : : : Why are you including the path to the .html file in the compilation process? There is no reason for it. Compile it without the path to the web file, then run it in the .html file or in the applet viewer.
    : : :
    : : :
    : : i dont quite get your message. im trying to compile the assignment.class which is an applet and in the html code i am definitely required to include the class file in order to be compiled, but i only get this message and nothing happened.i tried compiling the applet itself and assume the appletviewer will take over but it pops out a message that says no such method(main).
    : : There is a reason for me to be here..I'm in search for that reason..
    : :
    : :
    :
    :
    : If you have a .class file, it is already compiled, if it is an applet, you can run it in a web browser or the appletveiwer. You do not need the .html file to compile an applet, an applet is independant of html files during the compilation.
    :
    : You have to invoke appletviewer explicitly, it does not just 'take over'. javac does one thing, and one thing only: compiles a .java file into a .class file. That is the same regardless of whether the .java file is an applet, servlet or an application. If you want to run your applet in the appletviewer, type this in the command line:
    :
    : appletviewer assignment.htm, making sure the command prompt is working in the currect directory, and that the .htm file is correctly using the APPLET tag.
    :
    :
    :
    hey thanks...you solved the problem....thanks loads..
    There is a reason for me to be here..I'm in search for that reason..

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories