Java.exe in c:\winnt\system32?

Hi,
I have installed J2SE1.3.1 and J2EE 1.3 b2 on my win2000pro machine and was experimenting with my environment.
In J2SE1.3.1 installation instructions it was said, that for convenience you can set path to
point to your j2se1.3.1\bin dir... Ok. Did that. I had a path like follows:
path=c:\winnt;c:\winnt\system32;c:\jdk1.3.1\bin;
And I had no problems running java apps from the command line.
But one day I accidentally looked in c:\winnt\system32 and found (!!!) java.exe and some other files and dlls, which under normal circumstances (may be well, I just didn't know they were installed there) reside in jdk1.3.1\bin. So actually, java.exe from c:\winnt\system32 was executed each time I ran java.exe.
I checked the versions of both:
in jdk:
--- output begin ---
C:\jdk1.3.1\bin>java -version
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
--- output end ---
and in windows:
--- output begin ---
C:\WINNT\system32>java -version
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
--- output end ---
Looks the same (java.exe files exist in both dirs and they seem to be the same by size and date...
Ok.
I checked -help output:
--- output begin ---
C:\jdk1.3.1\bin>java.exe -help
Usage: java [-options] class [args...]
(to execute a class)
or java -jar [-options] jarfile [args...]
(to execute a jar file)
where options include:
-hotspot to select the "hotspot" VM
-server to select the "server" VM
-classic to select the "classic" VM
If present, the option to select the VM must be first.
The default VM is -hotspot.
-cp -classpath <directories and zip/jar files separated by ;>
set search path for application classes and resources
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options
--- output end ---
And in windows:
--- output begin ---
C:\WINNT\system32>java.exe -help
Usage: java [-options] class [args...]
(to execute a class)
or java -jar [-options] jarfile [args...]
(to execute a jar file)
where options include:
-hotspot to select the "hotspot" VM
If present, the option to select the VM must be first.
The default VM is -hotspot.
-cp -classpath <directories and zip/jar files separated by ;>
set search path for application classes and resources
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options
--- output end ---
Notice - in c:\jdk "version" of java.exe two more switches exist, namely:
-server to select the "server" VM
-classic to select the "classic" VM
These options do not exist in "windows" java.exe version.
I suppose, that those "additional" options do not appear, because there is fairly incomplete list of files from jdk1.3.1\bin exists in winnt\system32 - i.e. "dlls" for "server" and "classic" (why for classic) are not available... But I do not know for sure...
My questions are:
Is is a normal installation option for either j2ee or j2se?
If it is, why in the j2se installation instructions they recommend to "correct" the path for "convenience" if in the final account the java.exe from "windows" is called, which well might be really undesired behaviour... (path=c:\winnt;c:\winnt\system32;c:\jdk1.3.1\bin;)
Where can I read more about this particular situation?
Thanks a lot guys!

Is is a normal installation option for either j2ee or j2se?Yes; it is said somewhere in the JRE installation notes. The windoze JRE installer will copy java.exe and javaw.exe (apparently with some other files) to the win dir. You should also find a third java.exe from c:\program files\javasoft\jre\1.3.1\bin or something like that.

Similar Messages

  • Java.exe (j2re1.4.0) can't init C:\WINNT\system32\DDRAW.dll

    Our app is running on jre 1.3.1_01. When we try j2re 1.4.0 we get the following dialog:
    java.exe - DLL Initialization Failed
    Initialization of the dynamic link library C:\WINNT\System32\ddraw.dll failed. The process is terminating abnormally.
    It occurs when the application attempts to paint the splash screen for our server application. It also occurs with our client GUI.
    This is the same for 6 different machines running Windows NT 4.0 service packs 5 and 6.
    I don't want to make this a bug yet because it seems to work on my laptop with exactly the same software. We have sync'd the environment and verified the classpaths.

    I've seen potentially related problems on NT4-SP6a with J2RE 1.4.2_01. I did not get the "can't init" error that you are discussing, but I have seen other problems related to "ddraw.dll". When I run Swing applications that use viewports, scrolling causes very bad repainting problems. I think this is related to "ddraw.dll" because of the "BIT_BLIT" optimization for repainting.
    Also, when I ran the Java application after running some other sequence of applications (I have not been able to duplicate the startup sequence), Java crashed with the message below rather than repainting poorly. This crash was repeatable -- I repeated it four times with identical exception traces. The stack trace indicates that the failure is in "blitWindowGraphics", and the problem was detected inside of "ddraw.dll".
    I'm including this in this thred in the hopes that somebody can find a thread of commonality and fix the root cause of these "ddraw.dll" problems.
    NOTE: I have not found a workaround to the problems I'm having --- I cannot run Java GUI applications on this PC.
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x77132F58
    Function=DllCanUnloadNow+0x665
    Library=C:\WINNT\System32\ddraw.dll
    Current Java thread:
         at sun.awt.windows.Win32Renderer.devCopyArea(Native Method)
         at sun.awt.windows.Win32SurfaceData.copyArea(Unknown Source)
         at sun.java2d.SunGraphics2D.copyArea(Unknown Source)
         at javax.swing.JViewport.blitWindowGraphics(Unknown Source)
         at javax.swing.JViewport.blitDoubleBuffered(Unknown Source)
         at javax.swing.JViewport.windowBlitPaint(Unknown Source)
         at javax.swing.JViewport.setViewPosition(Unknown Source)
         at com.sun.javaws.ui.general.GeneralUtilities$4.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.Dialog$1.run(Unknown Source)
         at java.awt.Dialog.show(Unknown Source)
         at com.sun.javaws.ui.general.GeneralUtilities.showAboutDialog(Unknown Source)
         at com.sun.javaws.ui.player.Player$13.actionPerformed(Unknown Source)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Dynamic libraries:
    0x00400000 - 0x00407000      D:\jre\j2re1.4.2_01\bin\javaw.exe
    0x77F60000 - 0x77FBE000      C:\WINNT\System32\ntdll.dll
    0x77DC0000 - 0x77DFF000      C:\WINNT\system32\ADVAPI32.dll
    0x77F00000 - 0x77F5E000      C:\WINNT\system32\KERNEL32.dll
    0x77E70000 - 0x77EC5000      C:\WINNT\system32\USER32.dll
    0x77ED0000 - 0x77EFC000      C:\WINNT\system32\GDI32.dll
    0x77E10000 - 0x77E67000      C:\WINNT\system32\RPCRT4.dll
    0x78000000 - 0x78040000      C:\WINNT\system32\MSVCRT.dll
    0x08000000 - 0x08136000      D:\jre\j2re1.4.2_01\bin\client\jvm.dll
    0x77FD0000 - 0x77FFA000      C:\WINNT\System32\WINMM.dll
    0x77FC0000 - 0x77FC8000      C:\WINNT\System32\mmdrv.dll
    0x74BD0000 - 0x74BE7000      C:\WINNT\System32\SNDBLST.DLL
    0x716F0000 - 0x7177A000      C:\WINNT\system32\COMCTL32.dll
    0x10000000 - 0x10007000      D:\jre\j2re1.4.2_01\bin\hpi.dll
    0x00910000 - 0x0091E000      D:\jre\j2re1.4.2_01\bin\verify.dll
    0x00920000 - 0x00938000      D:\jre\j2re1.4.2_01\bin\java.dll
    0x00940000 - 0x0094D000      D:\jre\j2re1.4.2_01\bin\zip.dll
    0x18270000 - 0x1837F000      D:\jre\j2re1.4.2_01\bin\awt.dll
    0x77C00000 - 0x77C18000      C:\WINNT\System32\WINSPOOL.DRV
    0x76AB0000 - 0x76AB5000      C:\WINNT\System32\IMM32.dll
    0x77B20000 - 0x77BD1000      C:\WINNT\system32\ole32.dll
    0x18380000 - 0x183D0000      D:\jre\j2re1.4.2_01\bin\fontmanager.dll
    0x77130000 - 0x77156000      C:\WINNT\System32\ddraw.dll
    0x18650000 - 0x1865A000      D:\jre\j2re1.4.2_01\javaws\javawspl.dll
    0x77C40000 - 0x77D7C000      C:\WINNT\system32\SHELL32.dll
    0x18C40000 - 0x18C5E000      D:\jre\j2re1.4.2_01\bin\jpeg.dll
    0x18C60000 - 0x18C6F000      D:\jre\j2re1.4.2_01\bin\net.dll
    0x776B0000 - 0x776C4000      C:\WINNT\system32\WS2_32.dll
    0x776A0000 - 0x776A7000      C:\WINNT\system32\WS2HELP.dll
    0x74FF0000 - 0x74FFE000      C:\WINNT\System32\rnr20.dll
    0x77660000 - 0x7766F000      C:\WINNT\system32\msafd.dll
    0x77690000 - 0x77699000      C:\WINNT\System32\wshtcpip.dll
    0x776D0000 - 0x776D8000      C:\WINNT\system32\WSOCK32.dll
    0x71280000 - 0x71286000      C:\WINNT\system32\MSIDLE.DLL
    0x77BF0000 - 0x77BF7000      C:\WINNT\System32\rpcltc1.dll
    0x75360000 - 0x75367000      C:\WINNT\System32\rasadhlp.dll
    0x76AC0000 - 0x76ADD000      C:\WINNT\System32\imagehlp.dll
    0x731B0000 - 0x731BA000      C:\WINNT\System32\PSAPI.DLL
    Heap at VM Abort:
    Heap
    def new generation total 576K, used 408K [0x10010000, 0x100b0000, 0x104f0000)
    eden space 512K, 79% used [0x10010000, 0x10076340, 0x10090000)
    from space 64K, 0% used [0x10090000, 0x10090000, 0x100a0000)
    to space 64K, 0% used [0x100a0000, 0x100a0000, 0x100b0000)
    tenured generation total 2136K, used 1280K [0x104f0000, 0x10706000, 0x14010000)
    the space 2136K, 59% used [0x104f0000, 0x10630030, 0x10630200, 0x10706000)
    compacting perm gen total 6656K, used 6474K [0x14010000, 0x14690000, 0x18010000)
    the space 6656K, 97% used [0x14010000, 0x14662a48, 0x14662c00, 0x14690000)
    Local Time = Tue Nov 25 21:44:39 2003
    Elapsed Time = 26
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_01-b06 mixed mode)

  • Java.exe problem

    Hi,
    Would anybody please help me with this problem.
    I tried to execute java.exe with the command: java -Djava.library.path=E:\Program Files\Testing TestApp, it threw exception could not find the the path since there is a blank space between Program Files. I tried to put quotation marks around them, I got same problem. Java command seemed like did not like space. If I move my lib to new place e.g Test and execute my TestApp with the command: java -Djava.library.path=E:\Test TestApp, it worked fine. How can I solve this problem without remove space in the path.
    Thanks
    Hung

    i think you want to point to your programe classes.
    if so use
    java -classpath "E:\Program Files\Testing" TestApp
    because
    java.library.path contains many pathes related to JRE.
    D:\Java\sdk\jre\bin;.;C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Java\sdk;D:\Java\sdk\bin;D:\Java\J2EE\bin;D:\Java\WSDP\bin;D:\Program Files\Microsoft Visual Studio\VC98\bin;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;C:\Program Files\SSH Communications Security\SSH Secure Shell
    try this
    System.out.println(System.getProperty("java.library.path"));-Best regards,
    mnmmm

  • Problems to invoke java.exe from Java application, but ok for javac.exe??

    How to invoke DOS application from Java application??
    I try the following but it didn't work to invoke command prompt and java.exe, it
    is working to invoke javac.exe. Any ideas why??
    import java.io.*;
    public class CallJavaTest
    { public static void main(String[] args)
    { try
    Runtime.getRuntime().exec("C:\\WINNT\\System32\\cmd.exe"); //doesn't work!!
    Runtime.getRuntime().exec("javac "+ "Test.java"); //it works!!
    Runtime.getRuntime().exec("java "+ "Test"); //doesn't work!!
    catch(IOException e)
    System.out.println(e);

    hi
    String[] cmd = {"cmd","/c", "start",enteryourdoscommandhere};
    Runtime rt = Runtime.getRuntime();
    Process ps = rt.exec(cmd);
    ps.waitFor();
    int ev = ps.exitValue();
    it works for my winXP.
    hope it can helps and not too late ..

  • Windows refuses to run the java.exe in my path.

    Hi all -
    I'm having some problems managing Java in Windows. All my experience with Java is primarily from a Unix environment, so I'm really having a tough time solving this issue.
    Windows is obsessed with using java from c:\program files\Java\jre1.5.0. That directory isn't in my path anywhere, and I don't have the problem from within Eclipse because you can specify your environment, but if I type 'java' from a command line, it invokes a version from that directory. I only noticed when trying to debug an RMI problem related to this and I started my project with "java -server" and it gave me the error:
    "Error: no `server' JVM at `C:\Program Files\Java\jre1.5.0\bin\server\jvm.dll'."
    Of course if I type in the full path to the java.exe I want to use, its fine.
    I've tried just removing the directory in the hopes that it would then take a look at my path variable and find the correct version, but then I just get the error:
    "Error: could not open `C:\Program Files\Java\jre1.5.0\lib\i386\jvm.cfg'"
    It's driving me mad! What do I have to do to tell Windows to give up on this directory? I've looked at the registry and it is in there about 30 times. That seems a little crazy to me, but I'm just not a Windows guy.
    Thanks
    Jason

    To allow "naked" java commands, Sun places a copy of java.exe and javaw.exe in a Windows directory that's on the execution path. In 2000/XP they're in WINDOWS\system32 (along with a copy of the Web Start program javaws.exe.)
    Either remove them, or place the directory that contains the wanted java.exe in the path before the WINDOWS\system32 entry - the first copy found will be used.

  • Kaspersky vs Java.exe detected as virus - Need help!

    Hi,
    Just installed yesterday Kaspersky Internet Security 2009 on my VISTA Ultimate 32 bits laptop. After doing a complete analysis, it reported out of a total of 3 the following threats:
    c:\windows\system32\java.exe
    c:\Program Files\Java\jre1.6.0\bin\java.exe
    What can I do with these?
    Honestly, I don't know really as I'm far from being an expert with JAVA.
    In conclusion, what do I do with these 2 files? Here is an item I could find from my VISTA "programs install/uninstall" window:
    "JAVA(TM) SE Runtime Environment 6"
    To solve my threat warnings:
    - do I need to update this to a newer version? If so how?
    - put files to quarantine as they suggest?
    - do anything else?
    Thanks in advance for help!

    Hi,
    I solved this problem by doing as following:
    - first uninstall JAVA Runtime which was already installed in VISTA
    - Next Install last runtime SE Version
    "Java SE Runtime Environment 6u7".
    - Went to http://java.sun.com/javase/downloads/index.jsp
    - Created myself a user account
    - From page, downloaded runtime "Java Runtime Environment (JRE) 6 Update 7"
    - Installed it
    - When I then checked errors from Kaspersky, no more regarding JAVA.

  • Native app - Invalid number of parameters, java.exe is not recognized as an internal or external...

    Compilation complete.
    Patching package name...
    Patching version information...
    Patching app name...
    Updating the Android app project...
    [Path to Android project]>android update project --name "EmployeeCare2" --target 1 --path .
    Invalid number of parameters
    '"C:\Windows\system32\java.exe "' is not recognized as an internal or external command,
    operable program or batch file.

    Fixed it. I mean I got it to generate the app, I wouldn't call it fixed. This is one of those cases where I'm convinced that I am the only person who is using a particular feature because it doesn't seem like this would have ever worked for anyone.
    Open C:\Program Files (x86)\Adobe\Adobe RoboHelp 11\RoboHTML\MultiscreenExt\NativeApps\Android\UpdateApp.bat.
    Turn echo back on.
    Run the script to generate a native app.
    Check the output window when it fails. This line >SET PATH="C:\Program Files\Java\jdk1.7.0_51\"bin; should be >SET PATH=C:\Program Files\Java\jdk1.7.0_51\bin; no quotes around the path before bin.
    Back in UpdateApp.bat: I hardcoded SET PATH=C:\Program Files\Java\jdk1.7.0_51\bin;%3;%PATH%.
    When I run the script again, I get a different error. I cleared the output window, so I don't remember what it was.
    Delete everything in the output folder, run the script again.
    I haven't tested the app, but it says and looks like it was generated.

  • Java.exe has encountered a problem and needs to close.

    I installed Oracle8i on my P4 then when I reboot I get the error "java.exe has encountered a problem and needs to close." even if I click on "don't report" if keeps popping up, anything to do to resolve this?
    Thanks.

    Hello...
    i had the same problem. then when i searched oracle documentation, it suggested as follows:
    1. go to your %ORACLE_HOME%\Apache\Apache\conf\httpd.conf
    2. comment out 2 lines that has
    include ....\jserv.conf
    include ....\oracle_apache.conf
    so your new line will be:
    #include ....\jserv.conf
    #include ....\oracle_apache.conf
    Those lines are at the end of the file.
    3. save the file.
    4. reboot your machine.
    that solution works for me.. hope it works for you too.
    GOOD LUCK!
    --Melani                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Error in Writing to File \Winnt\System32\mfcans32.dll

    Error window with msg "Error in Writing to File \Winnt\System32\mfcans32.dll" is being popuped while trying to install 9.0.3 on windows 2000 Advanced Server.
    My System Configuration Details are as follows.
    Compaq Proliant
    Ram : 2GB
    HARD DISK : 80GB
    PROCESSOR : 2.6
    Please help me to install.
    Thanks,
    Srinivas Chowdhary Annamareddy.

    You might want to investigate why it became Read-Only in the first place and are there any other files that should not be Read-Only read only.

  • Error while running java.exe

    Hi,
    I have installed JDK1.4 on Windows NT4.0.
    The path where the "javac" and "java" are is "D:\jdk1.4\bin."
    I have added this directory to the PATH variable.
    I have no problem when executing "javac" from any location(Directory) where as its reporting an error "no 'client' JVM at 'D:\\bin\client\jvm.dll' ".
    And the same is not reporting any error if I execute it by giving the complete path or if I am in the same directory i.e D:\jdk1.4\bin.
    Regards,
    Sridhar.

    Did you add "D:\jdk1.4\bin" to the end of the Path variable? Perhaps the OS is finding another java.exe before it finds the one in d:\jdk1.4\bin. Try putting "D:\jdk1.4\bin;" at the start of the Path variable.

  • Hi i wrote a java program for scanning a system for java.exe 's

    hi ,
    i wrote a program which scans the system for java.exe 's and then it captures them in a linked list and then i
    iterate through it for "\\Java\\jdk1.5.0_08\\bin\\java.exe and my aim is to return true in case the linked list contains the string "\\Java\\jdk1.5.0_08\\bin\\java.exe" and stop scanning the system.
    If the linked list does not contain "Java\\jdk1.5.0_08\\bin\\java.exe" it should return false.
    But my problem is the program is continuing to scan the system even if the linked list has "\\Java\\jdk1.5.0_08\\bin\\java.exe"
    Any sort of help is appreciated.
    The code is as follows:
    package com.installanywhere.exper;
    import com.zerog.ia.api.pub.CustomCodeRule;
    import com.installanywhere.exper.SearchTool;
    * @author
    public class eFileTool extends CustomCodeRule {
         /* (non-Javadoc)
         * @see com.zerog.ia.api.pub.CustomCodeRule#evaluateRule()
         @Override
         public boolean evaluateRule() {
              // TODO Auto-generated method stub
              SearchTool searchtool=new SearchTool();
              boolean valueTocheckfor=false;
              valueTocheckfor=searchtool.find();
              String someothervalue=Boolean.toString(valueTocheckfor);
              if(someothervalue.equalsIgnoreCase("true")){
                   return true;
                   //System.exit()
              else if(someothervalue.equalsIgnoreCase("false")){
                   try {
                        Thread.sleep(5000);
                   } catch (InterruptedException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
              System.out.println(valueTocheckfor+"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
              return valueTocheckfor;
    The code of search tool is
    package com.installanywhere.exper;
    import java.io.*;
    import java.util.*;
    public class SearchTool
         * @param args
    static     boolean valuesToReturn=false;
    static     boolean anothervalueToRefer=false;
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              SearchTool           t = new SearchTool();
              System.out.println("xxxxxxxxxxxxxxxxxxxx");
              boolean someArgument=t.find();
              System.out.println(someArgument+"iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii"+"");
                   public boolean find()
                        System.out.println("2222222222222222222");
                   boolean someThing=searchcomp("java.exe");
                   System.out.println(someThing+"inside the othere one");
                   return someThing;
              public boolean searchcomp(String file)
                   System.out.println("3333333333333333333333");
                   File[] drives=File.listRoots();
                   boolean valueIdentified=false;
                   for (int ctr=0;ctr<(drives.length-1);ctr++)
                        valueIdentified=search(drives[ctr],file);
                        System.out.println("4444444444444444444");
                   System.out.println(valueIdentified+"something i need to accomplish");
                   return valueIdentified;
                   public boolean search(File dir,String file)
                   File[] directories=dir.listFiles();
              System.out.println("55555555555555555555555");
                   if (directories == null)
                        System.out.println("666666666666666666666666");
                   return false;
                   for(int ctr=0;ctr<directories.length;ctr++)
                        if(directories[ctr].isDirectory())
                             System.out.println("77777777777777777777777777");
                             valuesToReturn=search(directories[ctr],file);
                             System.out.println(valuesToReturn+"india is great");
                        else
                             if(directories[ctr].getName().equals(file))
                                  String path = directories[ctr].getAbsolutePath().toString();
                                  System.out.println(path);
                                  List someList=new LinkedList();
                                  anothervalueToRefer=allPaths(path);     
                                  System.out.println(anothervalueToRefer+"god damn it");
                                       //System.out.println(anothervalueToRefer+"let me seeeeeeeeeeeeeeeeeee");                                        
                                  return anothervalueToRefer;
                   return valuesToReturn;
                   public boolean allPaths(String allPath)
                        List l=new LinkedList();
                        String somepath=allPath;
                        l.add(somepath);
                        //return l;
    /*if(l.contains("C:\\Program Files\\Java\\jdk1.5.0_08\\bin\\java.exe")){
                             System.out.println("yepeeeeeeeeeeeeee");
                             //System.exit(0);
    else{
         System.out.println(" the face");
                        ListIterator li = l.listIterator();
                        System.out.println("inside the method of all paths");
                        if(li.hasNext())
                             if(li.next().toString().contains("\\Java\\jdk1.5.0_08\\bin\\java.exe"))
                             System.err.println(somepath+"this is the path i wanted to resolve correctly");                         
                             return true;
                             else{
                                  System.out.println("trueeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee");
                                       return false;
                        else {
                                  return false;
         }

    A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.
    *http://forums.mozillazine.org/viewforum.php?f=25
    The helpers at that forum are more knowledgeable about web development issues.<br>
    You need to register at the MozillaZine forum site in order to post at that forum.

  • How to start java.exe from a java program in windows ?

    Hi,
    I did like to know, if its possible to run java.exe from a java program on windows ? The java.exe should be visible from checking the processes that are currently running using the Task Manager on windows.

    Runtime.getRuntime().exec("java Sample");

  • Console window doesn't show on second start of java.exe

    I am building restart capability into my product.
    When the product is started for the first time, it is started through a Windows EXE using a ShellExecuteEx method. I simply launch "java.exe" with my classpath, etc. My Windows console window shows up and I am happy.
    When a do a restart of the app, I am inside of the original JVM. I have access to the exact same commandline that I used in the EXE to launch "java.exe" originally.
    With the restart, I simply call Runtime.getRuntime().exec(commandline) and pass in the exact same commandline that I passed in when I did this in the EXE. However, when I do this from within the JVM, I do not get my Windows console window. This is not good.
    Does anybody understandn what is going on here and how I can remedy this?
    Thanks in advance for your help!

    I'm not sure what is happening in your case.
    Do the images initially show in "Tools > Page Info > Media" or is that always with size 0px?
    Quote: ''but if i click on same link second time than size gets right and image is shown under preview box.''
    Is that with clicking on the web page?
    Can you load the images via the links that you see in "Tools > Page Info > Media" without any problems?
    Do you see the request for those images in the Network tab in the Web Console (Firefox/Tools > Web Developer) and what is the server response in that case?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Please help me. Cant located the Path of java.exe ???

    I have Windows 7 64bit OS. I download all softwares in 64 bit version.I just download Oracle sql developer
    4.0 (4.0.0.13.80) and jdk 7 u45 with netbeans 7.4 and i also download jre 7, all software are successfully installed on my system. but when i open sql developer ,it prompt for path of java.exe but i cant find the path. in "C:\programs files\jdk7\bin\" but there is no .exe files.
    please help me or guide me , what to do???
    I installed all the softwares successfully. but i can't understand where the problems is ?

    The easiest thing to do is download this:
    "Windows 64-bit - zip file includes the JDK 7"
    When you run the EXE, it won't prompt for anything, it will just run.
    In fact, if you have the JDK properly installed on Windows, the exe won't prompt for the location of Java anymore, so it sounds like you may have an install problem with your Netbeans install?

  • How to get Class Name given along with java.exe

    Hi friends,
    I am Mukesh, currently facing one problem
    On command prompt to execute any java program we give :
    C : \.-- > java ClassName
    This ClassName I need in my application, I want to do some post processing on that.
    Actually see what I want :
    public class Base
    static Base object;
    public static void main(String[] args) throws Exception
    object=(Base)Class.forName("Derived Class Name").newInstance();
    void main()
    public class Derived extends Base
    void main()
    System.out.println("Hello World");
    I am trying to Run Derived Class, since there is no entry point found, default JVM invoke the Base class's entry point, there I want to load
    Derived Class, but I am not getting any identity of derived class in Base class.
    I found one temporary solution to this problem :
    C: \ -- >java Derived Derived
    & in Base class, I have loaded class
    object=Class.forName(args[0]).newInstance();
    But I dont want to write the same thing twise just to know the Class name which is given along with java.exe.
    Is there any way to get the ClassName supplied with java.exe
    I have tried a lot, still I am trying !!!
    If any one knows the answer, help me.
    Regards.
    Mukesh.

    Multiple post. Please continue in other thread
    http://forum.java.sun.com/thread.jspa?threadID=5196980&tstart=0

Maybe you are looking for

  • How can I use a new Apple ID?

    I have an iCloud account that I've been using for a long time (since the @mac.com days) which has everything Apple of mine asociated with it (iTunes purchases, AppleCare registrations, Cloud Storage). I don't use that email anymore. I have a gmail th

  • Standard Report S_AHR_61016380

    Hi Gurus, I have a query..Their is a standard report which gives the record of last master data change with the T-Code S_AHR_61016380, I used th.at report where in it gives the data of few IT where the data is changes..but my user want the report for

  • How to reset security question HELP PLZZZZZ

    i have recenty bought a new macbook pro but i cant purchase anything on itunes until i ave put in my security questions!!!! (which i have forgotten!!!) can someone plz tell me how to reset my security questions????? HELP APPRECIATED

  • [Excel] Running a SQL Query to delete rows

    Hello Experts, Background: I am attempting to use a dba of my companies time keeping system and implement it with Power BI tools. Given the file size restrictions within Power Bi itself I need to lower my file size by removing all time logs from inac

  • Why use Applet when display Form Application?What is the benefits using it?

    Hi All, I still don't know what is the benefits using Java Applet when displaying Form Applications. What is other ways to display Form? Thanks!