Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Associating class files with Jad

Reply
Thread Tools

Associating class files with Jad

 
 
Fahd Shariff
Guest
Posts: n/a
 
      07-12-2005
Hi all,

I am trying to associate java class files with Jad (in Windows) so that
when I click on a class file it is decompiled on-the-fly and displayed
in wordpad.

I have written a bat file which is executed when a class file is
clicked. It looks like this:

Code:
jad -p "%*" > "%*.jad"
start "C:\program files\Windows NT\Accessories\wordpad.exe" "%*.jad"
sleep 5
del "%*.jad"
This works fine, but I don't like the fact that a jad file is being
created. Is there some way to pipe the output of jad directly into
wordpad (without the intermediary file)?

I am not very familiar with wscript but I also put the following vbs
together which works partially:

Code:
Option Explicit
Dim objShell, objExecObject, strLine, objArgs
Set objShell = CreateObject("WScript.Shell")
Set objArgs = WScript.Arguments
Set objExecObject = objShell.Exec("jad -p " & objArgs(0))
objShell.Run "notepad"
strLine=""

Do Until objExecObject.StdOut.AtEndOfStream
strLine = objExecObject.StdOut.ReadLine()
objShell.sendKeys strLine
objShell.sendKeys "{ENTER}"
Loop

WScript.Quit
Any help on this front would be greatly appreciated.

Thanks,
--
Fahd Shariff
http://www.fahdshariff.cjb.net
"Let the code do the talking... "

 
Reply With Quote
 
 
 
 
Tom N
Guest
Posts: n/a
 
      07-13-2005
Fahd Shariff wrote:

> I am trying to associate java class files with Jad (in Windows) so that
> when I click on a class file it is decompiled on-the-fly and displayed
> in wordpad.


Use DJ Java Decompiler.
It uses jad and has a GUI to display the code so you don't need to stuff around with Wordpad etc.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting JAD/JAR files to PCD for Palm 4.0 Blake Essing Java 0 11-15-2006 01:29 PM
J2ME: manifest.mf vs. JAD files John Goche Java 1 12-13-2005 01:21 AM
Application to run mobile-based games *jad, *.jar files on Windows ***JB Computer Support 1 12-02-2004 01:40 AM
Re: J2ME question: launch JAD files from the desktop Darryl L. Pierce Java 13 08-07-2003 02:58 PM
Re: J2ME question: launch JAD files from the desktop Timo Kinnunen Java 3 08-03-2003 08:36 AM



Advertisments