Please help on Java MATH.

Hi,
As part of my application development i am trying to do the below operation and its giving wrong/incorrect output. Can anyone help me please.
String a = "3";
String b = "3";
double rtbAmount = Double.parseDouble(a) ;
double fiAmount = Double.parseDouble(b) ;
double newAmount = (rtbAmount * fiAmount) / 100.00 ;
System.out.println("newAmount "+newAmount);
System.out.println("newAmount "+newAmount*10);
Here the expected output is 0.09 and 0.9 but it is giving 0.09 and 0.8999999999999999.
Can anybody tell me the reason for the same and the workaround.

http://java.sun.com/developer/JDCTechTips/2003/tt0204.html#2
http://docs.sun.com/source/806-3568/ncg_goldberg.html
http://mindprod.com/jgloss/floatingpoint.html

Similar Messages

  • *****Please Help Simple Java Corba Problem*****

    This is probably a really simple one but I am very cheased off about it.
    I run my applications on a Win XP pro OS, and when I go to type in nameserv it gives me the following error I hava downloaded and installed JDK 1.4.1. I also have the JRE, And jbuilder personal edition ver 8.....And J2RE 1.4.1
    C:\Documents and Settings\Ash>nameserv
    Exception in thread "main" java.lang.NoClassDefFoundError: java/util/HashSet
    at com.inprise.vbroker.orb.ORB.<init>(ORB.java:81)
    at org.omg.CORBA.ORB.create_impl(ORB.java)
    at org.omg.CORBA.ORB.init(ORB.java)
    at com.inprise.vbroker.naming.ExtFactory.main(ExtFactory.java:126)
    my classpath looks like this
    .;C:\VisualCafePDETrial\BIN\COMPONENTS\SYMBEANS.JAR;C:\VisualCafePDETrial\JAVA\LIB\CLASSES.ZIP;C:\VisualCafePDETrial\JAVA\LIB;C:\BES\bin;C:\j2sdk1.4.1\lib\tools.jar;.;
    and my path is
    C:\VisualCafePDETrial\BIN;C:\VisualCafePDETrial\JAVA\BIN;C:\BES\binC:\j2sdk1.4.1\lib\tools.jar;.;
    what on earth am I doing wrong ??
    Also when I goto compile any java program it comes up with the following
    C:\DOCprac\Prac5\bank_naming>vbmake
    Building the bank_agent example ...
    Exception in thread "main" java.lang.ClassCastException
    at com.visigenic.vbroker.tools.idl2java.main(idl2java.java:30)
    Symantec Java! JustInTime Compiler Version 3.00.021(i) for JDK 1.1.x (TRIAL VER)
    Copyright (C) 1996-98 Symantec Corporation
    compiling: Client.java
    Client.java:2: Package org.omg.CORBA not found in import.
    import org.omg.CORBA.*;
    ^
    Client.java:3: Package org.omg.CosNaming not found in import.
    import org.omg.CosNaming.*;
    ^
    2 errors
    Symantec Java! JustInTime Compiler Version 3.00.021(i) for JDK 1.1.x (TRIAL VER)
    Please help I am really desperate to sort this one out. Can you give me some detailed info on how I would do this.>>>Thanx in advance

    You have 2 sets of errors, at least.
    The first is : Exception in thread "main" java.lang.NoClassDefFoundError: java/util/HashSet which is that you have not imported the class for hashset.
    The second is that the import of the jars is probably wrong, hard to say without seeing code.

  • Help on java math parser

    hi there,
    can anyone pls tell me where i can get some help on 'java programing for math parser'? if the answer is yes then pls tell me where.

    I don't know of a parser that's part of the standard java library, but surely there must be tons of stuff findable with Google. Have you tried to google this?

  • Someone PLEASE help! Java SE 6 runtime -- I downloaded Java and Illustrator still will not launch!!!!

    I purchased this CS6 product and have been unable to use it. What's the problem with the error? I know I'm not the only one who has experienced this. I just got off the phone with Apple and they helped me install Java but Illustrator still will not launch. I'm a designer and have work to do. Someone, please help! Thank you.

    Hi,
    If you are on MAC 10.7 or 10.8. Try the following steps:
    Step 1.  Download Apple Java 2013-002 for OS X 10.7 and 10.8 from location:     http://www.macupdate.com/app/mac/39490/apple-java
    Step 2.  Install this JAVA version using the DMG file.
                                    >>> Once the installation gets completed a “Software Update” dialog gets displayed which says that “To open ‘Adobe Illustrator CS6’ you need a JAVA SE 6 runtime…..”
    Step 3.  Click on the “Install” button on the “Software Update” dialog
    Step 4.  Launch AI
    Let me know the end results.
    With Best Regards,
    Raghuveer

  • Please help NonRegisteringDriver.java:395

    i am trying too connecting jsp with mysql on linux operrating system
    some time back it was it was conneting perfecctly i am using mysqlconnector for the connection
    please can you help what can be the problem exception i am getting is
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: javax.servlet.ServletException: java.sql.SQLException: Unable to connect to any hosts due to exception: java.net.ConnectException: Connection refused
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:565)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:414)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    javax.servlet.ServletException: java.sql.SQLException: Unable to connect to any hosts due to exception: java.net.ConnectException: Connection refused
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:855)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:784)
         org.apache.jsp.chklogin_jsp._jspService(chklogin_jsp.java:121)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:390)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.sql.SQLException: Unable to connect to any hosts due to exception: java.net.ConnectException: Connection refused
         com.mysql.jdbc.Connection.createNewIO(Connection.java:1690)
         com.mysql.jdbc.Connection.<init>(Connection.java:427)
         com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:395)
         java.sql.DriverManager.getConnection(DriverManager.java:582)
         java.sql.DriverManager.getConnection(DriverManager.java:207)
         org.apache.jsp.chklogin_jsp._jspService(chklogin_jsp.java:63)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:390)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)before the Error start coming i have made a small change in my IP address can it affect the connectivity.

    thanks for you reply .....
    well i have resolved the thing with help of your help
    i had changed the IP of the machine as i was using localhost to connect to mysql
    now it was not connecting with the "localhost" tag my pages are opening with tomacat is running with
    localhost:8080/webapplication/
    but for mysql now i have changed the DBURL to new IP Address instead of localhost
    and its working
    Can you tell any more about this ..

  • Please help on java.util.regex.*

    Hi all,
    My RTF file looks like this:
    Project Num\tab N/A
    \par Project Name\tab Hook-up Installation and Service
    \par
    My intension is to read the file until the \tab and store Project Num as a string into a
    variable. Similarly read until \par and store the value of Project Num into another variable.
    So that i can use those variables further in my program.
    I used java.util.regex.* package for this purpose. I could successfully split the sentence whenever it sees \tab and \par but don't know how to get the text before and after the delimeters and store them into variables.
    The code which i wrote is:
    import java.util.regex.*;
    import java.io.*;
    import java.nio.*;
    import java.nio.charset.*;
    import java.nio.channels.*;
    public class RegexDemo{
    public static void main(String[] args){
    // Create a pattern to match breaks
    Pattern p = Pattern.compile("\\\\.[a-z][a-z]",Pattern.DOTALL);
    try{
    File file = new File("sample.rtf");
    FileInputStream fis = new FileInputStream(file);
    FileChannel fc = fis.getChannel();
    // Get a CharBuffer from the source file
    ByteBuffer bb = fc.map(FileChannel.MapMode.READ_ONLY, 0, (int)fc.size());
    Charset cs = Charset.forName("8859_1");
    CharsetDecoder cd = cs.newDecoder();
    CharBuffer cb = cd.decode(bb);
    // Run some matches
    Matcher m = p.matcher(cb);
    while (m.find())
    System.out.println("Found comment: "+m.group());
    }catch(Exception e){
         e.printStackTrace();
    Please somebody help me in this regard. I have spent lot of time searching the forums but couldn't find any solution.
    Thanks in advance
    rnallu

    Just put target inside parenthesis with delimiters at boundaries.
    Example: "(\\w+)\\t(\\d)\\s" will match occurrences of a word followed with a tab char then a digit followed with a whitespace. If target string matches pattern then m.group(1) contains the word and m.group(2) contains the digit.

  • Please help with Java program

    Errors driving me crazy! although compiles fine
    I am working on a project for an online class - I am teaching myself really! My last assignment I cannot get to work. I had a friend who "knows" what he is doing help me. Well that didn't work out too well, my class is a beginner and he put stuff in that I never used yet. I am using Jgrasp and Eclipse. I really am trying but, there really is no teacher with this online class. I can't get questions answered in time and stuff goes past due. I am getting this error:
    Exception in thread "main" java.lang.NullPointerException
    at java.io.Reader.<init>(Reader.java:61)
    at java.io.InputStreamReader.<init>(InputStreamReader .java:55)
    at java.util.Scanner.<init>(Scanner.java:590)
    at ttest.main(ttest.java:54)
    ----jGRASP wedge2: exit code for process is 1.
    ----jGRASP: operation complete.
    This is my code:
    import java.util.*;
    import java.io.*;
    public class ttest
    static Scanner console = new Scanner(System.in);
    public static void main(String[] args)throws IOException
    FileInputStream fin = null; // input file reference
    PrintStream floser = null; // output file references
    PrintStream fwinner = null;
    Scanner rs; // record scanner
    Scanner ls; // line scanner
    String inputrec; // full record buffer
    int wins; // data read from each record
    int losses;
    double pctg;
    String team;
    String best = null; // track best/worst team(s)
    String worst = null;
    double worst_pctg = 2.0; // track best/worst pctgs
    double best_pctg = -1.0;
    int winner_count = 0; // counters for winning/losing records
    int loser_count = 0;
    // should check args.length and if not == 1 generate error
    try
    Scanner inFile = new Scanner(new FileReader("football.txt"));
    catch( FileNotFoundException e )
    System.exit( 1 );
    try
    floser = new PrintStream( new FileOutputStream( "loser.txt" ) );
    fwinner = new PrintStream( new FileOutputStream( "winner.txt" ) );
    catch( FileNotFoundException e )
    System.out.printf( "unable to open an output file: %s\n", e.toString() );
    System.exit( 1 );
    try
    rs = new Scanner( fin );
    while( rs.hasNext( ) )
    inputrec = rs.nextLine( ); /* read next line */
    ls = new Scanner( inputrec ); /* prevents stumble if record has more than expected */
    team = ls.next( );
    wins = ls.nextInt();
    losses = ls.nextInt();
    if( wins + losses > 0 )
    pctg = ((double) wins)/(wins + losses);
    else
    pctg = 0.0;
    if( pctg > .5 )
    if( pctg > best_pctg )
    best_pctg = pctg;
    best = team;
    else
    if( pctg == best_pctg )
    best += ", " + team;
    fwinner.printf( "%10s %2d %2d %5.3f\n", team, wins, losses, pctg );
    winner_count++;
    else
    if( pctg < worst_pctg )
    worst_pctg = pctg;
    worst = team;
    else
    if( pctg == worst_pctg )
    worst += ", " + team;
    floser.printf( "%10s %2d %2d %5.3f\n", team, wins, losses, pctg );
    loser_count++;
    fin.close( );
    floser.close( );
    fwinner.close( );
    catch( IOException e ) {
    System.out.printf( "I/O error: %s\n", e.toString() );
    System.exit( 1 );
    System.out.printf( "%d teams have winning records; %d teams have losing records\n", winner_count, loser_count );
    System.out.printf( "Team(s) with best percentage: %5.3f %s\n", best_pctg, best );
    System.out.printf( "Team(s) with worst percentage: %5.3f %s\n", worst_pctg, worst );
    The assignment is:
    Create a Java program to read in an unknown number of lines from a data file. You will need to create the data file. The contents of the file can be found at the bottom of this document. This file contains a football team's name, the number of games they have won, and the number of games they have lost.
    Your program should accomplish the following tasks:
    1. Process all data until it reaches the end-of-file. Calculate the win percentage for each team.
    2. Output to a file ("top.txt") a listing of all teams with a win percentage greater than .500. This file should contain the team name and the win percentage.
    3. Output to a file ("bottom.txt") a listing of all teams with a win percentage of .500 or lower. This file should contain the team name and the win percentage.
    4. Count and print to the screen the number of teams with a record greater then .500 and the number of teams with a record of .500 and below, each appropriately labeled.
    5. Output in a message box: the team with the highest win percentage and the team with the lowest win percentage, each appropriately labeled. If there is a tie for the highest win percentage or a tie for the lowest win percentage, you must output all of the teams.
    Dallas 5 2
    Philadelphia 4 3
    Washington 3 4
    NY_Giants 3 4
    Minnesota 6 1
    Green_Bay 3 4

    import java.util.*;
    import java.io.*;
    public class ttest
    static Scanner console = new Scanner(System.in);
    public static void main(String[] args)throws IOException
    FileInputStream fin = null; // input file reference
    PrintStream floser = null; // output file references
    PrintStream fwinner = null;
    Scanner rs; // record scanner
    Scanner ls; // line scanner
    String inputrec; // full record buffer
    int wins; // data read from each record
    int losses;
    double pctg;
    String team;
    String best = null; // track best/worst team(s)
    String worst = null;
    double worst_pctg = 2.0; // track best/worst pctgs
    double best_pctg = -1.0;
    int winner_count = 0; // counters for winning/losing records
    int loser_count = 0;
    // should check args.length and if not == 1 generate error
    try
    Scanner inFile = new Scanner(new FileReader("football.txt"));
    catch( FileNotFoundException e )
    System.exit( 1 );
    try
    floser = new PrintStream( new FileOutputStream( "loser.txt" ) );
    fwinner = new PrintStream( new FileOutputStream( "winner.txt" ) );
    catch( FileNotFoundException e )
    System.out.printf( "unable to open an output file: %s\n", e.toString() );
    System.exit( 1 );
    try
    rs = new Scanner( fin );
    while( rs.hasNext( ) )
    inputrec = rs.nextLine( ); /* read next line */
    ls = new Scanner( inputrec ); /* prevents stumble if record has more than expected */
    team = ls.next( );
    wins = ls.nextInt();
    losses = ls.nextInt();
    if( wins + losses > 0 )
    pctg = ((double) wins)/(wins + losses);
    else
    pctg = 0.0;
    if( pctg > .5 )
    if( pctg > best_pctg )
    best_pctg = pctg;
    best = team;
    else
    if( pctg == best_pctg )
    best += ", " + team;
    fwinner.printf( "%10s %2d %2d %5.3f\n", team, wins, losses, pctg );
    winner_count++;
    else
    if( pctg < worst_pctg )
    worst_pctg = pctg;
    worst = team;
    else
    if( pctg == worst_pctg )
    worst += ", " + team;
    floser.printf( "%10s %2d %2d %5.3f\n", team, wins, losses, pctg );
    loser_count++;
    fin.close( );
    floser.close( );
    fwinner.close( );
    catch( IOException e ) {
    System.out.printf( "I/O error: %s\n", e.toString() );
    System.exit( 1 );
    System.out.printf( "%d teams have winning records; %d teams have losing records\n", winner_count, loser_count );
    System.out.printf( "Team(s) with best percentage: %5.3f %s\n", best_pctg, best );
    System.out.printf( "Team(s) with worst percentage: %5.3f %s\n", worst_pctg, worst );
    }

  • Please help! java.text.ParseException:

    Hi everybody
    why am i gatting java.text.ParseException: Unparseable date: "Jul 21, 2002"
    String s = "yyyy MM dd";
    SimpleDateFormat ff = new SimpleDateFormat(s);
    java.util.Date mm = ff.parse( DateFormat.getDateInstance().format(new java.util.Date())) ;
    System.out.println(mm.toString()); //Exception is thrown
    thanks in advence

    I didn't take time to look through your code too closely but here is some code that might help. The pullDate method reads a string from a JTextField (textField) and tries to return a Date. If it can't format it then it returns null. It tries to format the text based on the formats listed. If it can't format the text using one then it tries the next until it runs out of them. Change the formats to whatever you like. Good luck.
    Jeff
    private static DateFormatter[] altFormats = {
         new DateFormatter(new SimpleDateFormat("M/d/yy")),
         new DateFormatter(new SimpleDateFormat("MMddyy")),
         new DateFormatter(new SimpleDateFormat("MMM d, yy")),
         new DateFormatter(new SimpleDateFormat("MMM d yy")),
         new DateFormatter(new SimpleDateFormat("d MMM yy"))};
    private Date pullDate() {
         String text = textField.getText();
         Date d = null;
         int i = 0;
         while(d==null && i<altFormats.length) {
              try {
                   d = (Date)(altFormats[i++].stringToValue(text));
              } catch (ParseException e) {}                    
         return d;

  • Please help,weird Java problems,err msg

    Hi there,
    everytime i go onto a website that activates Java i get problems.Crashing or when i click on an e-mail address on a website or contact address i get loads of uncontrolable windows appear.You have to wait for then to stop,then close them one by one(quite a while)or reboot.
    This is the message i get when it crashes:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D06EB9B
    Function=Java_sun_awt_windows_WColor_getDefaultColor+0x5952
    Library=C:\Program Files\Java\j2re1.4.1_01\bin\awt.dll
    Current Java thread:
         at sun.awt.windows.WToolkit.eventLoop(Native Method)
         at sun.awt.windows.WToolkit.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Dynamic libraries:
    0x00400000 - 0x00412000      C:\Program Files\Internet Explorer\iexplore.exe
    0x77F80000 - 0x77FFB000      C:\WINNT\System32\ntdll.dll
    0x77E80000 - 0x77F35000      C:\WINNT\system32\KERNEL32.dll
    0x77E10000 - 0x77E74000      C:\WINNT\system32\USER32.dll
    0x77F40000 - 0x77F7C000      C:\WINNT\system32\GDI32.DLL
    0x77C70000 - 0x77CBA000      C:\WINNT\system32\SHLWAPI.dll
    0x77DB0000 - 0x77E0B000      C:\WINNT\system32\ADVAPI32.DLL
    0x77D40000 - 0x77DB0000      C:\WINNT\system32\RPCRT4.DLL
    0x732E0000 - 0x73300000      C:\WINNT\system32\shim.dll
    0x76C80000 - 0x76D90000      C:\WINNT\system32\shdocvw.dll
    0x77B50000 - 0x77BD9000      C:\WINNT\system32\COMCTL32.DLL
    0x782F0000 - 0x78532000      C:\WINNT\system32\SHELL32.DLL
    0x77A50000 - 0x77B46000      C:\WINNT\system32\ole32.dll
    0x03000000 - 0x03013000      C:\PROGRA~1\Logitech\MOUSEW~1\SYSTEM\ccmsghk.dll
    0x76E10000 - 0x76ED7000      C:\WINNT\System32\BROWSEUI.dll
    0x775A0000 - 0x77625000      C:\WINNT\System32\CLBCATQ.DLL
    0x779B0000 - 0x77A4B000      C:\WINNT\system32\OLEAUT32.dll
    0x78000000 - 0x78046000      C:\WINNT\system32\MSVCRT.dll
    0x76EE0000 - 0x76EEB000      C:\WINNT\System32\browselc.dll
    0x76C00000 - 0x76C74000      C:\WINNT\system32\WININET.DLL
    0x77840000 - 0x7787C000      C:\WINNT\System32\cscui.dll
    0x770C0000 - 0x770E3000      C:\WINNT\System32\CSCDLL.DLL
    0x10000000 - 0x10015000      C:\WINNT\system32\SSSensor.dll
    0x00EA0000 - 0x00EE1000      C:\Program Files\Acceleration Software\StopSign\webcbrowse.dll
    0x77820000 - 0x77827000      C:\WINNT\system32\VERSION.dll
    0x759B0000 - 0x759B6000      C:\WINNT\system32\LZ32.DLL
    0x01080000 - 0x010BC000      C:\Program Files\MediaLoads Enhanced\ME1.DLL
    0x77640000 - 0x776B2000      C:\WINNT\system32\urlmon.dll
    0x77570000 - 0x775A0000      C:\WINNT\System32\WINMM.dll
    0x75050000 - 0x75058000      C:\WINNT\System32\WSOCK32.dll
    0x75030000 - 0x75043000      C:\WINNT\System32\WS2_32.DLL
    0x75020000 - 0x75028000      C:\WINNT\System32\WS2HELP.DLL
    0x77880000 - 0x7790D000      C:\WINNT\System32\SETUPAPI.dll
    0x77C10000 - 0x77C6D000      C:\WINNT\System32\USERENV.DLL
    0x010D0000 - 0x010DB000      C:\Program Files\CommonName\Toolbar\BabeIE.dll
    0x76D90000 - 0x76DE3000      C:\WINNT\system32\shdoclc.dll
    0x75D50000 - 0x75DD2000      C:\WINNT\System32\mlang.dll
    0x01230000 - 0x01238000      C:\PROGRA~1\Logitech\MOUSEW~1\SYSTEM\LgMousHk.dll
    0x749A0000 - 0x749C4000      C:\WINNT\System32\asycfilt.dll
    0x74FD0000 - 0x74FEF000      C:\WINNT\system32\msafd.dll
    0x75010000 - 0x75017000      C:\WINNT\System32\wshtcpip.dll
    0x774E0000 - 0x77512000      C:\WINNT\System32\RASAPI32.DLL
    0x774C0000 - 0x774D1000      C:\WINNT\System32\RASMAN.DLL
    0x77530000 - 0x77552000      C:\WINNT\System32\TAPI32.DLL
    0x77830000 - 0x7783E000      C:\WINNT\System32\RTUTILS.DLL
    0x75AB0000 - 0x75AB5000      C:\WINNT\System32\sensapi.dll
    0x75170000 - 0x751BF000      C:\WINNT\System32\netapi32.dll
    0x77BE0000 - 0x77BEF000      C:\WINNT\System32\SECUR32.DLL
    0x751C0000 - 0x751C6000      C:\WINNT\System32\NETRAP.DLL
    0x75150000 - 0x75160000      C:\WINNT\System32\SAMLIB.DLL
    0x77950000 - 0x77979000      C:\WINNT\system32\WLDAP32.DLL
    0x77980000 - 0x779A4000      C:\WINNT\System32\DNSAPI.DLL
    0x785C0000 - 0x785CC000      C:\WINNT\System32\rnr20.dll
    0x77340000 - 0x77353000      C:\WINNT\System32\iphlpapi.dll
    0x77520000 - 0x77525000      C:\WINNT\System32\ICMP.DLL
    0x77320000 - 0x77337000      C:\WINNT\System32\MPRAPI.DLL
    0x773B0000 - 0x773DE000      C:\WINNT\System32\ACTIVEDS.DLL
    0x77380000 - 0x773A2000      C:\WINNT\System32\ADSLDPC.DLL
    0x77360000 - 0x77379000      C:\WINNT\System32\DHCPCSVC.DLL
    0x777E0000 - 0x777E8000      C:\WINNT\System32\winrnr.dll
    0x777F0000 - 0x777F5000      C:\WINNT\System32\rasadhlp.dll
    0x75AF0000 - 0x75D30000      C:\WINNT\System32\mshtml.dll
    0x75E60000 - 0x75E7A000      C:\WINNT\System32\IMM32.DLL
    0x75DE0000 - 0x75E57000      c:\winnt\system32\jscript.dll
    0x77560000 - 0x77569000      C:\WINNT\System32\wdmaud.drv
    0x77400000 - 0x77408000      C:\WINNT\System32\msacm32.drv
    0x77410000 - 0x77423000      C:\WINNT\System32\MSACM32.dll
    0x75D40000 - 0x75D46000      C:\WINNT\System32\msadp32.acm
    0x75AC0000 - 0x75AE8000      C:\WINNT\System32\MSLS31.DLL
    0x75A30000 - 0x75A9B000      c:\winnt\system32\vbscript.dll
    0x75AA0000 - 0x75AA8000      C:\WINNT\System32\SHFOLDER.DLL
    0x02380000 - 0x0239B000      C:\WINNT\System32\iuctl.dll
    0x74CB0000 - 0x74CD6000      C:\WINNT\System32\ADVPACK.dll
    0x6E800000 - 0x6E81A000      C:\WINNT\System32\iepeers.dll
    0x64BE0000 - 0x64C08000      C:\WINNT\System32\mmefxe.ocx
    0x6BE10000 - 0x6BE39000      C:\WINNT\System32\mmutilse.dll
    0x727F0000 - 0x727F9000      C:\WINNT\System32\ddrawex.dll
    0x51000000 - 0x51044000      C:\WINNT\System32\DDRAW.dll
    0x728A0000 - 0x728A6000      C:\WINNT\System32\DCIMAN32.dll
    0x6E490000 - 0x6E49A000      C:\WINNT\System32\imgutil.dll
    0x69BF0000 - 0x69C0D000      C:\WINNT\System32\NTMARTA.DLL
    0x77800000 - 0x7781D000      C:\WINNT\System32\WINSPOOL.DRV
    0x77BF0000 - 0x77C01000      C:\WINNT\System32\NTDSAPI.dll
    0x76930000 - 0x7695B000      C:\WINNT\System32\wintrust.dll
    0x77440000 - 0x774B5000      C:\WINNT\System32\CRYPT32.dll
    0x77430000 - 0x77440000      C:\WINNT\System32\MSASN1.DLL
    0x77920000 - 0x77943000      C:\WINNT\system32\IMAGEHLP.dll
    0x7CA00000 - 0x7CA23000      C:\WINNT\System32\rsaenh.dll
    0x6A830000 - 0x6A8AF000      C:\WINNT\System32\msxml.dll
    0x6B3D0000 - 0x6B40C000      C:\WINNT\System32\mshtmled.dll
    0x78160000 - 0x78186000      C:\WINNT\System32\schannel.dll
    0x67400000 - 0x67427000      C:\WINNT\System32\dssenh.dll
    0x75230000 - 0x75245000      C:\WINNT\System32\ACTXPRXY.DLL
    0x64AD0000 - 0x64AE8000      C:\WINNT\System32\plugin.ocx
    0x76710000 - 0x76719000      C:\WINNT\System32\LINKINFO.DLL
    0x76FA0000 - 0x76FAF000      C:\WINNT\System32\ntshrui.dll
    0x773E0000 - 0x773F2000      C:\WINNT\System32\ATL.DLL
    0x1F9C0000 - 0x1FA36000      C:\Program Files\Common Files\System\Ole DB\oledb32.dll
    0x6B740000 - 0x6B746000      C:\WINNT\System32\MSDART32.DLL
    0x1FA40000 - 0x1FA50000      C:\Program Files\Common Files\System\Ole DB\OLEDB32R.DLL
    0x6D7E0000 - 0x6D7EF000      C:\Program Files\Java\j2re1.4.1_01\bin\npjpi141_01.dll
    0x6D740000 - 0x6D752000      C:\Program Files\Java\j2re1.4.1_01\bin\jpiexp32.dll
    0x6D780000 - 0x6D794000      C:\Program Files\Java\j2re1.4.1_01\bin\jpishare.dll
    0x6D330000 - 0x6D45A000      C:\PROGRA~1\Java\J2RE14~1.1_0\bin\client\jvm.dll
    0x6D1D0000 - 0x6D1D7000      C:\PROGRA~1\Java\J2RE14~1.1_0\bin\hpi.dll
    0x6D300000 - 0x6D30D000      C:\PROGRA~1\Java\J2RE14~1.1_0\bin\verify.dll
    0x6D210000 - 0x6D229000      C:\PROGRA~1\Java\J2RE14~1.1_0\bin\java.dll
    0x6D320000 - 0x6D32D000      C:\PROGRA~1\Java\J2RE14~1.1_0\bin\zip.dll
    0x6D000000 - 0x6D0FB000      C:\Program Files\Java\j2re1.4.1_01\bin\awt.dll
    0x6D180000 - 0x6D1D0000      C:\Program Files\Java\j2re1.4.1_01\bin\fontmanager.dll
    0x72D90000 - 0x72E03000      C:\WINNT\System32\D3DIM.DLL
    0x6D6E0000 - 0x6D6F1000      C:\Program Files\Java\j2re1.4.1_01\bin\jpicom32.dll
    0x6D2D0000 - 0x6D2DE000      C:\Program Files\Java\j2re1.4.1_01\bin\net.dll
    0x6D130000 - 0x6D152000      C:\Program Files\Java\j2re1.4.1_01\bin\dcpr.dll
    0x72A00000 - 0x72A2D000      C:\WINNT\system32\DBGHELP.dll
    0x690A0000 - 0x690AB000      C:\WINNT\System32\PSAPI.DLL
    Local Time = Wed Oct 23 01:46:02 2002
    Elapsed Time = 829
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.1_01-b01 mixed mode)
    Any help will stop me pulling my hair out
    Cheers

    I've tried reinstalling,but same probs.it seems like whenever the Java gets activated something fights against it untill it eventully freezes or crashes.
    I use this for work and the most annoying thing is when i click on a contact or e-mail hundreds of windows take over my computer.they do stop in the end though,but......
    cheers for your help

  • Please help with java.text.MessageFormat...

    Hi all
    I'm reasonably new to java and have been struggling with this one for a while. I wonder if anyone can help?
    The following code...
    Object[] testArgs = {new Long(1273), "MyDisk"};
    MessageFormat form = new MessageFormat(
    "The disk \"{1}\" contains {0} file(s).");
    System.out.println(form.format(testArgs));
    ...gives the following output...
    The disk "MyDisk" contains 1,273 file(s).
    I simply want to get rid of the comma, so that the output becomes...
    The disk "MyDisk" contains 1273 file(s).
    Any ideas? Many thanks for reading my thread and for any help you may be able to offer!
    Kind Regards
    Jon

    contains {0,number,#} file(s).

  • Please help resolve this math probelm in labview?

    I try to use fft and ifft to make a filter, to remove some frequencies and then convert to time domain. I have problems to do it. To make it simple I attach a lv 2009 example, which has two component 10 hz and 15 hz input.
    Can you help me in removing 15 hz after FFT and then convert with IFFT. Just to check if only 10 hZ signal left after IFFT.
    If you can give me an example like this, my problem will be solved.
    Thanks
    Liming
    Attachments:
    IFFT_FFT_LV2009[1].vi ‏50 KB

    detech wrote:
    I bough NI cards, labview, and paid service. Can I post my question and get help?
    Did my question answered so far?
    The software boards are NI product users helping other users. NI employees do monitor and often answer your questions, but there is no guarantee of service when using the discussion forums.
    If you have a specific question that requires a timely response, you can formally enter a help request where an NI engineer will respond and take responsibility for answering your question(s).
    NI employees can be identified on the discussion boards by the blue color of the bars below the user name. You and I (users) are in gold. You will see various shades of blue and gold that indicate the number and quality of the answers provided by that user.
    To ask an NI for support, see this web page:
    http://sine.ni.com/apps/utf8/nicc.call_me
    Since strong@ni is an NI employee and has attempted to answer your question, I would suggest that you continue working on your problem here in this thread.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Please help me with math ...

    I shoot 3072x2048 (3:2 ratio?) and it's great for A3+ paper at 13x19 inches. When printing on 10x12 inch paper, I'm losing almost an inch on top and on the bottom on the long side. I have a calculator but don't know what to do with it. What ratio/pixel count/crop on the 3072x2048 do I need in order to fill out the 10x12 paper better? TIA for any assistance.

    Don't worry about the math. In both PS and LR you can set the crop factor to a ratio -- 8x10, 14x22, whatever. This will crop your photo to the proper proportions for whatever paper you want to use. Just remember to not set the crop to any particular units, just a ratio.

  • Re: need help !!!!! please help us java gurus

    Hi there
    I have to agree with MikeOC
    this is awful written
    what have you done?
    It is almost impossible to follow the code
    You should use this code as an obfuscator !!!!
    Any way to solve this problem I would need to be able to run it
    but I don't have the oracle db
    and I don't whant to mess around in this code
    you just don't know what's going to happen
    Sorry
    /Markus

    wow that was a headache goin through that code but it was fun. Well it seems like that you are overriding your constructor method itemname (code at line 3610), instead i will suggest, overload the constructor method in the first place, the value that u pass as argument int counter, initialize it to null when u call the class and from your main class, pass through arguments like this
    JFrame frr;
    frr = new itemname(num);
    where num is just a number which is zero, u see what iam trying to say the problem is u create an object of this class itemname and not passing any values but later in the code you are creating the object again and pass through some values. either u change the name of the method or u pass values in the constructor.
    hey no offence on this but please next time do comment your code as it is very hard to debug in such a way.
    asrar

  • Please help with java.io.IOException:  Stream closed

    Hello friends --
    I have some code that dies when I try to read in a line:
    import java.sql.*;
    import java.io.*;
    public class MyClass
    public static void main(String[] args)
    try /*wrapper*/
    File inFile = new File(args[0]);
    BufferedReader in = new BufferedReader(new FileReader(inFile));
    File outFile = new File(args[1]);
    BufferedWriter out = new BufferedWriter(new FileWriter(outFile));
    String line = new String();
    Connection con = null;
    try /*try 1. read file*/
    while ((line = in.readLine()) != null)
    // lots more code here
    The code dies when it hits the while(). What's wrong? Didn't I open the stream when I declared 'in'? Thanks a heap to anyone willing to share a clue!!!

    It's a relative path....I figured out exactly what was wrong. The program reads the first line, then dies on its second time through because I've closed the connections. Where should I close the connections and stuff?
    Here's the rest of the code:
    import java.sql.*;
    import java.io.*;
    public class UpdateClaims
    public static void main(String[] args)
    try /*wrapper*/
    File inFile = new File(args[0]);
    BufferedReader in = new BufferedReader(new FileReader(inFile));
    File outFile = new File(args[1]);
    BufferedWriter out = new BufferedWriter(new FileWriter(outFile));
    String line = new String();
    Connection con = null;
    try /*try 1. read file*/
    while ((line = in.readLine()) != null)
    String path = line.substring(0, line.indexOf("~"));
    String size = line.substring(line.indexOf("~")+1);
    String icn = line.substring(line.lastIndexOf("/")+1, line.indexOf("~"));
         String table = "k" + line.substring(line.lastIndexOf("/")-5, line.lastIndexOf("/"));
    try /*2. update existing table*/
    // do some stuff
    }//end try 2
    catch (Exception e1) /*1. update fails*/
         try /*3. insert into existing table*/
    //do some stuff
    }//end try 3
    catch (Exception e2)/*2. insert fails*/
    try /*4. create table and insert record*/
    //do some stuff
    }//end try 4
    catch (Exception e3)/*3. table creation and insertion fails*/
    e3.printStackTrace();
    /*print record to file*/
    out.write(line);
    }//end catch 3
         }//end catch 2
    }//end catch 1
    }//end while
    in.close();
    out.close();
    con.close();
    }//end try 1
    catch (Exception e5) {e5.printStackTrace();}
    }//end wrapper try
    catch (Exception ew) {ew.printStackTrace();}
    }//end main()
    }//end MyClass

  • M new to this forum + new to java please help me with file handling program

    hi i want to make a file handling program where in i want to input a text file say f1 whose style is mentioned as below
    aaa...bcd
    aaabbc
    acdce
    a..dd
    abbcd
    now i want to write d out put of file f1 to file f2 but only those string entries widout any ... in them how to do that :-(( please help :((

    import java.io.*;
    import java.lang.*;
    class javcsse{
             void javsce (){
              BufferedReader in;
            PrintWriter out;
            String line;
            try
                in = new BufferedReader(new FileReader("e:\\cntcs\\n7.txt"));
                out = new PrintWriter("e:\\cntcs\\n8.txt");
               line = in.readLine();
               while(line != null)
                     if(line.contains("...") && line.contains("....")){
                         break ;                
                         else{
                               if(line.contains("cc"))
                              System.out.println(line+"\n");
                                      out.println(line);
                    line = in.readLine();
                in.close();
                out.close();
            } catch (Exception ex)
                System.err.println(ex.getMessage());
      public class javcse{
        public static void main(String[] args) {
            new javcsse();
    }hey i wrote this code yet could u tell y is it still not working :((

Maybe you are looking for

  • I want to use 1 itunes account but with 3 different iphones 2 for the kids and one for me, what is the easiest way to do that?

    I want to use 1 itunes account but sync 3 different iphones, 2 for the kids and 1 for me.  So I would like to have different programs, songs, apps etc for each phone.  What is the easiest way to do that

  • Help! Is there a bug in the looping tunnels for LabVIEW 6?

    I have an application written in LabVIEW 6.0.1 where I've been having problem with. 1. Big sequence structure. In the first sequence, generate and pass a 2D array through sequence locals into a while loop in the second sequence. 2. In the while loop,

  • HTTPS inspection issue

    Hello All, I have seeing error 12227: the name on the SSL server certificate supplied by a destination server does not match the name of the host requested. I have already put in the entry in the https destination exception with no validation option

  • Producing Landscape PDF Files

    Hello all, I hope this isn't too basic. I'm using Acrobat 9.0 Std. with Vista. It seems every time I try to save/print a landscape Microsoft Office document to pdf format, it creates a portrait pdf. What am I doing wrong? Thanks in advance for your a

  • Xperia Z1 Camera Error

    sometimes when i strat the camera it give me a black screen inside of it a small box say "Error camera not available" so when i see this i have to restart my phone to fix this. so can anyone give me solutions for solving this problem ?  Solved! Go to