Menu

#6 Decompiler is throwing an IOException

open
nobody
5
2014-12-20
2003-06-18
Anonymous
No

I have installed everything correctly. Whenever I try to
open a .class file in Websphere, I get an IOException.
I ran the same command from the dos prompt and jad
worked just fine. I am thinking it is somehow unable to
get permissions to my folder or something.

Here is the stack trace:

CAUGHT EXCEPTIONS:
java.io.IOException: CreateProcess: jad -p -t4 -lradix10 -
radix10 MyClassFile.class error=2
at java.lang.Win32Process.create(Native
Method)
at java.lang.Win32Process.<init>
(Win32Process.java:87)
at java.lang.Runtime.execInternal(Native
Method)
at java.lang.Runtime.exec(Runtime.java:582)
at jadclipse.JadDecompiler.decompile
(JadDecompiler.java:161)
at
jadclipse.JadDecompiler.decompileFromArchive
(JadDecompiler.java:218)
at jadclipse.JadclipseSourceMapper.findSource
(JadclipseSourceMapper.java:63)
at
org.eclipse.jdt.internal.core.SourceMapper.findSource
(SourceMapper.java:546)
at
jadclipse.JadclipseClassFileEditor.doOpenBuffer
(JadclipseClassFileEditor.java:109)
at jadclipse.JadclipseClassFileEditor.init
(JadclipseClassFileEditor.java:56)
at
org.eclipse.ui.internal.EditorManager.createSite
(EditorManager.java:556)
at
org.eclipse.ui.internal.EditorManager.openInternalEditor
(EditorManager.java:607)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescr
iptor(EditorManager.java:421)
at
org.eclipse.ui.internal.EditorManager.openEditor
(EditorManager.java:393)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:1706)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:1649)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEdi
tor(EditorUtility.java:139)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEdi
tor(EditorUtility.java:109)
at
org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open
(OpenActionUtil.java:52)
at org.eclipse.jdt.ui.actions.OpenAction.run
(OpenAction.java:168)
at org.eclipse.jdt.ui.actions.OpenAction.run
(OpenAction.java:157)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatc
hRun(SelectionDispatchAction.java:197)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.run
(SelectionDispatchAction.java:175)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerAc
tionGroup.handleOpen
(PackageExplorerActionGroup.java:324)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplorerPa
rt$5.open(PackageExplorerPart.java:294)
at
org.eclipse.jface.viewers.StructuredViewer.fireOpen
(StructuredViewer.java:320)
at
org.eclipse.jface.viewers.StructuredViewer.handleOpen
(StructuredViewer.java:494)
at
org.eclipse.jface.viewers.StructuredViewer$3.handleOpen
(StructuredViewer.java:581)
at
org.eclipse.jface.util.OpenStrategy.fireOpenEvent
(OpenStrategy.java:198)
at
org.eclipse.jface.util.OpenStrategy$1.handleEvent
(OpenStrategy.java(Compiled Code))
at
org.eclipse.jface.util.OpenStrategy$1.handleEvent
(OpenStrategy.java(Compiled Code))
at
org.eclipse.swt.widgets.EventTable.sendEvent
(EventTable.java(Compiled Code))
at
org.eclipse.swt.widgets.Display.runDeferredEvents
(Display.java(Compiled Code))
at
org.eclipse.swt.widgets.Display.runDeferredEvents
(Display.java(Compiled Code))
at
org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java(Compiled Code))
at
org.eclipse.ui.internal.Workbench.runEventLoop
(Workbench.java(Compiled Code))
at org.eclipse.ui.internal.Workbench.run
(Workbench.java:1326)
at
org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:831)
at org.eclipse.core.boot.BootLoader.run
(BootLoader.java:462)
at java.lang.reflect.Method.invoke(Native
Method)
at org.eclipse.core.launcher.Main.basicRun
(Main.java:247)
at org.eclipse.core.launcher.Main.run
(Main.java:703)
at org.eclipse.core.launcher.Main.main
(Main.java:539)

