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

Similar Messages

  • Windows xp and java.exe problem

    Hello all..
    I tried to execute have a batch file consisting a jar file and classes in windows xp platform. I used j2sdk1.4.0_03. All my classes are stored in : C:\MyDocument\Softwares\classes directory
    and the jar files are in: C:\MyDocument\Softwares.
    I wrote the following commands in the batch file:
    java -classpath C:\MyDocument\Softwares\classes;
    C:\MyDocument\Softwares\jexcelapi.jar mainClass
    When I lauched that batch file, a message came out:
    java.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
    Could you tell me where the problem is and why? Do I need windows xp patch to eliminate the problem? And where can I find that patch?
    Thanx for any suggestions...
    Richard

    Thanks for your comments. I have tried to reinstall the J2SDK, but then another error message appeared:
    Error occured during the initialization of VM
    java/lang/NoClassDefFoundError:java/lang/Object
    I've checked my Path and it's set as following:
    C:\j2sdk1.4.0_03\bin;
    and my classpath setting:
    C:\MyDocument\Softwares;C:\MyDocument\Softwares\classes;C:\j2sdk1.4.0_03\lib;
    When I tried to execute the java command in any directory (inclusively in C:\MyDocument\Softwares) I always got that message. The only directory where I was able to run the command is in C:\j2sdk1.4.0_03\bin;
    Before I did the reinstallation, I never had such a problem.
    Have any hits? Thanks in advance..

  • Java.exe problems. - can't run without class being placed in bin

    this is weird, but it's happened to me before. Something on my pc isn't letting me run my class files unless I actually place them in the bin directory under jdk1.3.1_02.
    what's the deal?
    I've checked my env. variables, but I don't know if I have them wrong or what.
    Can someone please help?!
    c:\ java Client
    Exception in thread "main" java.lang.NoClassDefFoundError: Client
    Sam

    Actually I would bet money all he needs is the classpath statment such as I directed a few posts up..
    He needs the period at the end to tell the java interpeter to search the present directory...
    Most of you are mistakeing his questions. If the compiler could not find the class files it wouldn't compile. Since he said he get's the error when:
    c:\ java Client
    Exception in thread "main" java.lang.NoClassDefFoundError: Client
    Tells me that he wrote a program called Client and the interpeter can't find his compiled class file..
    Because the class path variable isn't set to present directory (the piriod) I had this same problem the first time I installed java.. It drove me nuts. I spent 2 months programming out of the bin directory before I found the classpath statment.. hehe (hey we were all beginners once)
    Gehan
    Ps. If you want convermation on what I said go read the link I posted on classpath statments

  • Java.exe eror ?! damm

    i have flash cs5 , when i installed my flash cs5 on my pc .
    i create apps , and i can publish . all work great .
    but i read have update . air 2.6 , and cs5 updates.
    i do all right
    but when i am update my flash cs5 , i want to publish iOS (iphone) and it give me eror with java.exe
    why???
    http://imageshack.us/f/195/49104269.jpg/
    http://imageshack.us/f/195/49104269.jpg/
    why?! please help me.

    sorry i dont understand you you can tell me it more easy.
    i installed like this :
    . Open flash CS5 (must need) -> Help -> Updates (Complete the  updates to the latest one which supports packager for iphone)
    2. Download AIR 2.6 SDK (latest version which supports both packager for iphone and android)
    http://www.adobe.com/products/air/sdk/
    Extract it and keep the AndroidSDK folder in the c:\ folder or somewhere to your convenient
    3. The packager you downloaded is the little previous version, Get the latest one from the following link:
    Windows Link:
    http://download.macromedia.com/pub/flash/updates/11/ios/win/PFI_WIN_2_ 0_1_12640.zip
    Size: 22.8MB
    Macintosh Link:
    http://download.macromedia.com/pub/flash/updates/11/ios/mac/PFI_MAC_2_ 0_1_12640.zip
    Size: 24.5MB
    http://download.macromedia.com/pub/flash/updates/11/ios/win/PFI_WIN_2_ 0_1_12640.zip
    Installation Instruction
    1. Important: run the Flash Professional CS5 Update 11.0.2 by selecting Help > Updates...
    2. Upon completion browse to the Flash installation folder. Typical location on Win: C:\Program Files\
    Adobe\Adobe Flash CS5\, Mac: Applications/Adobe Flash CS5/
    3. Rename the PFI folder to PFI_old.
    4. Move the PFI folder from the extracted zip file to the Adobe Flash CS5 folder.
    NOTE: If the PFI folder does not exist, it means you have selected not to install the iPhone Packager.
    Uninstall Flash CS5 and run the installer again then follow the above steps.
    4. To test your app with ipa-test give a try with the following batch  file also have sample.xml file change according to your needs:
    http://trulyraja2009.byethost12.com/GenerateIPA.zip
    Copy and paste the above to the IE and download it.
    Hope it helps
    before i installed the updates all work fine .
    now i open my flash , create new iOS iphone project
    paint some circle and go to publish
    i set icons , set my .p12 set app ID all fine .
    but when i am publish , it start to publish after 1min it worte java.exe problem (windows send , dont send)
    i have windows xp sp3 , 2gb ram , p4 3.2Ghz
    i install jave runtime last version.
    so please tell me easy how to fix it , if it posible ?
    and thank you so much , I appreciate your work .

  • Java.exe crash upon O9iAS startup

    When OracleASHome102HTTPServer starts I get a Win2000 access exception c0000005 on java.exe. Little DrWatson window pops up... O9i logs Logs show nothing. Only drwatson shows problem info, assembler dump, ets...
    Anyone know what's wrong? I've got O9iAS 1.0.2.0, Win2000SP1, Pentium 4, 1.4GHz, 512Mg RAM?
    I know there is a problem with the jre JIT compiler on the P4. Got around this during O9iAS installation by using the '-nojit' parameter on all invocations of jrew.exe and jre.exe. Is my java.exe problem still with the P4 chip?
    Regards,
    null

    Jim,
    This question is best suited to the Oracle9i Application Server forum.
    Thanks

  • Java.exe crashes with windows access exception

    When OracleASHome102HTTPServer starts I get a Win2000 access exception c0000005 on java.exe. Little DrWatson window pops up... O9i logs Logs show nothing. Only drwatson shows problem info, assembler dump, ets...
    Anyone know what's wrong? I've got O9iAS 1.0.2.0, Win2000SP1, Pentium 4, 1.4GHz, 512Mg RAM?
    I know there is a problem with the jre JIT compiler on the P4. Got around this during O9iAS installation by using the '-nojit' parameter on all invocations of jrew.exe and jre.exe. Is my java.exe problem still with the P4 chip?
    Regards,
    Jim Anderson

    solution
    I have solved the problem,and the method as follows:
    1.look for the dll file:symcjit.dll(the path is %oracle_home%\Apache\jdk\jre\bin) ,
    2.change the extension to .old
    3.restart the httpServer
    4.ok
    try it,and hope you good luck

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Problem with java applications - java.exe in loop

    Hi
    I just install j2sdk1.4.1_01
    I got a problem:
    when I run any code without graphics (clasic hello world with println) everything run fine
    when I try to run anythig else (with some swing) the java.exe process start to use 100% of the CPU and never end (probably a loop)
    The same think happen when I launch Java web Start so I suppose that the problem is not the code (I just use some dialog with one or two buttons and the application run fine on other pc).
    My system:
    OS: w2k server - SP3
    CPU: P4 1.8GHz
    RAM: 512 MB
    several services running: IIS with dhcp server, DNS server.
    The system was scanned and no viruses are found.
    I unistall everything (j2sdk, jre, web start) and I got the same after reinstalling them.
    I launch the application from the comand line and the results doesn't change.
    I install a different version of SDK (02 instead of 01) but nothing change.
    The same happens if I try to use jbuilder8.
    Any idea

    Try updating DirectX.

  • Problem with java.exe

    Hi there, I have had Java 1.4 SDK running on my machine now for several month however I am now experiencing problems when trying to run java.exe....
    Whenever I try to run (for example):
    java helloWorldI get the following error message:
    Exception in thread "main" java.lang.NoClassDefFoundError: helloWorld
    Yes I did compile the files... and yes I am in the right direcotry.. this happens on every single file I have. Can anyone suggest what might be wrong? And how to fix this... also no java applets will run on the web.
    Thankyou, Mark.

    Type the following at the command line:
    echo %CLASSPATH%
    The result should contain a . with ; around it (unless it's the first/last item). This means to include the current directory in the search path for java classes.
    Without this java will only search the locations specified in the classpath.
    To add it you need to set an environment variable, if you have NT/2K/XP you can do this from the 'advanced' tab of the system properties, on other OS's I cant remember the permanent manner but for a temporary fix you could type:
    set CLASSPATH=%CLASSPATH%;.
    At the command line then type:
    java <My Progam Name>
    Hope this helps.

  • 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 ..

  • 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.

  • 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