Help me out....in java

Hi All,
How to unzip the zip file in JAVA when zip file contains the password authentication.
Please help me out.....
thanks in advance.

There are potentially legitimate uses for this. For example, if Business A delivers sensitive data on a batch basis to Business B they might employ simple ZIP encryption and provide Business B with the password. Business B stored the password in a protected properties file and uses it to decrypt and unzip the batch from Business A to process it automatically.
And rather than using java.util.zip you can do a System.getRuntime( ).exec( ) to run pkunzip (or gzip -d) and pass the password and filename as a parameter.
- Jesse

Similar Messages

  • Need help with long term Java problems

    I've been having problems with Java on my computer for about a year now, and I'm hoping that someone here can help me out.
    Java used to work fine on the computer when I first got it (a Dell laptop) and I hadn't installed anything myself. But then one day it stopped loading Java applets, and hasn't worked since. By this, I mean that I get the little colorful symbol in a box when I try to play Yahoo games, use the http://www.jigzone.com site, go to chat rooms, etc. Java menus on websites like http://www.hartattack.tv used to work still, but lately they've been giving me that symbol too.
    I've tried downloading a newer version of Java, but nothing I do seems to work, and I don't know of anything I did to trigger it not working. I'm hoping there's a simple solution to this, and I'm just dumb.
    Thanks.

    This might be way off, but it's something that's tripped me up in the past:
    If you are using Sun's Java plugin, the first time you go to a site that has a particular Java applet, you may be asked to approve/reject a security request.
    If you have clicked on any other windows while the request is first being loaded (which can take some time, because this is swing based), then the security dialog box does not pop to the top of the window stack, and doesn't add an entry into the task bar.
    It appears that Java just doesn't work, but it's actually waiting for you to click "Yes". You can check this by hitting alt-tab and seeing if the Java coffee cup icon is one of the options.
    - K

  • PLZ help me out i'm very new and confused to java

    Hi~
    I'm very new to java and I just brought a phone (Nokia 6670). It's capable of J2ME, as it says in the instrusction book, but I'm not so sure which Java to download. (THERE ARE SO MANY). Please help me out, I'm not sure what to do, since I'm putting games in Java.

    you want to develop your own game or just want to have some games on your new device?
    your phone has java runtime already, and that's all you need to run java games .. you can download them from several locations
    if you want to develop your own game then download Sun's J2ME Wireless Toolkit; also have a look at Nokia Developer's Suite and emulator for your device...

  • I am a newbie plz help me out

    Hello,
    I am writinf g the very first program and got stuck, the program is :
    class Tirtha
    public static void main(String args [])
    System.out.println("Hello World !!");
    I saved the program as Tirtha.java in the Bin folder in j2sdk, but when I compile I find no error but durin the runtime I am having a error saying :
    Exception in thread "main" java.lang.NoClassDefFound Error :Tirtha
    This error also exists even whwn I try to run any program given in the book(The complete reference Java 2).
    Please help me out.
    Thank You
    Tirthankar

    Javapedia: Classpath
    How Classes are Found
    Setting the class path (Windows)
    Setting the class path (Solaris/Linux)
    Understanding the Java ClassLoader
    java -cp .;<any other directories or jars> YourClassNameYou get a NoClassDefFoundError message because the JVM (Java Virtual Machine) can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.
    javac -classpath .;<any additional jar files or directories> YourClassName.javaYou get a "cannot resolve symbol" message because the compiler can't find your class. The way to remedy this is to ensure that your class is included in the classpath. The example assumes that you are in the same directory as the class you're trying to run.

  • Plz help me out I am a newbie

    import java.io.DataInputStream;
    class CalculateAccnDist
         public static void main(String args[])
    DataInputStream in = new DataInputStream(System.in);
    float a=0.0f;
    float u=0.0f;
    try
                        System.out.println("Enter the initial speed in m/sec :");
                        u = Float.valueOf(in.readLine()).floatValue();
                        System.out.println("Enter the acceleration of the body :");
                        a =Float.valueOf(in.readLine()).floatValue();
                   catch (Exception e) { }
                   System.out.println(" Time(s) Distance(m)");
                   for(int t=0;t<=60;t=t+10)
                             System.out.println(t + ((u*t) + ((a*t*t)/2)));
    I am having two warnings, the warnings are :
    Note: D:\j2sdk1.4.2_11\bin\CalculateAccnDist.java uses or overrides a deprecated API.
    Note: Recompile with -deprecation for details.
    whan I compile with -deprecation , I found the compiler is giving warning in the reading from keyboard statemant i.e. :
    u = Float.valueOf(in.readLine()).floatValue();
    a =Float.valueOf(in.readLine()).floatValue();
    the error is pointed out at ==> in.readLine
    for this warning i am also not able to run the program.
    Plz help me out, I am a newbie in java.
    Thank You
    Tirthankar

    From the API....
    readLine()
    Deprecated. This method does not properly convert bytes to characters. As of JDK 1.1, the preferred way to read lines of text is via the BufferedReader.readLine() method. Programs that use the DataInputStream class to read lines can be converted to use the BufferedReader class by replacing code of the form:
    DataInputStream d = new DataInputStream(in);
    with:
    BufferedReader d
    = new BufferedReader(new InputStreamReader(in));
    USE BufferedReader INSTEAD OF DataInputStream

  • Really need help on how to write this program some 1 plz help me out here.

    i am new to java and i confused on how to be writing this program.
    i have completed the Part 1 but i am stuck on Part 2 & 3 so it would would be really great if any 1 could help me out on how to write the program.
    Part I
    An algorithm describes how a problem is solved in terms of the actions to be executed, and it specifies the order in which the actions should be executed. An algorithm must be detailed enough so that you can "walk" through the algorithm with test data. This means the algorithm must include all the necessary calculations.
    Here is an algorithm that calculates the cost of a rectangular window. The
    total cost of a window is based on two prices; the cost of the glass plus the cost of the metal frame around the glass. The glass is 50 cents per
    square inch (area) and the metal frame is 75 cents per inch (perimeter).
    The length and width of the window will be entered by the user. The
    output of the program should be the length and width (entered by the user)
    and the total cost of the window.
    FORMULAS:
    area = length times width perimeter = 2 times (length plus width)
    Here is the corresponding algorithm:
    read in the length of the window in inches
    read in the width of the window in inches
    compute the area
    compute the cost of the glass (area times 50 cents)
    compute the perimeter
    compute the cost of the frame (perimeter times 75 cents)
    compute the total cost of the window (cost of glass plus cost of frame)
    display the length, width and total cost
    The next step would be to "desk check" the algorithm. First you would need to make up the "test data". For this algorithm, the test data would involve making up a length and a width, and then calculating the cost of the window based on those values. The results are computing by hand or using a calculator. The results of your test data are always calculated before translating your algorithm into a programming language. Here is an example of the test data for the problem given:
    length = 10
    width = 20
    area = 200, glass cost= 100.00 (area times 50 cents)
    perimeter = 60, frame cost = 45.00 (perimeter times 75 cents)
    total cost =145.00
    Once the test data is chosen, you should "walk" through the algorithm using the test data to see if the algorithm produces the same answers that you obtained from your calculations.
    If the results are the same, then you would begin translating your algorithm into a programming language. If the results are not the same, then you would attempt to find out what part of the algorithm is incorrect and correct it. It is also
    necessary to re-check your hand calculations.
    Each time you revise your algorithm, you should walk through it with your test data again. You keep revising your algorithm until it produces the same answers as your test data.
    ?Now write and submit a Java program that will calculate the cost of a rectangular window according to the algorithm explained. Be sure to prompt for input and label your output.?
    Part II
    Write, compile and execute a Java program that displays the following prompts:
    Enter an integer.
    Enter a second integer
    Enter a third integer.
    Enter a fourth integer.
    After each prompt is displayed, your program should use the nextint method of the Scanner class to accept a number from the keyboard for the displayed
    prompt. After the fourth integer has been entered, your program should calculate and display the average of the four integers and the value of the first integer entered raised to the power of the second integer entered. The average and result of raising to a power should be included in an appropriate messages
    (labels).
    Sample Test Data:
    Set 1: 100 100 100 100
    Set 2: 100 0 100 0
    Be sure to write an algorithm first before attempting to write the Java code. Walk through your algorithm with test data to be sure it works as anticipated.
    Part III
    Repeat Part lI but only calculate the average, not the power. This time, make sure to use the same variable name, number, for each of the four numbers input. Also use the variable sum for the sum of the numbers. (Hint: To do this, you may use the statement sum = sum + number after each number is read.)
    For Part 1 this is what i got
    import java.util.Scanner;
    public class Window
         public static void main(String[] args)
              double length, width, glass_cost, perimeter, frame_cost, area, total;
              Scanner keyboard = new Scanner (System.in);
              System.out.println("Enter the length of the window in inches");
              length = keyboard.nextInt();
              System.out.println("Enter the width of the window in inches");
              width = keyboard.nextInt();
              area = length * width;
              glass_cost = area * .5;
              perimeter = 2 * (length + width);
              frame_cost = perimeter * .75;
              total = glass_cost + frame_cost;
                   System.out.println("The Length of the window is " + length + "inches");
                   System.out.println("The Width of the window is " + length + "inches");
                   System.out.println("The total cost of the window is $ " + total);
         Enter the length of the window in inches
         5
         Enter the width of the window in inches
         8
         The Length of the window is 5.0inches
         The Width of the window is 5.0inches
         The total cost of the window is $ 39.5
    Press any key to continue . . .
    Edited by: Adhi on Feb 24, 2008 10:33 AM

    Adhi wrote:
    i am new to java and i confused on how to be writing this program.
    i have completed the Part 1 but i am stuck on Part 2 & 3 so it would would be really great if any 1 could help me out on how to write the program.Looks like homework to me.
    What have you written so far? Post it.
    Part I
    An algorithm describes how a problem is solved in terms of the actions to be executed, and it specifies the order in which the actions should be executed. An algorithm must be detailed enough so that you can "walk" through the algorithm with test data. This means the algorithm must include all the necessary calculations.
    Here is an algorithm that calculates the cost of a rectangular window. The
    total cost of a window is based on two prices; the cost of the glass plus the cost of the metal frame around the glass. The glass is 50 cents per
    square inch (area) and the metal frame is 75 cents per inch (perimeter).
    The length and width of the window will be entered by the user. The
    output of the program should be the length and width (entered by the user)
    and the total cost of the window.
    FORMULAS:
    area = length times width perimeter = 2 times (length plus width)
    Here is the corresponding algorithm:
    read in the length of the window in inches
    read in the width of the window in inches
    compute the area
    compute the cost of the glass (area times 50 cents)
    compute the perimeter
    compute the cost of the frame (perimeter times 75 cents)
    compute the total cost of the window (cost of glass plus cost of frame)
    display the length, width and total cost
    The next step would be to "desk check" the algorithm. First you would need to make up the "test data". For this algorithm, the test data would involve making up a length and a width, and then calculating the cost of the window based on those values. The results are computing by hand or using a calculator. The results of your test data are always calculated before translating your algorithm into a programming language. Here is an example of the test data for the problem given:
    length = 10
    width = 20
    area = 200, glass cost= 100.00 (area times 50 cents)
    perimeter = 60, frame cost = 45.00 (perimeter times 75 cents)
    total cost =145.00
    Once the test data is chosen, you should "walk" through the algorithm using the test data to see if the algorithm produces the same answers that you obtained from your calculations.
    If the results are the same, then you would begin translating your algorithm into a programming language. If the results are not the same, then you would attempt to find out what part of the algorithm is incorrect and correct it. It is also
    necessary to re-check your hand calculations.
    Each time you revise your algorithm, you should walk through it with your test data again. You keep revising your algorithm until it produces the same answers as your test data.
    &#147;Now write and submit a Java program that will calculate the cost of a rectangular window according to the algorithm explained. Be sure to prompt for input and label your output.&#148;
    Part II
    Write, compile and execute a Java program that displays the following prompts:
    Enter an integer.
    Enter a second integer
    Enter a third integer.
    Enter a fourth integer.
    After each prompt is displayed, your program should use the nextint method of the Scanner class to accept a number from the keyboard for the displayed
    prompt. After the fourth integer has been entered, your program should calculate and display the average of the four integers and the value of the first integer entered raised to the power of the second integer entered. The average and result of raising to a power should be included in an appropriate messages
    (labels).
    Sample Test Data:
    Set 1: 100 100 100 100
    Set 2: 100 0 100 0
    Be sure to write an algorithm first before attempting to write the Java code. Walk through your algorithm with test data to be sure it works as anticipated.So this is where you actually have to do something. My guess is that you've done nothing so far.
    Part III
    Repeat Part lI but only calculate the average, not the power. This time, make sure to use the same variable name, number, for each of the four numbers input. Also use the variable sum for the sum of the numbers. (Hint: To do this, you may use the statement sum = sum + number after each number is read.)Man, this specification writes itself. Sit down and start coding.
    One bit of advice: Nobody here takes kindly to lazy, stupid students who are just trying to con somebody into doing their homework for them. If that's you, better have your asbestos underpants on.
    %

  • Please Help Me Out In Beans

    hai every one ....
    i created three files and saved in respective areas
    new.jsp--->C:\Tomcat 5.0\webapps\ROOT
    one.html--->C:\Tomcat 5.0\webapps\ROOT
    MyBean.java--->C:\Tomcat 5.0\webapps\ROOT
    MyBean.class--->C:\Tomcat 5.0\webapps\ROOT\WEB-INF\classes
    this is the coding part------------------------------------------------------------------------- -------------------------------------------------------------------------------- --------------------------------
    --------------------------------new.jsp---------------------------------------- ---
    <%@page contentType="text/html"%>
    <%@ page import="javax.servlet.*" %>
    <%@ page import="javax.servlet.http.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.util.*" %>
    <%@ page language="java" %>
    <html>
    <body>
    <jsp:useBean id= "mars" scope="session" class="MyBean"/>
    <jsp:setProperty name ="mars" property="cname" value=request.getParameter("cname");/>
    <jsp:setProperty name ="mars" property="cid" value=request.getParameter("cid");/>
    </body>
    </html>
    ---------------------------------one.html-------------------------------------- -
    <html>
    <body bgcolor="667788">
    <form method="post" action="new.jsp">
    <table>
    <tr>
    <td>
    name
    </td>
    <td>
    <input type="text" name="cname">
    </td>
    </tr>
    <tr>
    <td>
    id
    </td>
    <td>
    <input type="text" name="cid">
    </td>
    </tr>
    <tr>
    <td>
    <input type="submit" value="submit">
    </td>
    </tr>
    </table>
    </form>
    </body>
    </html>
    --------------------------------mybean.java------------------------------------ ---
    import java.util.*;
    import java.sql.*;
    import java.io.*;
    public class MyBean implements Serializable
    private String cname;
    private String cid;
    public MyBean()
    cname = "";
    cid = "";
    public String getCname()
    return cname;
    public String getCid()
    return cid;
    public void setCname(String x)
    cname=x;
    public void setCid(String y)
    cid=y;
    public boolean insertDB()
    Connection con = null;
    Statement stmt = null;
    ResultSet rs = null;
    String query = "insert into apply(name,email) values( ?,? )";
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con = DriverManager.getConnection("jdbc:odbc:mysqlDSN","","");
    PreparedStatement pstmt = con.prepareStatement(query);
    pstmt.setString(1,cname);
    pstmt.setString(2,cid);
    int count = pstmt.executeUpdate();
    if(count != 1)
    return false;
    pstmt.close();
    con.close();
    catch(Exception e){
    System.out.println(e.getMessage());
    return false;
    return true;
    im getting this error when i press submit
    --------------------------------ERROR------------------------------------------ --
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: /new.jsp(21,22) equal symbol expected
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.jav a:83)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:402)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:126)
    org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:238)
    org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:188)
    org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:201)
    org.apache.jasper.compiler.ParserController.getPageEncodingForJspSyntax(ParserC ontroller.java:449)
    org.apache.jasper.compiler.ParserController.determineSyntaxAndEncoding(ParserCo ntroller.java:419)
    org.apache.jasper.compiler.ParserController.parse(ParserController.java:203)
    org.apache.jasper.compiler.ParserController.parse(ParserController.java:137)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    note The full stack trace of the root cause is available in the Tomcat logs.
    Apache Tomcat/5.0.18
    ------------------------------------------------->>>><<<<<<<<<<<-----------------------------------------
    please help me out.....
    any kind of help is appriciated
    Rakesh

    For visual beans, check out jsp:plugin
    This will convert you bean to an applet.
    For non-visual beans, check out jsp:useBean

  • PLZ help me out here...URGENT....

    Here, actually i need to request the program to ask the user howmany lines does he wants by asking him to input the number of lines and at the same time write the whole text line that he requested to anew file. PLZ help me out here. So, the program shud display the text files that it read line by line after the user enters the number of lines he wants....DO i need to manipulate the loop or wat???..plz help me out here guys...thanks in advance....
    here is the code...
    import java.io.*;
    class FileReadTest3 {
    public static void main (String[] args) {
         FileReadTest3 f = new FileReadTest3();
    f.readMyFile();
    void readMyFile() {
    DataInputStream dis = null;
    String record = null;
    int recCount = 0;
    int EnterNum = 0;
    System.out.println("Please enter the number of lines: "+EnterNum);
    try {
    File f = new File("aliran.txt");
    FileInputStream fis = new FileInputStream(f);
    BufferedInputStream bis = new BufferedInputStream(fis);
    dis = new DataInputStream(bis);
         for(int recCount = 0; recCount <= 10, recCount++)
    recCount++;
    System.out.println(recCount + ": " + record);
    } catch (IOException e) {
    // catch io errors from FileInputStream or readLine()
    System.out.println("There was a problem for finding the file!" + e.getMessage());
    } finally {
    // if the file opened okay, make sure we close it
    if (dis != null) {
         try {
    dis.close();
         } catch (IOException ioe) {
    }

    1.) Actually perform some user input of any kind. Right now, the user has no choice.
    2.) Read from your file, for that's why you opened it.
    3.) Don't use a DataInputStream unless you know what you're doing. Use a BufferedReader instead if it's simply text.
    4.) Insert a condition check for the number of lines -- yes, you need to manipulate the loop or what.
    P.S.: Multiple posting, no use of code tag, the word "URGENT" in subject, calling people "man" ... this is like wearing a shirt that says "shoot me!".

  • Plz plz help me out

    im trying to find out the selected node in jtree and open a perticular file from that location plz help me out ...

    plz help me out people...
    i want code in java....which is same as pressing a
    down arrow and up arrow on keyboard,,
    means as v press up down left right arrow..and a
    perticular task is performd..as that i want java code
    which will be on running function like keys are
    pressed but actuall on keyboard key is not
    pressed...but code working like that..
    plz help me outLook up the Robot class.
    Also, please make the extra effort to write out words such as "please" and "your". The extra keystrokes won't cost much in the way of time, and the enhanced clarity will be appreciated by those communicating on a forum with international readership.

  • Need help with mac and java

    Hi, I'm trying to develop an application on a Machintosh OSX 10.2.8 machine.
    I'm having a herrendous time trying to get quicktime to work on it.
    I've somehow managed t oget 1.3.1 and QTJava.jar to work together but now i need encryption, however that requires 1.4+
    Now 1.4.1 doesnt work with quicktime
    I've downloaded the latest software upgrades but Ive got no idea how to set up quicktime to work with java 1.4.1
    Now to add on top of that mac reports it can use AES encryption. this is from source code ripped striaght from this website.
    But first and foremost can anyone, annyonee help me out with setting up 1.4.1 with quicktime?
    Thank you

    If you need encryption with Java 1.3.1, download the JCE from either Sun (http://java.sun.com/products/jce/) or Bouncy Castle (http://www.bouncycastle.org/).
    Cheers,
    --Arnout                                                                                                                                                                                                                                                                                                                                                                   

  • Need help in my assignment, Java programing?

    Need help in my assignment, Java programing?
    It is said that there is only one natural number n such that n-1 is a square and
    n + 1 is a cube, that is, n - 1 = x2 and n + 1 = y3 for some natural numbers x and y. Please implement a program in Java.
    plz help!!
    and this is my code
    but I don't no how to finsh it with the right condition!
    plz heelp!!
    and I don't know if it right or wrong!
    PLZ help me!!
    import javax.swing.JOptionPane;
    public class eiman {
    public static void main( String [] args){
    String a,b;
    double n,x,y,z;
    boolean q= true;
    boolean w= false;
    a=JOptionPane.showInputDialog("Please enter a number for n");
    n=Double.parseDouble(a);
    System.out.println(n);
    x=Math.sqrt(n-1);
    y=Math.cbrt(n+1);
    }

    OK I'll bite.
    I assume that this is some kind of assignment.
    What is the program supposed to do?
    1. Figure out the value of N
    2. Given an N determine if it is the correct value
    I would expect #1, but then again this seem to be a strange programming assignment to me.
    // additions followI see by the simulpostings that it is indeed #1.
    So I will give the tried and true advice at the risk of copyright infringement.
    get out a paper and pencil and think about how you would figure this out by hand.
    The structure of a program will emerge from the mists.
    Now that I think about it that advice must be in public domain by now.
    Edited by: johndjr on Oct 14, 2008 3:31 PM
    added additional info

  • Just Starting out with java packages

    Hello,
    I'm a beginner and I'm starting out with java packages.
    I wrote two simple .java files, one test program and one containing a simple class.
    Both files are compiling without errors but When I run the program I get an error NoClassDeffoundError.
    I use the import <package> statement And I think I'm using the CLASSPATH variable correctly.
    SET CLASSPATH=d:\nopol
    path for the .java containing the test class is:
    d:\nopol\utilities \myapp.
    In the test file I use "import utilities.myapp.*.
    I would be very happy if anyone could help me
    Thanks beforehand
    Nopol.

    The test file should be in d:\nopol, if it's not a part of your package utilities.myapp. Everything should be compiled from d:\nopol, the test class with "javac ClassName.java" and the class in the package with "javac utilities/myapp/ClassName.java".
    Your classpath seems fine for now, though. But yes, do add the period there, otherwise you could run into problems later.

  • ITunes producer error 3000 character content of element "file_name" invalid. Can anyone help me out? This happens when i try and submit an epub file, i haven't had this before.

    Can anyone help me out? This happens when i try and submit an epub file, i haven't had this before. "iTunes producer error 3000 character content of element "file_name" invalid."
    This is the full message

    You really need to put your codes between the
    [\code] tags
    see http://forum.java.sun.com/features.jsp#Formatting
    for more infoCode tags might make it look a little better, but there's still too darn much code. We're volunteers, after all. It'd be a lot of work to review all of this stuff. Can you demonstrate your problem with something smaller? Learn out how to do a combo box with just a page or two and then appy that to your big problem. That's how I'd do it. - MOD

  • Problems 'hosting out' of java

    Hi,
    JDeveloper version 9.0.3.1035
    Windows NT
    I am having problems 'hosting out' of java. The dos command shell is opened but little else happens.
    I am trying to run a batch file called test.bat that has contents: -
    notepad.exe
    My code is : -
    public static void host(String[] cmd, boolean wait)
    throws IOException, InterruptedException
    //Run jobs asynchronously
    Runtime rt = Runtime.getRuntime();
    for (int i=0;i<cmd.length;i++)
    logger.debug("Command being run is : " + cmd);
    Process process = rt.exec(cmd);
    if (wait)
    logger.debug("Waiting for process to finish.");
    process.waitFor();
    logger.debug("Process exit value : " + Integer.toString(process.exitValue()));
    The debug output is :-
    Command being run is : "C:\test.bat"
    Waiting for process to finish.
    Process exit value : -1073741510
    Thanks,
    Paul.

    Hi Guys
    After attempts was able to install with license page being displayed in English. H/ever since then I have had a bit of a problem trying to run Secunia Software Inspector which requires the use of Java, The problems which I am experiencing are as follows:
    When the program starts I receive the following
    quote
    Java(TM) Plug-in Fail Error
    Several Java Machines Running in the same process caused an error
    Your Systm does not appear to have sun java installed. Sun Java is required for the Secunia Software Inspector to work. You should consider downloading the latest version of Sun Java from http://www.java.com/ before continuing.
    unquote
    Eventually the program closes resulting the following message appearing on desktop
    quote
    ieplore.exe application error, the instruction at 0x2e746e65 referenced at 0x2e746e65. The memory could not be read.
    unquote
    The bottom line is that I have Mozilla Firefox browser installed and when I run the program using this browser there is absolutely no problem. Runs like a dream. Because of this factor I am wondering why there is so much problem running it using IE
    Any help appreciated.
    xonk 123

  • Help Needed on a java program

    I am very new to java and our teacher has given us a program
    that i am having quite a bit of trouble with. I was wondering if anyone could help me out.
    This is the program which i have bolded.
    {You will write a Java class to play the TicTacToe game. This program will have at least two data members, one for the status of the board and one to keep track of whose turn it is. All data members must be private. You will create a user interface that allows client code to play the game.
    The user interface must include:
    � Boolean xPlay(int num) which allows x to play in the square labeled by num. This function will return true if that play caused the game to end and false otherwise.
    � Boolean oPlay(int num) which allows o to play in the square labeled by num. This function will return true if that play caused the game to end and false otherwise.
    � Boolean isEmpty(int num) will check to see if the square labeled by num is empty.
    � Void display() which displays the current game status to the screen.
    � Char whoWon() which will return X, O, or C depending on the outcome of the game.
    � You must not allow the same player to play twice in a row. Should the client code attempt to, xPlay or oPlay should print an error and do nothing else.
    � Also calling whoWon when the game is not over should produce an error message and return a character other than X, O, or C.
    � Client code for the moment is up to you. Assume you have two human players that can enter the number of the square in which they want to play.
    Verifying user input WILL be done by the client code.}

    This is the program which i have bolded.Hmmm, that doesn't look like any programming language I've ever seen. I guess you have the wrong forum here, because it isn't Java.
    That looks like a natural-language programming language that directly understands a homework assignment. Either that, or you really did just post the assignment. You wouldn't have done that though, right?

Maybe you are looking for

  • Mac OS 10.5.6 Installer Disc Utility

    Can anyone show me how to get to the Utility menu on a fresh Install of Mac 10.5.6 using the Installer disc? I need to create a RAID volume before I install the OS onto my new Mac Pro. On the RAID Utility User Manual, it said once we started with the

  • Messages stuck in outbox when using "Send to Mail recipient" and outlook is closed

    A user who uses RPC over https all the time on his desktop in the office. In general he has no problem to send/receive emails. But when he tried to send a File through right click - > send to -> Mail recipient , New Email window opens and He changes

  • XCode 4.02 data model editor -- How do I delete an entity?

    How does one delete an entity from the data model editor in XCode 4.02? I have searched for the past hour for a little "minus" button hidding somewhere on the screen.

  • TANN item quantity should come in grey mode in sales order

    Hi, Requirement is in a sales order for TANN item category the quantity should come in non editable (GREY) mode.For this as per my search in Google and forums i got the suggestion to use the "USEREXIT_FIELD_MODIFICATION in MV45AFZZ".But my technical

  • ORA-01722: Nombre non valide

    Hi community, so here's my problem: I tried to create a cube with pentaho workbench ( Business Intelligence tool) unfortunately the cube doesn't appear. The error is : Caused by: java.sql.SQLException: ORA-01722: Nombre non valide ( unvalid number)