Getting java to compile

I just downloaded the j2ee SDK and am hoping to compile some simple java applets. HOwever, I am having difficulty either finding an appropriate FAQ or getting some code to compile.
When I type in javac on the command line (in windows xp) it brings back "javac is not recognized as an internal or external command"
I tried creating under system properties / advanced/ environment variables/ a system variable called java with the path c:\Program Files\java\jdk1.5.0_04\bin but this did not solve it.
Any pointers to a FAQ, the correct forum to post this to, or any other info would be greatly appreciated.
Thanks,
SQLFriend

The problem seems to be that 'javac' is not in the PATH.
You will need to add c:\Program Files\java\jdk1.5.0_04\bin to the PATH variable, as specified in http://java.sun.com/j2se/1.4.2/install-windows.html#Environment.
Ref:
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html
Also, for questions on java, javaforums are available at:
http://forum.java.sun.com/index.jspa

Similar Messages

  • Cannot get Java to compile

    I have recently installed the newest Java version on my XP computer. I can't get it to compile the programs
    I have written. I have it saved in C:/Program Files/java_save. When I go to compile I get "javac is not a recognized action or file name." I have tried creating the path in the system settings but I still cannot get it to work. I have tried just about everything I can think of. I am getting really frustrated and haven't gotten an answer from java when I emailed them. Do I need to reinstall java or am I doing something wrong? Any help would be appreciated. Thank You!
    trtrainer

    'Software\JavaSoft\Jave Runtime
    Environment\CurrentVersion' has value '1.4' but '13'
    is required.
    Error: could not find java.dll
    Error: could not find Java 2 Runtime EnvironmentA fast review of the threads on this topic lead me to believe you may need to either 1) add the new bin directory to the path variable as mentioned earlier 2) reinstall the JRE only, due to confusion at the registry level 3) edit/repair the registry itself (careful...)
    Note also the order of the items in the PATH setting. As discussed here in Reply 1..
    http://forum.java.sun.com/thread.jsp?forum=54&thread=164483
    You may wish to remove from the PATH setting any earlier versions of a java sdk you had attempted to install.
    Here are some other threads on this topic..
    http://forum.java.sun.com/thread.jsp?forum=32&thread=142506
    http://forum.java.sun.com/thread.jsp?forum=31&thread=276400
    Reply 1 of this thread suggests reinstalling Java and the response from the OP is that the reinstall resolved the issue.
    http://forum.java.sun.com/thread.jsp?forum=54&thread=299702
    If you installed an IDE with it's own JDK, you may want to look at Reply 2 here..
    http://forum.java.sun.com/thread.jsp?forum=54&thread=183721
    When I type the path: c:\j2sdk1.4.2_04\bin\javac
    HelloWorldApp.java, I get: Error: Cannot Read:
    HelloWorldApp.javaThis simply means that the compiler can not find the file "HelloWorldApp.java" inside the directory from where you are attempting to compile the file.

  • Need Help Please - I can't get Java to compile my programs

    Hi, I'm taking a programming course in college and want to be able to compile my java programs at my home laptop instead of just at the lab...
    However, when I write my code and try to compile with TextPad, there is no "Compile" option....Instead there is a grayed-out option of "User-tool"...
    I have installed the J2SE Developmental Kit 5.0 Update 11 and the JavaRuntime Environment 5.0 Update 11....In the labs, the computers have the exact same thing except they are the Update 9 versions....
    What am I missing? Thanks for any help you can offer....

    > TextPad isn't part of the JDK nor runtime of Java,
    and this isn't a TextPad product support site.
    (Edit: Except when yawmark is around)
    Pish. I pointed himmer to the proper place. ;o)
    It would be advisable to lose your addiction to IDE's
    anyway (like TextPad)
    Pish. TextPad isn't an IDE. It's a feature-rich text editor that happens to let you run commands from within the program (though I don't argue with the benefit of compiling/executing from the CL when learning).
    ~

  • Getting Java running

    I have downloaded j2sdk1.4.0-beta 3 onto my computer which operates on windows 98. the install wizard installed the program and created a folder j2sdk1.4.0-beta 3. If I click on this it opens to reveal other folders, but when clicking on these they continue through and nothing ends up happening.
    I have tried to follow the installation notes on the website and it discussed setting the path through the autoexec.bat. Now, this did not come up as a dos prompt set up, but rather a window under the system reconfigure window (and a bunch of others). the autoexec window started off
    @ECHO OFF
    SET BLASTER=A220 15 DI
    LH C:\WINDOWS COMMAND\DOSKEY
    So I am not even sure if this is where I am supposed to be and don't want to reset something that will effect the rest of my system.
    I've spent several hours trying to figure this out and can't get java running, if anyone can help It would be greatly appreciated!!!! Thanks in advance!!

    You need to set up the autoexec.bat file so msdos knows where to look for the javac.exe (compiler) and java.exe (run time enviroment) and other such fun stuff.
    To do this is fairly straight forward - if the JDK root directory is on your c: drive in the folder jdk1.2.2, so the path name for that folder would look like "C:\jdk1.2.2". To tell msdos where the compilers and such are add the following (changing the JDK pathname if JDK is in a different location on the c drive):
    SET CLASSPATH=.;C:\
    PATH=C:\JDK1.2.2\BIN
    Now, when you open the command line/msdos prompt you will need to run the autoexec.bat file, so in the case above, it will look in "C:\JDK1.2.2\BIN" when you run javac, java, jardoc etc.... To run it type "autoexec.bat" whilst in the same directory as the autoexec.bat in msdos - you will need to do this each time you activate the msdos prompt - how to set it up so it does it automatically i don't know.
    You don't need to change anything else in the autoexec.bat file, and you can copy the autoexec.bat into the directory in which you are developing the java code. You will need to leave the orginal for other programs to use.
    As for opening the JDK folders and your computer not doing anything, i think their maybe a problem with the computer itself............

  • Than how can i get java class by using it's class file?

    Hi
    After compilation of a java program, it creates a class file.
    After getting class file suppose class file has been deleted.
    Than how can i get java class by using it's class file?
    Thanks in advance.

    get a decompiler and run your class file through it--I'll assume you want the source code back and that you are not trying to recover a missing class file by attempting to use the class file that is missing--if it's missing, then I've not a clue on how to get it back by using what is already missing.
    BTW: many of your compilers have source control--if it does, just restore your missing file.

  • Getting "java.io.EOFException" while reading a file

    I am getting this error when trying to upload a file through the html form to the server.
    I am using Struts form and the FormFile to get the file contents. After getting the file contents I write to a file in the server path. This works perfectly with WebSphere4.0.
    When I deploy my application in Websphere 6.0 cluster environment I get the following error.
    java.io.EOFException
         at java.io.DataInputStream.readFully(DataInputStream.java(Compiled Code))
         at java.io.DataInputStream.readInt(DataInputStream.java(Compiled Code))
         at java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java(Inlined Compiled Code))
         at java.io.ObjectInputStream.readInt(ObjectInputStream.java(Compiled Code))
         at com.ibm.ws.webcontainer.httpsession.HttpSessDRSBuffWrapper.readExternal(HttpSessDRSBuffWrapper.java(Compiled Code))
         at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
         at java.util.Hashtable.readObject(Hashtable.java(Compiled Code))
         at sun.reflect.GeneratedMethodAccessor1637.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
         at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
         at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java(Compiled Code))
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
         at com.ibm.ws.drs.message.DRSCacheMsgImpl.readExternal(DRSCacheMsgImpl.java(Compiled Code))
         at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
         at com.ibm.ws.drs.message.DRSMessageHelper.extractDCM(DRSMessageHelper.java(Compiled Code))
         at com.ibm.ws.drs.ha.DRSAgentClassEvents$2.run(DRSAgentClassEvents.java(Compiled Code))
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
    Any help is appreciated.
    Thanks
    Ganesh...

    while((obj=input.readObject())!=null)and what's this test for? Where does it say that readObject() can return null? Is it really the correct test for what you're testing for?

  • JSP precompilation and my .java files compilation issues /  building WAR file using ANT

    Hello.
    I am new to working with WAR files and the whole process of it. A little
    background on what we are using. We are using, WLS 6.1 SP3. I am using the
    ant.bat that is supplied in the bin directory of the WLS install.
    I am trying to work with ANT and getting it to build the file. I am making
    progress, but at a point where I am having trouble getting my java code
    files to compile using ant. I am having one issue and looking to do one
    other item.
    1) I would like to precompile the JSPs if possible prior to putting into the
    WAR file. Not sure if this is done or not, but there was a utility when I
    was working with ibm's app server that gave us the ability to do a batch
    complile. Was thinking that maybe a similair concept is possibly here.
    2) Having issue getting ant to compile code properly. In the compile
    section of the build.xml file for ant, I tell it where the source files are,
    and the destionation folder for the compiled class files. I then try to set
    the classpath so that it finds the .jar files that are necessary for my
    source files to complile. But, it won't find them. And not sure how come.
    I may be going about this all wrong, but dont know. Here is the compile
    section of the build.xml I am using:
    <target name="compile" depends="prepare">
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    classpath="$(lib.home)"
    debug="on" optimize="on" deprecation="off"/>
    </target>
    One note, I've tried many different items in the classpath line, which
    don't work. if I do *.jar it fails at complie time, invalid argument. As
    well as if I use *.* and so on. if I list the explicit file names, it still
    doesn't seem to find them.
    I was wondering if anyone could help, if you need anymore information let me
    know, I can send the entire build.xml if necessary. I may be missing
    items, seeing that this is my first try at using ANT.
    Any help is appreciated and thanks in advance. Hopefully not sounding too
    off the wall. Hopefully get some clarification and understanding.
    Thank you.
    Kevin.

    Kevin Price wrote:
    Hello.
    I am new to working with WAR files and the whole process of it. A little
    background on what we are using. We are using, WLS 6.1 SP3. I am using the
    ant.bat that is supplied in the bin directory of the WLS install.
    I am trying to work with ANT and getting it to build the file. I am making
    progress, but at a point where I am having trouble getting my java code
    files to compile using ant. I am having one issue and looking to do one
    other item.
    1) I would like to precompile the JSPs if possible prior to putting into the
    WAR file. Not sure if this is done or not, but there was a utility when I
    was working with ibm's app server that gave us the ability to do a batch
    complile. Was thinking that maybe a similair concept is possibly here.you can use weblogic.jspc
    http://e-docs.bea.com/wls/docs70/jsp/reference.html#57794
    or just set the precompile flag in weblogic.xml
    You can configure WebLogic Server to precompile your JSPs when a Web
    Application is deployed or re-deployed or when WebLogic Server starts up
    by setting the precompile parameter to true in the <jsp-descriptor>
    element of the weblogic.xml deployment descriptor.
    >
    2) Having issue getting ant to compile code properly. In the compile
    section of the build.xml file for ant, I tell it where the source files are,
    and the destionation folder for the compiled class files. I then try to set
    the classpath so that it finds the .jar files that are necessary for my
    source files to complile. But, it won't find them. And not sure how come.
    I may be going about this all wrong, but dont know. Here is the compile
    section of the build.xml I am using:
    <target name="compile" depends="prepare">
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    classpath="$(lib.home)"
    debug="on" optimize="on" deprecation="off"/>
    </target>
    maybe because you are not using curly braces there on lib.home??
    if you do it the way above, you would have to list all your jars
    classpath="$(lib.home)\lib1.jar:$(lib.home)\lib2.jar"
    or you can nest
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    debug="on" optimize="on" deprecation="off">
         <classpath>
              <fileset dir="${lib.home}" includes="*.jar" />
         </classpath>
    </javac>
    One note, I've tried many different items in the classpath line, which
    don't work. if I do *.jar it fails at complie time, invalid argument. As
    well as if I use *.* and so on. if I list the explicit file names, it still
    doesn't seem to find them.
    I was wondering if anyone could help, if you need anymore information let me
    know, I can send the entire build.xml if necessary. I may be missing
    items, seeing that this is my first try at using ANT.
    Any help is appreciated and thanks in advance. Hopefully not sounding too
    off the wall. Hopefully get some clarification and understanding.
    Thank you.
    Kevin.

  • Java Class (Compiled with JDK6_u12) that works with UCCX 9.0.2, don´t work with UCCX 10.5

    I have a Java Class (Compiled with JDK6_u12) that works with UCCX 9.0.2, after upgrade it don´t work with UCCX 10.5
    I get the error message: "Failed to access the WSDL at: https://www.brightnavigator.se/brightservice/brightservice.asmx?WSDL. It failed with: Got java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty while opening stream from https://www.brightnavigator.se/brightservice/brightservice.asmx?WSDL.; nested exception is: javax.xml.ws.WebServiceException: Failed to access the WSDL at: https://www.brightnavigator.se/brightservice/brightservice.asmx?WSDL. It failed with: Got java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty while opening stream from https://www.brightnavigator.se/brightservice/brightservice.asmx?WSDL. (line: 1, col: 47)
    Does anyone know about this ?

    Did you ever find a resolution to this issue? I have a similar issue after upgrading from 7 to 10.5. I have loaded all provided certificates to the tomcat-trust store, restarted Tomcat Services and still get the same error
    Thanks

  • Cant get it to compile

    I am trying to creat a simple program with the JOptionPane. I cant get it to compile, so if any can help me I would apperciate it. Thanks!
    import javax.swing.*;
    public class myPane {
      public static void main(String[] args) {
            getPass(args);
      private static void getPass(String[] args) {
            String s,v,d;
            s = (String)JOptionPane.showInputDialog(null, "Username", "Java command line", JOptionPane.PLAIN_MESSAGE, null, null, "");
            if((s != null) && (s.length() > 0)) {
                    v = (String)JOptionPane.showInputDialog(null, "Password", "Java command line", JOptionPane.PLAIN_MESSAGE, null, null, "");
                    if((v != null) && (v.length() > 0)) {
                            JOptionPane.showMessageDialog(null, "Thank You!", "Java command line");
      d = (String)JOptionPane.showInputDialog(null, "Which command line would you like to run", "Java command line", JOptionPane.PLAIN_MESSAGE, null, null, "");
                    if((d != null) && (d.length() > 0)) {
                             JOptionPane.showMessageDialog(null, "Executing", "Java command line"); System.exit(0);
                    else {
                            JOptionPane.showMessageDialog(null, "You must enter a command");
                            getPass(args);
                    else {
                            JOptionPane.showMessageDialog(null, "Please enter a password");
                            getPass(args);
            else {
                    JOptionPane.showMessageDialog(null, "Please enter a username");
                    getPass(args);
             

    You have two invalid statements:
    JOptionPane.showMessageDialog(null, "Thank You!", "Java command line");
    JOptionPane.showMessageDialog(null, "Executing", "Java command line");The arguments are not acceptable - see the API documentation.

  • How to get .java files in iStore

    Hi,
    I do have .class files in my server.How do i get .java files.
    Do i need to create a .java file in jDevloper ,copy the content of the .class and paste it in jDeveloper and compile on the linux server.
    Thanks,
    Sabitha

              Set the 'keepgenerated' parameter in weblogic.xml to 'true'
              <jsp-descriptor>
              <jsp-param>
              <param-name>
              keepgenerated
              </param-name>
              <param-value>
              true
              </param-value>
              </jsp-param>
              </jsp-descriptor>
              thanks,
              Deepak
              "Chris Cooper" <[email protected]> wrote:
              >Hi,
              >
              >I wanna read the .java file compiled from JSPs in Web applications
              >deployed in Weblogic server, and I know that Weblogic delete them
              >after compiles the JSPs. how to get the java file?
              >
              >TIA
              >
              

  • Getting java.io.IOException: Too many open files+ClassNotFoundException

    Dear All
    We have a web application deployed on Rational Application Developer 6.0 (Operating System is Windows 2000 professional) our users are randomly getting java.io.IOException: Too many open files+ClassNotFoundException when they click on some servlet or jsp link, but they are getting this error randomly for example when they click some link they may get these exceptions but refreshing page or clicking once again on same link executes servlet successfully.If anyone could help on this topic we will be grateful
    Thanks

    I think this these two exceptions are occuring in differrent environment
    java.io.IOException is occuring under heavy load to web server its stack trace is as follows:
    JSPG0225E: An error occurred at line: 2 in the statically included file: /SessionCheck.jsp
    JSPG0093E: Generated servlet error from file: /Admin/AdminInsuranceCertificates.jsp
    E:\WebSphere_6\AppServer\profiles\AUSECert\temp\centraNode04\server1\AUSECert\Vero.war\Admin\_AdminInsuranceCertificates.java:259: cannot access com.bplus.natmar.LoginDetails
    bad class file: E:\WebSphere_6\AppServer\java\jre\lib\core.jar(java/io/Writer.class)
    unable to access file: E:\WebSphere_6\AppServer\profiles\AUSECert\installedApps\centraNode04Cell\AUSECert.ear\Vero.war\WEB-INF\classes\com\bplus\natmar\LoginDetails.class (Too many open files)
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    (source unavailable)
    1 error
    ]: com.ibm.ws.jsp.JspCoreException: JSPG0049E: /Admin/AdminInsuranceCertificates.jsp failed to compile :
    this error always occurs in reference to logindetails class this clas is used to make a session check on different roles in our project for e.g., user having end user role should not be able to log in as a user having admin role
    we have included a sessioncheck.jsp in our every jsp page in this jsp we have simply used logindetails class as useBean and called its getresource() method
    above stacktrace is from our live application server
    while testing same project on our local system we are not getting too many open files exception but we are getting following ClassNotFoundException
    [11/30/05 17:11:42:797 EST] 0000004a SystemOut O SELECT count(*) as NoofRecs FROM resourcerolebindings WHERE ResourceName = 'mainEdit.jsp' and IsEndUser=1
    [11/30/05 17:12:50:891 EST] 000001eb SystemOut O SELECT count(*) as NoofRecs FROM resourcerolebindings WHERE ResourceName = 'InsuranceCertificates.jsp' and IsEndUser=1
    [11/30/05 17:17:40:828 EST] 0000008d SystemOut O AppURL is: http://www.VeroECert.com/Vero/indexU.jsp
    [11/30/05 17:17:58:141 EST] 0000008b SystemOut O SELECT count(*) as NoofRecs FROM resourcerolebindings WHERE ResourceName = 'InsuranceCertificates.jsp' and IsEndUser=1
    [11/30/05 17:20:41:703 EST] 00000034 ServletWrappe E SRVE0026E: [Servlet Error]-[com.servlet.UserHelpServlet]: java.lang.ClassNotFoundException: com.servlet.UserHelpServlet
         at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code))
         at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java(Compiled Code))
         at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
         at java.beans.Beans.instantiate(Beans.java:202)
         at java.beans.Beans.instantiate(Beans.java:63)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper$3.run(ServletWrapper.java:1384)
         at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadServlet(ServletWrapper.java(Compiled Code))
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1312)
         at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:84)
         at com.ibm.ws.webcontainer.extension.InvokerExtensionProcessor.handleRequest(InvokerExtensionProcessor.java:238)
         at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2841)
         at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
         at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
         at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
    this error is occuring on concurrent clicks suppose three users click on same button then it is possible that one user gets correct output while other users experience this exception
    Also one more point we are not using web.xml for calling servlets we are directly calling it giving its full path.
    Thanks

  • I Can't Get it to compile anything.

    Hi, I can't get it to compile. I'm using Windowsxp Pro and the New beta version of Java jsdk1.4.0-beta3. I set path and my classpath but when I go to compile it gives me this message "error: cannot read: BigDebt.java 1error" Can anyone help me I have been going at it for hours an nothing. Tried everything I can think of need outside help. Thanks

    set your environment variables correctly. You should add your folder (where you store your .java files) in the classpath.
    Try this if it works...
    javac -classpath <mydir> myfile.java
    if this succeeds, you will have to add <mydir> in you classpath.
    Reply if works or not.
    All the best.

  • Hello I need help on getting java to work on my computer.

    Hello I when to a class during the summer learning java and it would be a shame to let this class go to waste.
    I have been emailing my teacher trying to get java to work but it hasn't been working out.
    I have tried to get a hole of him lately but I can't reach him anymore.
    So I decided to join this forum to hopefully get it to work.
    I was told to download Jedit.
    So I compiled it and then ran it.
    And it said.
    java.lang.NoClassDefFoundError: SwingUI
    Exception in thread "main" Process java exited with code 1
    What can I do to fix this?
    If there is any information that I must give about this situation that would help you understand my problem please tell me because I would really enjoy this to be fixed.

    I suggest DevSquare (http://www.devsquare.com). Its easy to get started as you dont require any set up on your machine and has good editor features like auto completion, templates, code navigation and prompt error messages support that redirect to the corresponding line in the code. You can also debug your applications and refactor your code using this tool. I found it quite useful as it also has a code base where code bytes are availble.
    Refer to the links below to overcome the issues faced by you.
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/
    http://java.sun.com/developer/onlineTraining/Programming/BasicJava1/compile.html
    http://java.sun.com/docs/books/tutorial/
    http://java.sun.com/learning/new2java/index.html

  • How do you get java regex to match two different pattern

    Hi,
    I am having trouble getting getting java regex to match two pattern: "unknown host" or "100%".
    Here is a snippet of my code:
    try{
    Process child = Runtime.getRuntime().exec(" perl c:\\ping.pl");
    BufferedReader in = new BufferedReader( new InputStreamReader( child.getInputStream() ));
    String patternStr = "(unknown host | 100 %)";
    Pattern pattern = Pattern.compile(patternStr);
    Matcher matcher = pattern.matcher(" ");
    String line = null;
    while ( (line = in.readLine()) != null){
    System.out.println(line);
    matcher.reset(line);
    if (matcher.find())
    // line matches throws pattern
    System.out.println("match string");
    else
    System.out.println("no matches");
    I thought the "|" means OR but somehow it is not working.
    kirk123

    Hi,
    with String patternStr = "(unknown host | 100 %)"; you are looking
    for the strings "unknown host " OR " 100 %", with the spaces after host and before 100.
    Try "(unknown host|100 %)"
    hope, this will help you

  • Why do I get the JSP compilation error?

    Why do I get the JSP compilation error?
              Envionment:
              AIX,WLS 5.1 sp10,.........
              Thu Jun 07 11:54:41 CDT 2001:<I> <ServletContext-dcms> Generated java
              file: /usr/local/weblogic/test-weblogic/weblogic/myserver/dcms
              web/app/tmp_war/jsp_servlet/_report/_walmart_95_prod_95_proof_95_report.java
              Thu Jun 07 11:54:42 CDT 2001:<E> <ServletContext-dcms> Compilation of
              /usr/local/weblogic/test-weblogic/weblogic/myserver/dcms_web/a
              pp/_tmp_war/jsp_servlet/_report/_walmart_95_prod_95_proof_95_report.java
              failed: Exception in thread "main" java.lang.NoClassDefFoun
              dError: sun/tools/javac/Main
              java.io.IOException: Compiler failed
              executable.exec([Ljava.lang.String;[javac, -classpath,
              /usr/java_dev2/jre/sh/../lib/rt.jar:/usr
              /java_dev2/jre/sh/../lib/i18n.jar:/usr/java_dev2/jre/sh/../classes:./classes/boot:./eval/cloudscape/lib/cloudscape.jar:./anderson_co
              mmon/3rd_party_jars/jt400.jar:/usr/lpp/db2_07_01/java/db2java.zip::./lib/weblogic510sp8boot.jar:./license:./classes:./lib/weblogicau
              x.jar:./myserver/serverclasses:./anderson_common/3rd_party_jars/jt400.jar:/usr/lpp/db2_07_01/java/db2java.zip::./classes/dcms/com.ib
              m.mq.iiop.jar:./classes/dcms/com.ibm.mq.jar:./classes/dcms/com.ibm.mqbind.jar:./classes/dcms/com.ibm.mqjms.jar:./classes/dcms/com_au
              th.jar:./classes/dcms/com_auth_server.jar:./classes/dcms/com_io.jar:./classes/dcms/com_jms.jar:./classes/dcms/com_jndi.jar:./classes
              /dcms/com_system.jar:./classes/dcms/com_system_server.jar:./classes/dcms/com_util.jar:./classes/dcms/dcms_common.jar:./classes/dcms/
              dcms_common_server.jar:./classes/dcms/dcms_dl_render_server.jar:./classes/dcms/dcms_finalresting_server.jar:./classes/dcms/dcms_fulf
              illment.jar:./classes/dcms/dcms_fulfillment_server.jar:./classes/dcms/dcms_fulfillment_walmart_server.jar:./classes/dcms/dcms_lookup
              _server.jar:./classes/dcms/dcms_media_server.jar:./classes/dcms/dcms_order.jar:./classes/dcms/dcms_order_server.jar:./classes/dcms/d
              cms_order_session.jar:./classes/dcms/dcms_product.jar:./classes/dcms/dcms_product_server.jar:./classes/dcms/dcms_render_client.jar:.
              /classes/dcms/dcms_render_server.jar:./classes/dcms/dcms_talent_server.jar:./classes/dcms/dcms_talent.jar:./classes/dcms/dcms_walmar
              t.jar:./classes/dcms/dcms_walmart_server.jar:./classes/dcms/dcms_jms.jar:./classes/dcms/xreport_pro.jar:./classes/dcms/xtools.jar:./
              classes/dcms/jms.jar:./classes/dcms/dcms_sql.jar:./classes/dcms/dcms_product_sql.jar::/usr/local/weblogic/test-weblogic/weblogic/mys
              erver/tmp_deployments/ejbjar-4971.jar:/usr/local/weblogic/test-weblogic/weblogic/lib/persistence/WebLogic_RDBMS.jar:/usr/local/weblo
              gic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4970.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_deployme
              nts/ejbjar-4969.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4968.jar:/usr/local/weblogic/test-web
              logic/weblogic/myserver/tmp_deployments/ejbjar-4967.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4
              966.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4965.jar:/usr/local/weblogic/test-weblogic/weblog
              ic/myserver/tmp_deployments/ejbjar-4964.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4963.jar:/usr
              /local/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4962.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/
              tmp_deployments/ejbjar-4961.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4960.jar:/usr/local/weblo
              gic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4959.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_deployme
              nts/ejbjar-4958.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4957.jar:/usr/local/weblogic/test-web
              logic/weblogic/myserver/tmp_deployments/ejbjar-4956.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4
              955.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4954.jar:/usr/local/weblogic/test-weblogic/weblog
              ic/myserver/tmp_deployments/ejbjar-4953.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4952.jar:/usr
              /local/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4951.jar:/usr/local/weblogic/test-weblogic/weblogic/./myserve
              r/dcms_web/app/WEB-INF/classes:/usr/local/test-weblogic/weblogic/myserver/dcms_web/app/WEB-INF/classes:/usr/local/weblogic/test-webl
              ogic/weblogic/./myserver/dcms_web/app/_tmp_war:/usr/local/weblogic/test-weblogic/weblogic/myserver/dcms_web/app/_tmp_war,
              -d, /usr/l
              ocal/weblogic/test-weblogic/weblogic/myserver/dcms_web/app/_tmp_war,
              /usr/local/weblogic/test-weblogic/weblogic/myserver/dcms_web/ap
              p/_tmp_war/jsp_servlet/_report/_walmart_95_prod_95_proof_95_report.java])
              at
              weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:396)
              at
              weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:202)
              at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:284)
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:174)
              at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:164)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:99)
              at
              weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java(Compiled
              Code))
              at com.web.CommonWebUtils.forward(CommonWebUtils.java(Compiled
              Code))
              at com.web.PageNavServlet.service(PageNavServlet.java:76)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247)
              at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)
              at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              ----------------------Caught exception while forwarding to page
              /report/walmart_prod_proof_report.jsp------------------------
              ----------------------Exception java.io.IOException: Compiler failed
              executable.exec([Ljava.lang.String;[javac, -classpath, /usr/jav
              a_dev2/jre/sh/../lib/rt.jar:/usr/java_dev2/jre/sh/../lib/i18n.jar:/usr/java_dev2/jre/sh/../classes:./classes/boot:./eval/cloudscape/
              lib/cloudscape.jar:./anderson_common/3rd_party_jars/jt400.jar:/usr/lpp/db2_07_01/java/db2java.zip::./lib/weblogic510sp8boot.jar:./li
              cense:./classes:./lib/weblogicaux.jar:./myserver/serverclasses:./anderson_common/3rd_party_jars/jt400.jar:/usr/lpp/db2_07_01/java/db
              2java.zip::./classes/dcms/com.ibm.mq.iiop.jar:./classes/dcms/com.ibm.mq.jar:./classes/dcms/com.ibm.mqbind.jar:./classes/dcms/com.ibm
              .mqjms.jar:./classes/dcms/com_auth.jar:./classes/dcms/com_auth_server.jar:./classes/dcms/com_io.jar:./classes/dcms/com_jms.jar:./cla
              sses/dcms/com_jndi.jar:./classes/dcms/com_system.jar:./classes/dcms/com_system_server.jar:./classes/dcms/com_util.jar:./classes/dcms
              /dcms_common.jar:./classes/dcms/dcms_common_server.jar:./classes/dcms/dcms_dl_render_server.jar:./classes/dcms/dcms_finalresting_ser
              ver.jar:./classes/dcms/dcms_fulfillment.jar:./classes/dcms/dcms_fulfillment_server.jar:./classes/dcms/dcms_fulfillment_walmart_serve
              r.jar:./classes/dcms/dcms_lookup_server.jar:./classes/dcms/dcms_med
              rder_server.jar:./classes/dcms/dcms_order_session.jar:./classes/dcm
              es/dcms/dcms_render_client.jar:./classes/dcms/dcms_render_server.jar:./classes/dcms/dcms_talent_server.jar:./classes/dcms/dcms_talen
              t.jar:./classes/dcms/dcms_walmart.jar:./classes/dcms/dcms_walmart_server.jar:./classes/dcms/dcms_jms.jar:./classes/dcms/xreport_pro.
              jar:./classes/dcms/xtools.jar:./classes/dcms/jms.jar:./classes/dcms/dcms_sql.jar:./classes/dcms/dcms_product_sql.jar::/usr/local/web
              logic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4971.jar:/usr/local/weblogic/test-weblogic/weblogic/lib/persistence/Web
              Logic_RDBMS.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4970.jar:/usr/local/weblogic/test-weblogi
              c/weblogic/myserver/tmp_deployments/ejbjar-4969.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4968.
              jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4967.jar:/usr/local/weblogic/test-weblogic/weblogic/m
              yserver/tmp_deployments/ejbjar-4966.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4965.jar:/usr/loc
              al/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4964.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_
              deployments/ejbjar-4963.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4962.jar:/usr/local/weblogic/
              test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4961.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/
              ejbjar-4960.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4959.jar:/usr/local/weblogic/test-weblogi
              c/weblogic/myserver/tmp_deployments/ejbjar-4958.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4957.
              jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4956.jar:/usr/local/weblogic/test-weblogic/weblogic/m
              yserver/tmp_deployments/ejbjar-4955.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4954.jar:/usr/loc
              al/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4953.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_
              deployments/ejbjar-4952.jar:/usr/local/weblogic/test-weblogic/weblogic/myserver/tmp_deployments/ejbjar-4951.jar:/usr/local/weblogic/
              test-weblogic/weblogic/./myserver/dcms_web/app/WEB-INF/classes:/usr/local/test-weblogic/weblogic/myserver/dcms_web/app/WEB-INF/class
              es:/usr/local/weblogic/test-weblogic/weblogic/./myserver/dcms_web/app/_tmp_war:/usr/local/weblogic/test-weblogic/weblogic/myserver/d
              cms_web/app/_tmp_war, -d,
              /usr/local/weblogic/test-weblogic/weblogic/myserver/dcms_web/app/_tmp_war,
              /usr/local/weblogic/test-weblog
              ic/weblogic/myserver/dcms_web/app/_tmp_war/jsp_servlet/_report/_walmart_95_prod_95_proof_95_report.java])------------------------
              

    Hi, im getting the same thing,
    Been tryin to download it for days but keeps saying "Invalid signature"
    I even went into ADD REMOVE PROGRAMS hit Apple software update and change and then repair but this did not work.
    Help much appreciated.  Thanks

Maybe you are looking for