Discussion

  • Tonny Madsen

    Tonny Madsen - 2003-09-16

    Logged In: YES
    user_id=11863

    I see the same error in eclipse-3.0M3

     
  • Henning Vitting

    Henning Vitting - 2003-09-17
    • assigned_to: nobody --> vitting
     
  • Henning Vitting

    Henning Vitting - 2003-09-17

    Logged In: YES
    user_id=790067

    Beta release 2.06 has only been tested W2K, Eclipse R2.1
    and Jad v1.5.8.e.

    It has not yet been ported to Eclipse 3.0M?

    I have not been able to recreate the problem.
    I need some more information about your environment:
    * OS Version
    * JDK/JRE
    * Eclipse version
    * JAD Version
    * Is JAD in your environmert PATH?

     
  • Tonny Madsen

    Tonny Madsen - 2003-09-18

    Logged In: YES
    user_id=11863

    I understand you have not ported it to 3.0M3 yet, but I was
    hoping...

    * OS Version
    XP SP1 +all security fixes
    * JDK/JRE
    j2sdk1.4.2_1
    * Eclipse version
    3.0M3
    * JAD Version
    Jad v1.5.8e2.
    * Is JAD in your environmert PATH?
    No, it has been configured in. But it makes no differences

     
  • Henning Vitting

    Henning Vitting - 2003-09-18

    Logged In: YES
    user_id=790067

    I shure have some problems porting to 3M3 I will try to give
    progress information in Feature Requests item #800244.

    I am also working with some new features for JadClipse and
    they are being tested with 3M3 and i have not seen your
    problem, which worries me a little.

    Will you give me the exact scenario:
    * From where do you select the .class file?

     
  • Tonny Madsen

    Tonny Madsen - 2003-09-19

    Logged In: YES
    user_id=11863

    I can provoke the problem is several different ways, the
    easiest being just selecting the a .class with no
    corresponding .java file in the package explorer.

    I currently run j2sdk1.4.2_1 and eclipse-I20030917 if that
    matters -- but I have observed the problem with other
    combinations as well. And I use XP SP1.

     
  • Henning Vitting

    Henning Vitting - 2003-09-19

    Logged In: YES
    user_id=790067

    Tonny
    I am puzzled, I have almost the same configuration, have you
    seen this work with Eclipse 2.?
    Henning

     
  • Tonny Madsen

    Tonny Madsen - 2003-09-19

    Logged In: YES
    user_id=11863

    Honestly I can't say, though I can test it in a couple of days.

    I have only lately started to use the jadclipse in a project
    where the provided jar file occationally misbehaves and I need
    more insight as to the exact working of the involved classes...
    And I don't have the sources!

     
  • Nobody/Anonymous

    Logged In: NO

    We faced the same problem here, but the easy solution
    seems to add jad.exe somewhere into you PATH!

     
  • Tonny Madsen

    Tonny Madsen - 2003-09-25

    Logged In: YES
    user_id=11863

    Hi "nobody",

    I tried to add jad.exe to my PATH, but to no avail...

    /tonny

     
  • Nobody/Anonymous

    Logged In: NO

    Hi tonny,

    it worked for us,

    only left thing i can think of is to be sure about
    that there is no space in the path to jad.

    good luck
    rainer

     
  • Tonny Madsen

    Tonny Madsen - 2003-09-29

    Logged In: YES
    user_id=11863

    I have put jad in "C:\Program Files\Java\jad.exe", so yes
    there are spaces in the name. It works from the command line
    AFAIK, but I'll try putting it elsewhere and lso to use oldstyle
    names for it in eclipse.

    /tonny

     
  • Henning Vitting

    Henning Vitting - 2003-11-21
    • assigned_to: vitting --> nobody
     
  • Nobody/Anonymous

    Logged In: NO

    this problem is odd and seems to be related to having spaces
    within the JAD path. I have set JadClipse to find jad
    at "c:\program files\eclipse\plugins\jadclipse\jad.exe" and this
    error comes intermidently. I have then set the path
    to "c:\progra~1\eclipse\plugins\jadclipse\jad.exe" and it goes
    away only after shutting down eclipse and bringing it back
    up.

    I also noted that if I have the wrong JAD path in the
    JadClipse settings and open a file, it gives me the JadClipse
    error of not being able to create the process, however it
    seems that JadClipse plugin caches these values because
    subsequent files do not obtain this error only the ones
    previously opened.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.