Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-22642

ProcessInformationStore.loadprocessStore doesn't work on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • 4.4.0.Final
    • 4.3.1.Final
    • jmx
    • None
    • Hide
      • launch jbds
      • add a server
      • launch it
      • stop JBDS
      • start JBDS
      • go to servers vie and click on the server
        --> see error in log
      Show
      launch jbds add a server launch it stop JBDS start JBDS go to servers vie and click on the server --> see error in log

      • l.90 it searches for a jps file although the file is jps.exe on Windows

      jps = jHomePath.removeLastSegments(1).append("bin").append("jps").toFile();

      error log:

      java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.8.0_65\jre\bin\jps": CreateProcess error=2, The system cannot find the file specified
      	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
      	at java.lang.Runtime.exec(Runtime.java:620)
      	at java.lang.Runtime.exec(Runtime.java:485)
      	at org.jboss.tools.jmx.local.ProcessInformationStore.loadProcessStore(ProcessInformationStore.java:102)
      	at org.jboss.tools.jmx.local.ProcessInformationStore.refreshProcessInformationStore(ProcessInformationStore.java:64)
      	at org.jboss.tools.jmx.local.ProcessInformationStore$1.run(ProcessInformationStore.java:140)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
      	at java.lang.ProcessImpl.create(Native Method)
      	at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
      	at java.lang.ProcessImpl.start(ProcessImpl.java:137)
      	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
      

            rob.stryker Rob Stryker (Inactive)
            apupier@redhat.com Aurélien Pupier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: