Javac compiler options

Could anyone explain the difference between these two javac compile options:
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
Say, I want to make sure my bytecode runs on Java 2 version 1.4 or above, which option should I choose?

Could anyone explain the difference between these two
javac compile options:
-source <release> Provide source compatibility with specified releaseTurns on specific compiler cabilities.
-target <release> Generate class files for specific VM versionGenerates class files that are compatible with specific versions (the class file
format has changed somewhat with versions.)
>
Say, I want to make sure my bytecode runs on Java 2
version 1.4 or above, which option should I choose?Well unless you are using 1.5 then you do not use either of the above options.

Similar Messages

  • Ant Build Error - Unable to find a javac compiler

    I downloaded and installed the Sun Java Toolkit 1.0 for CDC. I can build and run the examples with no problem.
    When I create my own project -- either by using the Create from Example option or the Create a New Project from Scratch option, I consistently receive this error message:
    C:\CDCTK10\apps\JillianGolfHandset\nbproject\build-impl.xml:295: The following error occurred while executing this line:
    C:\CDCTK10\apps\JillianGolfHandset\nbproject\build-impl.xml:148: Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
    BUILD FAILED (total time: 0 seconds)
    Unfortunately, I'm not an Ant jock.
    I'd like to go fiddling with the JAVA_HOME environmental variable on my system, but something tells me I shouldn't have to touch it; why would the examples work if JAVA_HOME weren't set properly?
    Any ideas?

    I had the JDK installed and the JAVA_HOME set correctly to point to the JDK but it still gave the same error.
    As I'm using Windows, I thought the problem may have been the spaces in the JAVA_HOME path, so I changed it to the old DOS style path e.g with the ~1. But that didn't work
    Someone else suggested adding the JDK bin to the PATH, so I did that, but it didn't fix the problem.
    Doing a search on the web, someone else using ANT had a similar problem, though not with the CDC, and added the tools.jar to the classpath
    So I tried adding tool.jar to the classpath, and it worked !!
    There is probably a better solution, but I couldn't find it, so I'll stick with this one until someone comes up with a better fix

  • How do I see javac compiler errors during JSP precompile?

              I played with all the options that "weblogic.jspc"
              supports. I couldn't get the javac compiler errors to
              show up when there is a problem with the generated
              Java file.
              Interestingly the same JSP when compiled automatically
              by the weblogic server, the javac errors show up in
              the output.
              Any tricks? or ideas?
              thanks
              

              In WL 5.1, earlier service packs would sometimes not show the errors. Get sp6 or later.
              mike
              "Mahesh Vellanki" <[email protected]> wrote:
              >
              >
              >I played with all the options that "weblogic.jspc"
              >supports. I couldn't get the javac compiler errors to
              >show up when there is a problem with the generated
              >Java file.
              >
              >Interestingly the same JSP when compiled automatically
              >by the weblogic server, the javac errors show up in
              >the output.
              >
              >Any tricks? or ideas?
              >
              >thanks
              >
              

  • Cannot find javac compiler

    I have recently installed apache tomcat and the J2SE SDk on my windows machine and have managed to get tomcat to run. However, when i try to test a jsp page I get an error saying ii cannot find the javac compiler. The error I amgetting is shown below.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
         org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    I have checked my environment variables that I set up and I cannot finad anything wrong with them as they all seem to point to the right directory. Here are my environment variables.
    CLASSPATH = C:\jdk1.5.0_02\lib\tools.jar;C:\Servers\Tomcat 5.0\common\lib\servlet-api.jar;C:\Servers\Tomcat 5.0\common\lib\jsp-api.jar
    JAVA_HOME = C:\jdk1.5.0_02
    PATH = %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\ATI-CPanel;C:\Program Files\Pragma\Clients;C:\Program Files\MySQL\MySQL Server 4.1\bin;C:\jdk1.5.0_02\bin
    Does anyone have any idea what the problem could be? Any solutions would be much appreciated.
    Thanks

    I have recently installed apache tomcat and the J2SE SDk on my windows machine and have managed to get tomcat to run.
    the error i have got is below:
    Exception:
    Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
         at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
         at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
         at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:282)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:536)
    Does anyone have any idea what the problem could be? Any solutions would be much appreciated.
    Thanks

  • TS1468 Where is the compilation option in version 11?

    I have a single album what was split into 5 sections because of variations on artist name. Past support articles suggested using the Compilation option when selecting the multiple split portions. Where is that option in version 11 of iTunes? I do no see this feature.

    Compilation can be found in the Get Info dialog. Generally all you need to do to link things is fill in an appropriate Album Artist.  For more details see my article on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
    tt2

  • Passing extra compiler options to flexunit ANT task?

    Hi,
    Is there a way to send any extra compiler options to the <flexunit> ANT task?
    I'm using conditional compilation and compilation (mxmlc) is failing from the <flexunit> task:
    "Error: Access of undefined property DEBUG.
    CONFIG::DEBUG {"
    I tried sneaking "-define+=CONFIG::DEBUG,false" in with one of the other compiler options you can set on the <flexunit> task, but that just doesn't work or results in a validation error like this:
    "One of the directories specified as a 'testSource' element does not exist."
    Let me know if this is possible at all.
    Thanks,
    Wijnand

    Hi Brian,
    legrosb wrote:
    @Wijnand - Sorry for the belated response.
    Not late at all! I think a response within a day on a forum is quite fast!
    legrosb wrote:
    I thought I had captured this on the wiki, but it looks like I haven't, so thank you for the heads up.
    I'll also update the wiki @ http://docs.flexunit.org/index.php?title=Ant_Task to be more detailed regarding compilation so other don't have to dig. 
    Did you just do an update on that Wiki page or did I completely miss the part that explained the <flexunit> parameters?
    legrosb wrote:
    In 4.2, which is super pre-alpha right now, I've added support to accept a series of flex-config.xml files provided by the user.  Not sure if conditional compilation can be tackled with a custom flex-config.xml file, but if so then that'd be the feature that may help you.
    Yes, being able to add (+=) a custom config file will solve this problem for me. You can define properties and values like this:
    <flex-config>
        <compiler>
            <define>
                <name>CONFIG::DEBUG</name>
                <value>false</value>
            </define>
        </compiler>
    <flex-config>
    So in your AS code you can use:
    CONFIG::DEBUG {
        // Do something that only should be done in debug mode.
    I have another question, I ran into this one during testing my SWF with flexunit.
    unittest.xml:82: java.util.concurrent.ExecutionException: command [<testcase classname='com.tuenti.video.unittest.testcase.player::MockPlayerCase' name='loadPlayer' time='0.000'  status='success'/>] not understood
    I had a look at the FlexUnitSocketThread.parseInboundMessages method that throws this error and it looks like that your defined END_OF_SUCCESS doesn't entirely match what the SWF is spitting out. They are of by 1 space: END_OF_SUCCESS is defined as: "status=\"success\" />", whereas my SWF spits out the following: "status='success'/>" (single quotes and no space before the closing of the tag).
    It looks like I'm not the only one with the ExecutionException as it is reported on StackOverflow as well: http://stackoverflow.com/questions/3953677/flexunittasks-error-of-command-not-understood
    Cheers,
    Wijnand

  • How to specify java compiler options in JDeveloper ?

    I am using JDeveloper 10.1.2. I downloaded and installed JDK 5.0.
    In my "Project Properties"->"Libraries" I created a new "JDK 5.0" J2SE Version and pointed to the new JDK5.0 execuitable. So far so good.
    Now I need to compile all my source code with -source=1.4 option. How do I specify java compiler option "-source=1.4" in JDeveloper ?
    Thanks
    Sachin

    Even before compilig I am not sure that by just going to "Project Properties"->Libraries and creating a new J2SE, I now have the new compiler working with JDEveloper. How do I test this ?

  • Flex 4 lacks the default-background-color compiler option?

    Hello,
    started converting my Flex 3 applications to Flex 4 and noticed that Flex 4 lacks the default-background-color compiler option.
    Flex 3 has it: http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_14.html
    Flex 4 doesn't: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7a92.html
    This raises a question: how am I supposed to keep my background from flashing from grey to white when the RIA is loaded? Is it possible to use preloader with background set to whatever color I like to see? Any easier solutions?
    Best regards,
    Jukka

    This works for me:
    @namespace mx "library://ns.adobe.com/flex/mx";
    mx|Application{
         background-color:#ffffff;
    Of course if you have changed the Application element to spark equivalent, you have to change the namespace.
    Regards,
    Jukka

  • Compile option is missing in the Packaging wizard

    I need to compile my local app jsp files but the problem is i could not able to find the compile option in the Packaging wizard. Can anyone advice how to compile  ?  The compile option is missing in the packing wizard. I was using it before without any issues but recently i upgraded my machine and need to compile once again.
    I am using oracle 10g lite and my machine is 64 bit.

    Ubuntu 11.xx displays window menus in the control bar at the top of the screen with the switch to the Unity window manager.
    * http://en.wikipedia.org/wiki/Ubuntu_Unity
    Click on Bookmarks/Show All Bookmarks then move your mouse to the left upper corner toward Firefox Web Browser.
    You'll get pop up menu (Organize, Views and Import and Backup).
    *[[/questions/822193]]

  • PL/SQL compile options

    Is there any way to give the PL/SQL compile options while compiling from SQL*PLUS like we give in Pro*c Compilers using EXEC ORACLE OPTIONS (name=value);
    Thanks

    Richard,
    I tried the following simple PL/SQL
    created the package
    CREATE OR REPLACE PACKAGE partest AS -- package spec
    PROCEDURE insert_dummy_details(num INTEGER);
    END partest;
    Created the body
    CREATE OR REPLACE PACKAGE BODY partest AS -- package body
    PROCEDURE insert_dummy_details(num INTEGER) IS
    BEGIN
    INSERT INTO pardummy values(num);
    END insert_dummy_details;
    END partest;
    created pardummy table
    compiled & executed it
    count in v$open_cursor increased by 1.
    Also, i executed the query which you mentioned.
    It showed the corresponding insertion sql text with the status CURBOUND
    Does it mean that a cursor is open in session which can be counted against open_cursor for that insert statement.
    Partha

  • Updated "Selecting the Best Compiler Options" now available

    The technical article "Selecting the Best Compiler Options" by Darryl Gove has been updated for Sun Studio 12 Update 1 and is now available at:
    http://developers.sun.com/sunstudio/documentation/techart/compiler_flags/
    Here's the abstract:
    +This article suggests how to get the best performance from an
    UltraSPARC or x86/EMT64 (x64) processor running on the latest Solaris
    platforms by compiling with the best set of compiler options and the
    latest compilers. These are suggestions of things you should try, but
    before you release the final version of your program, you should
    understand exactly what you have asked the compiler to do.+

    Ok sorry I've taken so long to respond.  The reply button wouldn't pop up for me to reply!
    There was never a dialog box asking for me to select the program from installed programs when I open the pdf from outlook express.  But when I opened a pdf from my desktop it asked that question and I had it "always use this program to open this type of file." So I assumed that it was would work when opening from outlook express.  But it doesn't.
    I've tried unclicking the protected mode button under the preferences general section.  And finally I'm not sure how to post screenshots of the attachment thumbnail and dialog.  I'm looking all over my keyboard for a button to push I don't have a clue as to what to do!  I do have a print Scr button but when I click on it nothing happens.  I've tried holding down the shift key and the button and the alt key and print scr button but nothing happens.
    Could it be that somehow it's not recognizing ARCO.EXCH.DOCUMENT as that's what it thinks the type of document is?
    I've already created an association for pdf files and it'll open them on my desktop, just not in outlook express.

  • Error- deploymnt fails - ORABPEL-00016 & 05215- Javac compiler config err

    Hi,
    We are getting the below error randomly when we try to deploy..
    ORABPEL-00016
    Javac compiler configuration error.
    Failed to execute javac compiler on file(s) "/opt/oracle/soa/bpel/domains/default/tmp/.bpel_XXXXXX_1.0_3c2c050b949f081557b49d81a3e5fe35.tmp/BPEL-INF/src/bpel/XXXXXl/BPEL_BIN.java". Exception reported is:
    Please verify that javac compiler is installed on this machine and is included in the classpath (check that "tools.jar" in particular is in the classpath).
    ORABPEL-05215
    Error while loading process.
    The process domain encountered the following errors while loading the process "XXXXX" (revision "1.0"): Javac compiler configuration error.
    Failed to execute javac compiler on file(s) "/opt/oracle/soa/bpel/domains/default/tmp/.bpel_XXXXXXl_1.0_3c2c050b949f081557b49d81a3e5fe35.tmp/BPEL-INF/src/bpel/XXXXXl/BPEL_BIN.java". Exception reported is:
    Please verify that javac compiler is installed on this machine and is included in the classpath (check that "tools.jar" in particular is in the classpath).
    and a huge stack trace...
    Everything in the server.xml seems to be in the path... its getting fixed after a recycle.... we are able to deploy the same BPEL once recycled...
    Does any one of you encounter same problem.. Whts the reason why this is occuring?
    Thanks,
    Jayaprakash

    Hi Jp,
    The error message : Please verify that javac compiler is installed on this machine and is included in the classpath (check that "tools.jar" in particular is in the classpath).
    This means that you javac compiler might not be installed or not in the classpath entry. You might want to compile the bpel project using the JDev and then deploy.
    Cheers
    A

  • Error- deployments fails-ORABPEL-00016 & 05215-Javac compiler config err

    Hi,
    We are getting the below error randomly when we try to deploy..
    ORABPEL-00016
    Javac compiler configuration error.
    Failed to execute javac compiler on file(s) "/opt/oracle/soa/bpel/domains/default/tmp/.bpel_XXXXXX_1.0_3c2c050b949f081557b49d81a3e5fe35.tmp/BPEL-INF/src/bpel/XXXXXl/BPEL_BIN.java". Exception reported is:
    Please verify that javac compiler is installed on this machine and is included in the classpath (check that "tools.jar" in particular is in the classpath).
    ORABPEL-05215
    Error while loading process.
    The process domain encountered the following errors while loading the process "XXXXXX" (revision "1.0"): Javac compiler configuration error.
    Failed to execute javac compiler on file(s) "/opt/oracle/soa/bpel/domains/default/tmp/.bpel_XXXXXXl_1.0_3c2c050b949f081557b49d81a3e5fe35.tmp/BPEL-INF/src/bpel/XXXXXl/BPEL_BIN.java". Exception reported is:
    Please verify that javac compiler is installed on this machine and is included in the classpath (check that "tools.jar" in particular is in the classpath).
    and a huge stack trace...
    Everything in the server.xml seems to be in the path... its getting fixed after a recycle.... we are able to deploy the same BPEL once recycled...
    Does any one of you encounter same problem.. Whts the reason why this is occuring?
    Thanks,
    Jayaprakash

    Hi Jp,
    The error message : Please verify that javac compiler is installed on this machine and is included in the classpath (check that "tools.jar" in particular is in the classpath).
    This means that you javac compiler might not be installed or not in the classpath entry. You might want to compile the bpel project using the JDev and then deploy.
    Cheers
    A

  • Compile error : "unable to find javac compiler"

    Hello,
    I've got this problem compiling my java project: the error that I get is :
    Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.5.0_05\lib\tools.jar
    init:
    compile:
    [javac] Compiling 9 source files to H:\project\class
    BUILD FAILED
    H:\project\build.sml:8: Unable to find a javac compiler;
    com.sun.tools.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to th JDK
    I'm using the following product:
    a)     MySQL Database: mysql-4.1.13a-win32.zip (http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-4.1.13a-win32.zip/from/pick)
    b)     MySQL JDBC driver: mysql-connector-java-3.1.10.zip (http://dev.mysql.com/downloads/connector/j/3.1.html )
    c)     JBuilder 2005: http://www.borland.com/downloads/download_jbuilder.html
    d)     Jakarta Ant: apache-ant-1.6.5-bin.zip (http://ant.apache.org/bindownload.cgi)
    In the C:\Program Files\JAVA map are the following maps:
    - jdk1.5.0_05
    - jre1.5.0_05
    the settings in windows:
    ANT_HOME C:\java\apache-ant-1.6.5
    JAVA_HOME C:\Program Files\Java\jdk1.5.0_05
    And I have added ;C:\java\apache-ant-1.6.5\bin; to the PATH
    Why doesn't it work ? And more important, How can I fix it ?
    Thanks
    Nick

    Hello,
    I've got this problem compiling my java project: the error that I get is :
    Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.5.0_05\lib\tools.jar
    init:
    compile:
    [javac] Compiling 9 source files to H:\project\class
    BUILD FAILED
    H:\project\build.sml:8: Unable to find a javac compiler;
    com.sun.tools.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to th JDK
    I'm using the following product:
    a)     MySQL Database: mysql-4.1.13a-win32.zip (http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-4.1.13a-win32.zip/from/pick)
    b)     MySQL JDBC driver: mysql-connector-java-3.1.10.zip (http://dev.mysql.com/downloads/connector/j/3.1.html )
    c)     JBuilder 2005: http://www.borland.com/downloads/download_jbuilder.html
    d)     Jakarta Ant: apache-ant-1.6.5-bin.zip (http://ant.apache.org/bindownload.cgi)
    In the C:\Program Files\JAVA map are the following maps:
    - jdk1.5.0_05
    - jre1.5.0_05
    the settings in windows:
    ANT_HOME C:\java\apache-ant-1.6.5
    JAVA_HOME C:\Program Files\Java\jdk1.5.0_05
    And I have added ;C:\java\apache-ant-1.6.5\bin; to the PATH
    Why doesn't it work ? And more important, How can I fix it ?
    Thanks
    Nick

  • Error  "unable to find javac compiler"

    Hello,
    I've got this problem compiling my java project: the error that I get is :
    Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.5.0_05\lib\tools.jar
    init:
    compile:
    [javac] Compiling 9 source files to H:\project\class
    BUILD FAILED
    H:\project\build.xml:8: Unable to find a javac compiler;
    com.sun.tools.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
    I'm using the following products:
    a) MySQL Database: mysql-4.1.13a-win32.zip (http://dev.mysql.com/get/Downloads/MySQL-4.1/mysql-4.1.13a-win32.zip/from/pick)
    b) MySQL JDBC driver: mysql-connector-java-3.1.10.zip (http://dev.mysql.com/downloads/connector/j/3.1.html )
    c) JBuilder 2005: http://www.borland.com/downloads/download_jbuilder.html
    d) Jakarta Ant: apache-ant-1.6.5-bin.zip (http://ant.apache.org/bindownload.cgi)
    In the C:\Program Files\JAVA map are the following maps:
    - jdk1.5.0_05
    - jre1.5.0_05
    the settings in windows:
    ANT_HOME C:\java\apache-ant-1.6.5
    JAVA_HOME C:\Program Files\Java\jdk1.5.0_05
    And I have added ;C:\java\apache-ant-1.6.5\bin; to the PATH
    Why doesn't it work ? And more important, How can I fix it ?
    Thanks
    Nick

    Duplicate of http://forum.java.sun.com/thread.jspa?threadID=687035

Maybe you are looking for

  • Printing?

    This seems like it should be fairly simple to figure out, but I just cant do it. I want to print my iCal in list view, but only the days that have an event on them. It keeps showing every day in between. Im sure theres some way to fix this, I just ca

  • How can we calculate no.of leave used by the employee except sunday.

    Dear Friends, i have query how can we calculate no.of leave taken by the employee except sunday & government holiday. Example: A person take a sick leave From 13/02/2008 to 20/02/2008 with in that period 17th was sunday. when we calculate absence day

  • Replacement HotSync cable problems?

    I've been syncing for years with the USB cradle and USB HotSync cable that came with my C. I had to replace the cable as it took a hit and the plastic at the Palm end shattered. So far I've purchased two different USB/charge HotSync cables for the C

  • Custom.pll and custom.plx location changed

    Hi Friends, I am having Oracle Apps 11.5.9 and i had the custom.pll and custom.plx on $AU_TOP/resource and make the changes there and it's working fine. Now suddenly the changes made on the file is not refelecting so i searchd the server and i could

  • InDesign CS5 Crashing when opening particular file. All others open.

    I tried adding a particular indesign document to a book and it crashed. Since the crash, I can no longer open the file. Can anyone help? Below is the beginning of the crash report. Thank you for any help! Process:         Adobe InDesign CS5.5 [542] P