Javac not found in cygwin

Hi,
I'm relatively new to Java. I've been using NetBeans to run my programs. I'm having trouble running java applications from cygwin. When I type:
javac Main.java
in the directory containing my source files, I get the following error message:
bash: javac: command not found
I don't understand this because I have javac installed in
C:\Program Files\Java\jdk1.5.0_07\bin
Could it be because I'm one of several users on this machine and need to have Java installed on my personal account?
Thanks,
Malcolm

You need to add C:\Program Files\Java\jdk1.5.0_07\bin
to your PATH environment variable, which is best done
in your .bashrc file.Completely personal prefrence I know, but I'd do it in the System control panel.
It will only piss you off when you use Window Shell, and javac is not in the PATH.
Screen shot HOWTO

Similar Messages

  • Compilation process error : null/bin/javac: not found

    Hi experts,
    I am getting following error in IR.
    Compilation process error : null/bin/javac: not found
    Can anybody plaese help what is cause for this error.
    Kind Regards,
    Praveen

    Hi Praveen
    Specify the jstartup/vm/home parameter in the instance profile to be directed at the correct JAVA_HOME.
    Furthermore, act by SAP Note 718901.
    Also test ur mapping using this blog
    /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
    Regards,
    Prateek

  • Linux --javac not found

    i have installed java according to the instructions given to me in my linux os .
    but when i compile i get
    bash: javac: command not found.
    i have installed in /usr/java/j2sdk1.4.2_06.
    i have compiled the program in /usr/java folder.
    how do i solve it .

    After you've installed the rpm for the java sdk, you will want to add the bin directory of the sdk to the PATH variable. One suggestion that has been given is to edit the file ".bash_profile" in your home directory. You can see the file by listing hidden files ls -all.
    You may see something like the following within the file.
    PATH=$PATH:$HOME/bin
    export PATHTo add the bin directory to the path, simply add a colon, followed by the directory. I've written <whatever> to indicate that you must fill in the specifics, like version etc, of your jdk. The updated file becomes...
    PATH=$PATH:$HOME/bin:/usr/java/jdk*<whatever>/bin/
    export PATHThis will allow you, and you alone, to run the javac command in the terminal without specifying the entire file path. If you are unfamiliar with Linux and you are the only user on the machine, then I suggest doing it that way.
    If on the other hand you have a better understanding of Linux, and the machine and the sdk are to be shared by other users, you will want to make the bin directory available to the System PATH variable. Here's how I did that. Create a file "java.sh" inside the directory "/etc/profile.d". This directory is where some application specific startup scripts are found. The script that you will place here is run by /etc/profile and will set up the PATH variable to include the bin directory of the sdk. Note that you must be logged in as root to create a file within the directory. Also, be careful when creating script files for this directory. The file "java.sh" will contain a single line of text.
    export PATH=$PATH:/usr/java/jdk*<whatever>/bin/Once the file is created, be sure that permissions are such that all users can execute the file.
    I've found information about setting up a Java development environment on a Linux OS here.
    http://home.bredband.no/gaulyk/java/tutorial/javaredhat.html

  • Javac not found OC4J

    Hi people
    I´d like to know what path oc4j is using to compile java files.
    I´m trying to use jasper report, but an error says that javac cannot be found.
    I´ve tried to set bindir to find javac in server.xml and change JAVA_HOME to another jdk dir. but not success.
    someone could help me...
    thanks
    Vandré

    Usually, this happens if you set your JAVA_HOME to a JRE not a JDK, eg set JAVA_HOME=c:\java\jdk1.5.0_18\jre instead of set JAVA_HOME=c:\java\jdk1.5.0_18.
    --olaf                                                                                                                                                                                                                                                                                                                                   

  • Javac not found, Help

    I can't get to even run my "Hello world". When I command "javac JavaRules.java" i get the response "'javac' is not recognized as an intrernal or external command, operable program or batch file. Any one know what my deal is?

    Try to use
    <JAVA_HOME>\bin\javac instead of javac. (<JAVA_HOME> stands for the directory where java is installed, e.g. C:\jdk1.3.1). If that works, you should edit the PATH environment variable appropriately - you can find how by searching the archives of this forum.
    (Guess you are using Win)

  • Javac not found

    Hi guys,
    I downloaded Java 2 Platform, standard edition J2SE 1.4.1 software and installed it. I checked for javac in java/j2re1.4.1_06\bin but could not find it. I cannot compile java programs.
    If anyone knows about this problem, please lemme know.
    Thanks.

    I'm having the same problem, do you have to set the
    class path or something??Gads, no. You don't have to set anything. If you want to set something, create a system variable called JAVA_HOME and set that to your base install. Then, you can add to your PATH variable (PATH, not CLASSPATH) %JAVA_HOME%\bin. You'll be able to use java, javac, etc. from any directory.
    The above pertains to Windows environments, natch.

  • Error initializing ejb-module; Exception javac.exe not found under

    Dear all,
    I got followings error after i had tried to doing some lab.I had checked the folder "C:\Program Files\Oracle\jre\1.3.1" exists but missed but missing javac.exe. Could anyone can advice me what is going wrong?
    04/04/14 16:44:20 Auto-deploying - web/WEB-INF/classes (No previous deployment found)...
    04/04/14 16:44:20 Error instantiating application 'lab04' at file:/C:/share/oc4j
    /labs/lab04/: Error initializing ejb-module; Exception javac.exe not found under
    C:\Program Files\Oracle\jre\1.3.1, please use a valid jdk or specify the locati
    on of your java compiler in server.xml using the <java-compiler .../> tag
    Thanks in advance!
    Best Regards,
    Chris CHIU

    Dear Chris,
    The answer lies in the error message you got, namely:
    please use a valid jdkAccording to your post, you don't have a JDK, you only have a JRE. The javac compiler is part of the JDK, it is not part of the JRE.
    You can download the JDK from the J2SE Download Web page. Look for the Download J2SE SDK link -- do not choose the Download J2SE JRE link!
    Good Luck,
    Avi.

  • Javac path not found

    Hi,
    When I  changed the message mapping ( GMT ) and activating the change list,  XI int.builder throwing error with javac path not found. Any help on this is greatly appreciated.
    Thanks,
    Daniel.LA

    Hi,
    Make sure that u installed Java (with the required version) and the corresponding class path is set in the system.
    One of the ways to set the class path by right clicking my computer>properties->Select Advanced->Click Environment Variables->Select path from System Variables>Click Edit-->and add the "bin" folder of java to it.
    Now test it by running command java in command editor. It should work fine.
    Hope this helps.
    -Prasad Babu.

  • Javac: file not found

    I recently downloaded NetBeans 1.6 Java SE and i'm trying to learn programming. I set my path variable to C:\Program Files\Java\jdk1.6.0_03\bin as it said somewere on Javas website. In NetBeans 1.6 this is the code i typed
    class HelloWorld {
    public static void main (String args[]) {
    System.out.println("Hello World!");
    I saved it as HelloWorld.java
    When i went in to command promt to try it i type: javac HelloWorld.java
    and i get this error messege: javac: file not found: HelloWorld.java
    What did i do wrong?

    codyman7023 wrote:
    flounder wrote:
    Is that the same as any of the suggestions provided above?what?Not sure what your problem is here but I am at the point of giving up on you.
    Numerous people made suggestions in this thread. You responded asking if X was okay when X does not look like ANY of the suggestions given to you.
    So no. X is no good and I have no idea why you think resorting to random guessing is going to solve your problem. Why don't you tell us which reply you are attempting to use to solve your request so that we can make suggestions to you on how to fix the broken guesswork you posted in your previous reply?

  • Com.sun.* Not Found only in NetBeans - Javac finds them fine!

    I am not sure what is up with this, but NetBeans will not let me specify anything from the com.* packages. It shows the packages in the auto-type boxes as I type in the name (com.sun.blahblahblah) but highlights the statement with a red underline and states 'Package not found".
    Just to let it be known, I have a look-and-feel demo java file downloaded from the net that compiled perfect and runs as expected, and it makes much use of the com.sun.* packages. And I can run NetBeans with the --laf command line option and it will run using any of the LAF's in the com.* packages itself, but still not see them in the IDE for coding use ><
    Any ideas?
    Thanks in advance.

    I just popped in what you wrote, and another thing just for giggles:
    import com.sun.image.codec.jpeg.JPEGImageEncoder;
    import com.sun.crypto.provider.*;and they threw no errors. Why is it that my laf is throwing errors when they are plainly there?
    Example -
           public void actionPerformed(ActionEvent event) {
             try {
               UIManager.setLookAndFeel(getText());
               SwingUtilities.updateComponentTreeUI(
                 ChangingLaF.this);
               // call myFrame.pack()
               // to resize frame for laf
             } catch (IllegalAccessException e) {
               // insert code to handle this exception
             } catch (UnsupportedLookAndFeelException e) {
               // insert code to handle this exception
             } catch (InstantiationException e) {
               // insert code to handle this exception
             } catch (ClassNotFoundException e) {
               // insert code to handle this exception
             }This is the code I got off the net, this + a bit more to the .java file of course, compiles perfect with javac. The programmer used the package path com.sun.blahblah as the radiobutton text, that is what the UIManager.setLookAndFeel(getText()); getText() nonsense is. But other than that I see no reason an erro should be thrown in netbeans over UIManager.setLookAndFeel(com.sun.java.swing.plaf.motif.MotifLookAndFeel);
    I did try it with quotes though as a previous post recomended and got this message:
    init:
    deps-jar:
    Compiling 1 source file to E:\Java Apps\Calendar\build\classes
    E:\Java Apps\Calendar\src\Main\MainFrame.java:283: unreported exception java.lang.ClassNotFoundException; must be caught or declared to be thrown
    UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
    1 error
    BUILD FAILED (total time: 0 seconds)
    <

  • Deployment problem on WLS8.1sp3: com.sun.javac.Main not found

    Hi,
    I have a curious problem, after adding some simple (logging) code to an Session Bean, the EAR file will not deploy. I get the message below concerning compilation problems. If however I restore the Session Bean to the previous state, and having build a new EAR file, the erro persists. What is this strange behaviour, has this to do with weblogic settings for the EAR file of whatever ?
    NB I also have tried to include the tool.lib jar in the projekt but that doesn't solve the problem.
    Any help would be appreciated,
    Harry van Rijn
    Exception:weblogic.management.ApplicationException: prepare failed for UasEJB.jar Module: UasEJB.jar Error: Exception preparing module: EJBModule(UasEJB.jar,status=NEW) Unable to deploy EJB: UasEJB.jar from UasEJB.jar: Compiler class: 'com.sun.tools.javac.Main', not found at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:274) at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476) at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407) at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493) at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:762) at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:700) at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1317) at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:498) at weblogic.j2ee.J2EEApplicationContainer.prepareModule

    hi,
    i am migrating my application from wls7.0sp2 to wls8.1 sp3. i am using weblogic.ejbc to make my ear in my ant build script.
    My Classpath settings are > C:\bea8.1\weblogic81\server\lib\weblogic.jar;C:\j2sdk1.4.2_08\lib\tools.jar;
    My Path Settings are > C:\j2sdk1.4.2_08\bin;C:\j2sdk1.4.2_08\jre\bin;
    i am getting the error message>>
    [java] Compiler class: 'com.sun.tools.javac.Main', not found
    [java] java.lang.ClassNotFoundException: com.sun.tools.javac.Main
    [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
    [java] at java.security.AccessController.doPrivileged(Native Method)
    [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    [java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    [java] at java.lang.Class.forName0(Native Method)
    [java] at java.lang.Class.forName(Class.java:141)
    [java] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:406)
    [java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
    [java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:270)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:397)
    [java] at weblogic.ejbc20.runBody(ejbc20.java:517)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:146)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:103)
    [java] at weblogic.ejbc.main(ejbc.java:29)
    [java] ERROR: Error from ejbc: Compiler class: 'com.sun.tools.javac.Main', not found
    [java] ERROR: ejbc couldn't invoke compiler

  • Linux - javac: file not found

    So after wrestling with setting the links and path up, I finally got it recognizing javac all over the place. I made a simple text file to see if it worked, and "javac blah.java" brings up a file not found error. I tried creating it first in the main folder, it didn't work there. I then tried creating it in the actual java/bin/ folder, and running javac from there, and same error. I made the text in nano, and saved in java/bin/ , so how do I get javac to realize the file is actually there?

    I know JACK about Linux, but this sounds like a CLASSPATH issue.
    http://java.sun.com/javase/6/docs/technotes/tools/solaris/classpath.html
    It?s explained there right on Top.
    Edited by: AikmanAgain on Feb 10, 2008 1:38 AM

  • Problem wtih deploying EAR: com.sun.javac.Main NOT FOUND

    Hi,
    I have a curious problem, after adding some simple (logging) code to an Session Bean, the EAR file will not deploy. I get the message below concerning compilation problems. If however I restore the Session Bean to the previous state, and having build a new EAR file, the erro persists. What is this strange behaviour, has this to do with weblogic settings for the EAR file of whatever ?
    NB I also have tried to include the tool.lib jar in the projekt but that doesn't solve the problem.
    Any help would be appreciated,
    Harry van Rijn
    Exception:weblogic.management.ApplicationException: prepare failed for UasEJB.jar Module: UasEJB.jar Error: Exception preparing module: EJBModule(UasEJB.jar,status=NEW) Unable to deploy EJB: UasEJB.jar from UasEJB.jar: Compiler class: 'com.sun.tools.javac.Main', not found at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:274) at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476) at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:407) at weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:493) at weblogic.ejb20.deployer.EJBDeployer.compileJar(EJBDeployer.java:762) at weblogic.ejb20.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:700) at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1317) at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:498) at weblogic.j2ee.J2EEApplicationContainer.prepareModule

    hi,
    i am migrating my application from wls7.0sp2 to wls8.1 sp3. i am using weblogic.ejbc to make my ear in my ant build script.
    My Classpath settings are > C:\bea8.1\weblogic81\server\lib\weblogic.jar;C:\j2sdk1.4.2_08\lib\tools.jar;
    My Path Settings are > C:\j2sdk1.4.2_08\bin;C:\j2sdk1.4.2_08\jre\bin;
    i am getting the error message>>
    [java] Compiler class: 'com.sun.tools.javac.Main', not found
    [java] java.lang.ClassNotFoundException: com.sun.tools.javac.Main
    [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
    [java] at java.security.AccessController.doPrivileged(Native Method)
    [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    [java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    [java] at java.lang.Class.forName0(Native Method)
    [java] at java.lang.Class.forName(Class.java:141)
    [java] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:406)
    [java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
    [java] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:270)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:397)
    [java] at weblogic.ejbc20.runBody(ejbc20.java:517)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:146)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:103)
    [java] at weblogic.ejbc.main(ejbc.java:29)
    [java] ERROR: Error from ejbc: Compiler class: 'com.sun.tools.javac.Main', not found
    [java] ERROR: ejbc couldn't invoke compiler

  • Beans: class not found in web application of my own

    i am using tomcat 4.0 & j2sdk1.4.0
    i have path like
    c:\myjspapp\ourproject\WEB-INF\classes
    my .jsp,.html,.java file r in /ourproject folder
    i dont want to store my files in /webapps folder of tomcat
    i want to store them in folder as mentioned above
    i am displaying .jsp file contents in .html file in frames
    my .jsp file name is:ourmenu10.jsp
    my .html file name is:webmenu10.html
    my .java file name is:menuCreate.java
    i am using .java file as beans in my .jsp file
    i am getting error while accessing class file
    error trace is:::
    Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    An error occurred at line: 9 in the jsp file: /ourproject/ourmenu10.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\jigishatest\ourproject\ourmenu10$jsp.java:72: Class org.apache.jsp.menuCreate not found.
    menuCreate createmenu = null;
    ^
    An error occurred at line: 9 in the jsp file: /ourproject/ourmenu10.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\jigishatest\ourproject\ourmenu10$jsp.java:75: Class org.apache.jsp.menuCreate not found.
    createmenu= (menuCreate)
    ^
    An error occurred at line: 9 in the jsp file: /ourproject/ourmenu10.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\jigishatest\ourproject\ourmenu10$jsp.java:80: Class org.apache.jsp.menuCreate not found.
    createmenu = (menuCreate) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "menuCreate");
    ^
    3 errors, 1 warning
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
         at java.lang.Thread.run(Thread.java:536)
    Please help me as early as possible
    thanks in advance

    Okay, first things first,
    You did put the class into a package? good.
    You did compile the class, so we no longer care about the .java file, only the .class file, right?
    You read documentation on deploying applications in tomcat? If not, do a google search.
    As was started earlier, keep things under Tomcat/webapps/yourapp at least until you get things up and working. Then worry about changing paths, mapped drives, and all those other things. Do this one step at a time and you will get there. Try to do too much at once and you will get lost and frustrated.
    If you find the documetnation about deplying your applications in tomcat, you will also find info on how to change the absolute path of the context and/or host
    A good place to start is: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html

  • Jar not running is sarge and apache-ant  shows error of package not found

    Hello,
    First of all I am not a java programmer. I work in C/C++/C#.
    Currently I am dealing a game written in java (1.5) using netbeans 5.5.0 under windows xp. My target is to compile in my development machine and run in the clients machine. everything works fine in windows xp. I open the netbeans ide, load the necessary class libraries, build the project and run it. it runs without any problem.
    The problem begins when I run the same project from linux (fedora). it doest not run. It shows some error.
    <error platform="fedora 7">
    Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException:
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
    at java.awt.Window.<init>(Window.java:406)
    at java.awt.Frame.<init>(Frame.java:402)
    at java.awt.Frame.<init>(Frame.java:367)
    at javax.swing.JFrame.<init>(JFrame.java:163)
    at netbeansapplication.nbApplication.<init>(nbApplication.java:52)
    at netbeansapplication.nbApplication$14.run(nbApplication.java:453)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    </error>
    Some of these error were resolved when I set the DISPLAY variable (export DISPLAY="127.0.0.1:0") but the other errors were still there.
    But when I open this same project in netbeans and resolve the dependencies with class libraries it works ok after compiling.
    I can run it from console (java -jar ...)
    And again the same source tree shows the following error when I am in windows !!! (by java -jar ... command)
    <error platform="WinXPSP2">
    Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: ""
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Integer.parseInt(Integer.java:468)
    at java.lang.Integer.parseInt(Integer.java:497)
    at cherrygame.global.readConfigForStickProtection(global.java:2060)
    at cherrygame.nbCherryGame.<init>(nbCherryGame.java:243)
    at netbeansapplication.nbApplication.<init>(nbApplication.java:46)
    at netbeansapplication.nbApplication$14.run(nbApplication.java:453)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    </error>
    I see that netbeans uses ant to compile project in the background.
    then I tried using ant to compile.
    doing only `#ant compile` where build.xml resides does the compilation.
    after that I try to run it (by java -jar ...). again the above error shows up.
    What would I do?
    If I compile it with netbeans in machine A then it runs well in A but not in machine B.
    If I compile it with ANT in machine A then it doesn't run in A, no chance for machine B.
    the contents of my build xml is here
    <code file="build.xml">
    <![CDATA[
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- You may freely edit this file. See commented blocks below for -->
    <!-- some examples of how to customize the build. -->
    <!-- (If you delete it and reopen the project it will be recreated.) -->
    <project name="NetBeansApplication" default="default" basedir=".">
    <description>Builds, tests, and runs the project NetBeansApplication.</description>
    <import file="nbproject/build-impl.xml"/>
    <!--
    There exist several targets which are by default empty and which can be
    used for execution of your tasks. These targets are usually executed
    before and after some main targets. They are:
    -pre-init: called before initialization of project properties
    -post-init: called after initialization of project properties
    -pre-compile: called before javac compilation
    -post-compile: called after javac compilation
    -pre-compile-single: called before javac compilation of single file
    -post-compile-single: called after javac compilation of single file
    -pre-compile-test: called before javac compilation of JUnit tests
    -post-compile-test: called after javac compilation of JUnit tests
    -pre-compile-test-single: called before javac compilation of single JUnit test
    -post-compile-test-single: called after javac compilation of single JUunit test
    -pre-jar: called before JAR building
    -post-jar: called after JAR building
    -post-clean: called after cleaning build products
    (Targets beginning with '-' are not intended to be called on their own.)
    Example of inserting an obfuscator after compilation could look like this:
    <target name="-post-compile">
    <obfuscate>
    <fileset dir="${build.classes.dir}"/>
    </obfuscate>
    </target>
    For list of available properties check the imported
    nbproject/build-impl.xml file.
    Another way to customize the build is by overriding existing main targets.
    The targets of interest are:
    -init-macrodef-javac: defines macro for javac compilation
    -init-macrodef-junit: defines macro for junit execution
    -init-macrodef-debug: defines macro for class debugging
    -init-macrodef-java: defines macro for class execution
    -do-jar-with-manifest: JAR building (if you are using a manifest)
    -do-jar-without-manifest: JAR building (if you are not using a manifest)
    run: execution of project
    -javadoc-build: Javadoc generation
    test-report: JUnit report generation
    An example of overriding the target for project execution could look like this:
    <target name="run" depends="NetBeansApplication-impl.jar">
    <exec dir="bin" executable="launcher.exe">
    <arg file="${dist.jar}"/>
    </exec>
    </target>
    Notice that the overridden target depends on the jar target and not only on
    the compile target as the regular run target does. Again, for a list of available
    properties which you can use, check the target you are overriding in the
    nbproject/build-impl.xml file.
    -->
    <target name="-post-jar">
    <jar update="true" destfile="${dist.jar}">
    <zipfileset src="${libs.swing-layout.classpath}"/>
    <zipfileset src="${libs.addMoney.classpath}"/>
    <zipfileset src="${libs.NormalWindow.classpath}"/>
    </jar>
    </target>
    </project>
    ]]>
    </code>
    my directory contents is here. note. I have 2 packages "cgwindow2" and "NormalWindow" for class libraries and my main application is "CherryGame". The game is "game.jar" in the CherryGame folder.
    <listing foldername="CherryGame">
    D:\src\java\CherryGame\build.xml
    D:\src\java\CherryGame\BW.txt
    D:\src\java\CherryGame\config.txt
    D:\src\java\CherryGame\config.txt.lin
    D:\src\java\CherryGame\flopsfile.txt
    D:\src\java\CherryGame\game.jar
    D:\src\java\CherryGame\LWMoneyfile.txt
    D:\src\java\CherryGame\mfile.txt
    D:\src\java\CherryGame\mfile2.txt
    D:\src\java\CherryGame\mfile3.txt
    D:\src\java\CherryGame\TotalRollsTillBigWin.txt
    D:\src\java\CherryGame\UserFile.txt
    D:\src\java\CherryGame\build\classes\cherrygame\addMoneyFrame.class
    D:\src\java\CherryGame\build\classes\cherrygame\addMoneyPanel.class
    D:\src\java\CherryGame\build\classes\cherrygame\cardsPanel.class
    D:\src\java\CherryGame\build\classes\cherrygame\cardsWindow$1.class
    D:\src\java\CherryGame\build\classes\cherrygame\cardsWindow.class
    D:\src\java\CherryGame\build\classes\cherrygame\cherryGameBackPanel.class
    D:\src\java\CherryGame\build\classes\cherrygame\cherryWindow.class
    D:\src\java\CherryGame\build\classes\cherrygame\customBorderCherryGame.class
    D:\src\java\CherryGame\build\classes\cherrygame\FixedGlassPane.class
    D:\src\java\CherryGame\build\classes\cherrygame\global.class
    D:\src\java\CherryGame\build\classes\cherrygame\helpPanelOne.class
    D:\src\java\CherryGame\build\classes\cherrygame\imagesPanel.class
    D:\src\java\CherryGame\build\classes\cherrygame\messageWindow.class
    D:\src\java\CherryGame\build\classes\cherrygame\messageWindow2.class
    D:\src\java\CherryGame\build\classes\cherrygame\messageWindow3.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$1.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$10.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$11.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$12.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$13.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$14.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$15.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$16.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$17.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$18.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$19.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$2.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$20.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$21.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$22.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$23.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$24.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$25.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$26.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$27.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$28$1.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$28$2.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$28.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$29.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$3.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$30.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$31.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$32.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$33.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$34.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$35.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$36.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$37.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$38.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$39.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$4.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$40.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$41.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$42.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$43.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$44.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$45.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$46.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$5.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$6.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$7.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$8.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$9.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame$MyTask.class
    D:\src\java\CherryGame\build\classes\cherrygame\nbCherryGame.class
    D:\src\java\CherryGame\build\classes\cherrygame\panelMessage.class
    D:\src\java\CherryGame\build\classes\cherrygame\panelMessage2.class
    D:\src\java\CherryGame\build\classes\cherrygame\panelMessage3.class
    D:\src\java\CherryGame\build\classes\lpt\LPT.class
    D:\src\java\CherryGame\build\classes\lpt\events\Events.class
    D:\src\java\CherryGame\build\classes\lpt\events\LPTEvent.class
    D:\src\java\CherryGame\build\classes\lpt\events\LPTEventListener.class
    D:\src\java\CherryGame\build\classes\lpt\ieee1284\PPParallelPort.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\customBorder.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$1.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$10.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$11.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$12.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$13.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$14.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$2.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$3.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$4.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$5.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$6.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$7.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$8.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication$9.class
    D:\src\java\CherryGame\build\classes\netbeansapplication\nbApplication.class
    D:\src\java\CherryGame\dist\NetBeansApplication.jar
    D:\src\java\CherryGame\dist\javadoc\package-list
    D:\src\java\CherryGame\dist\javadoc\stylesheet.css
    D:\src\java\CherryGame\dist\javadoc\resources\inherit.gif
    D:\src\java\CherryGame\nbproject\build-impl.xml
    D:\src\java\CherryGame\nbproject\genfiles.properties
    D:\src\java\CherryGame\nbproject\project.properties
    D:\src\java\CherryGame\nbproject\project.xml
    D:\src\java\CherryGame\nbproject\private\private.properties
    D:\src\java\CherryGame\nbproject\private\private.xml
    D:\src\java\CherryGame\src\customBorder.java
    D:\src\java\CherryGame\src\nbApplication.form
    D:\src\java\CherryGame\src\nbApplication.java
    D:\src\java\CherryGame\src\cherrygame\addMoneyFrame.form
    D:\src\java\CherryGame\src\cherrygame\addMoneyFrame.java
    D:\src\java\CherryGame\src\cherrygame\addMoneyPanel.form
    D:\src\java\CherryGame\src\cherrygame\addMoneyPanel.java
    D:\src\java\CherryGame\src\cherrygame\cardsPanel.java
    D:\src\java\CherryGame\src\cherrygame\cardsWindow.form
    D:\src\java\CherryGame\src\cherrygame\cardsWindow.java
    D:\src\java\CherryGame\src\cherrygame\cherryGameBackPanel.form
    D:\src\java\CherryGame\src\cherrygame\cherryGameBackPanel.java
    D:\src\java\CherryGame\src\cherrygame\cherryWindow.java
    D:\src\java\CherryGame\src\cherrygame\customBorderCherryGame.java
    D:\src\java\CherryGame\src\cherrygame\global.java
    D:\src\java\CherryGame\src\cherrygame\helpPanelOne.form
    D:\src\java\CherryGame\src\cherrygame\helpPanelOne.java
    D:\src\java\CherryGame\src\cherrygame\imagesPanel.java
    D:\src\java\CherryGame\src\cherrygame\messageWindow.form
    D:\src\java\CherryGame\src\cherrygame\messageWindow.java
    D:\src\java\CherryGame\src\cherrygame\messageWindow2.form
    D:\src\java\CherryGame\src\cherrygame\messageWindow2.java
    D:\src\java\CherryGame\src\cherrygame\messageWindow3.form
    D:\src\java\CherryGame\src\cherrygame\messageWindow3.java
    D:\src\java\CherryGame\src\cherrygame\nbCherryGame.form
    D:\src\java\CherryGame\src\cherrygame\nbCherryGame.java
    D:\src\java\CherryGame\src\cherrygame\panelMessage.form
    D:\src\java\CherryGame\src\cherrygame\panelMessage.java
    D:\src\java\CherryGame\src\cherrygame\panelMessage2.form
    D:\src\java\CherryGame\src\cherrygame\panelMessage2.java
    D:\src\java\CherryGame\src\cherrygame\panelMessage3.form
    D:\src\java\CherryGame\src\cherrygame\panelMessage3.java
    D:\src\java\CherryGame\src\lpt\LPT.java
    D:\src\java\CherryGame\src\lpt\events\Events.java
    D:\src\java\CherryGame\src\lpt\events\LPTEvent.java
    D:\src\java\CherryGame\src\lpt\events\LPTEventListener.java
    D:\src\java\CherryGame\src\lpt\ieee1284\PPParallelPort.java
    </listing>
    <listing foldername="NormalWindow">
    D:\src\java\NormalWindow\build.xml
    D:\src\java\NormalWindow\manifest.mf
    D:\src\java\NormalWindow\build\classes\normalwindow\global.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$1.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$10.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$11.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$12.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$13.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$14.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$15.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$16.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$17.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$2.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$3.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$4.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$5.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$6.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$7.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$8.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow$9.class
    D:\src\java\NormalWindow\build\classes\normalwindow\NormalWindow.class
    D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog$1.class
    D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog$2.class
    D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog$3.class
    D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog$4.class
    D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog$5.class
    D:\src\java\NormalWindow\build\classes\normalwindow\PasswordDialog.class
    D:\src\java\NormalWindow\dist\NormalWindow.jar
    D:\src\java\NormalWindow\dist\README.TXT
    D:\src\java\NormalWindow\dist\_normalwindow.jar
    D:\src\java\NormalWindow\dist\lib\swing-layout-1.0.jar
    D:\src\java\NormalWindow\nbproject\build-impl.xml
    D:\src\java\NormalWindow\nbproject\genfiles.properties
    D:\src\java\NormalWindow\nbproject\project.properties
    D:\src\java\NormalWindow\nbproject\project.xml
    D:\src\java\NormalWindow\nbproject\private\private.properties
    D:\src\java\NormalWindow\nbproject\private\private.xml
    D:\src\java\NormalWindow\src\normalwindow\global.java
    D:\src\java\NormalWindow\src\normalwindow\NormalWindow.form
    D:\src\java\NormalWindow\src\normalwindow\NormalWindow.java
    D:\src\java\NormalWindow\src\normalwindow\PasswordDialog.form
    D:\src\java\NormalWindow\src\normalwindow\PasswordDialog.java
    </listing>
    <listing foldername="cgwindow2">
    D:\src\java\cgwindow2\build.xml
    D:\src\java\cgwindow2\manifest.mf
    D:\src\java\cgwindow2\mfile.txt
    D:\src\java\cgwindow2\UserFile.txt
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyPanel.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$1.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$10.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$11.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$12.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$13.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$14.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$2.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$3.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$4.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$5.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$6.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$7.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$8.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow$9.class
    D:\src\java\cgwindow2\build\classes\addmoney\addMoneyWindow.class
    D:\src\java\cgwindow2\build\classes\addmoney\customBorderForAddMoneyWindow.class
    D:\src\java\cgwindow2\build\classes\addmoney\global.class
    D:\src\java\cgwindow2\dist\cgwindow2.jar
    D:\src\java\cgwindow2\dist\README.TXT
    D:\src\java\cgwindow2\dist\lib\swing-layout-1.0.jar
    D:\src\java\cgwindow2\nbproject\build-impl.xml
    D:\src\java\cgwindow2\nbproject\genfiles.properties
    D:\src\java\cgwindow2\nbproject\jax-ws.xml
    D:\src\java\cgwindow2\nbproject\project.properties
    D:\src\java\cgwindow2\nbproject\project.xml
    D:\src\java\cgwindow2\nbproject\private\private.properties
    D:\src\java\cgwindow2\nbproject\private\private.xml
    D:\src\java\cgwindow2\src\addmoney\addMoneyPanel.form
    D:\src\java\cgwindow2\src\addmoney\addMoneyPanel.java
    D:\src\java\cgwindow2\src\addmoney\addMoneyWindow.form
    D:\src\java\cgwindow2\src\addmoney\addMoneyWindow.java
    D:\src\java\cgwindow2\src\addmoney\customBorderForAddMoneyWindow.java
    D:\src\java\cgwindow2\src\addmoney\global.java
    </listing>
    About my thread subject, my clients machine is a debian sarge 3.0 and when I compiled it there with ANT It says, "normalwindow" package not found. other 2 errors were due to "normalwindow".
    Edited by: mokaddim on Sep 12, 2007 2:08 PM

    Julio.Faerman wrote:
    Hello,
    I am trying to run my annotation processor using ant.
    I already built the processor, the javax.annotation.processor.Processor file is in the correct place with the correct content.
    The jar with the processor is in the classpath (i can see it in ant -v), but it does not process my classes. in fact, i get the warning:
    warning: Annotation processing without compilation requested but no processors were found.Do i have to specify -processor or -processorpath or can i just leave it to the default classpath scanning?When -processor is not given, a service loader is used to find the annotation processors (if any). In addition to the class files of the process, to allow your processor to be found as a service, make sure you've also provided the needed META-INF data in the jar file. The general service file format is described in
    http://java.sun.com/javase/6/docs/api/java/util/ServiceLoader.html
    That said, I'd recommend setting an explicit processor path separate from your general classpath.

Maybe you are looking for

  • Purpose of static classes

    What is the purpose of making a class static? public static class December { }The only reason I can see is to access inner-classes without instantiating the outer-class? Are there any other?

  • How do you make a picture the background in Pages?

    I have a photo from Google and I want to make it the background of my document on Pages, but I can't figure out how.  How do you do it? Thanks!

  • HT1657 Rented movie won't play

    Rentes a movie from iTunes yesterday, half way through watching it and it froze and haven't been able to get it to play again.  My MacBook Pro is working perfectly so this has to have something to do with iTunes.  Can you please tell me where I can g

  • Opening files in InCopy

    This seems to be a very basic question, but I'm having a hard time finding the answer: Normally, when I'm working on a project in InCopy, I save and close; when I'm ready to work on the project again, I open it from File > Open Recent > [file name].

  • Copy expression not working in 11g PS1

    i Hve used a copy expression inside the email body.It works fine in 11g R1 but it gives the below error in 11gps1 http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure Fault lbpelFault><faultType> <message>0</message></faultType><s