DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 23rd February 2009
bsdnewbie999 bsdnewbie999 is offline
Package Pilot
 
Join Date: May 2008
Posts: 145
Default explore source code for installed program

How can i see the source code of an installed program like java log viewer? I downloaded the software from sourceforge.net but it doesn't provide source code.
Please help me.
Reply With Quote
  #2   (View Single Post)  
Old 23rd February 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by bsdnewbie999 View Post
I downloaded the software from sourceforge.net but it doesn't provide source code.
If all you were able to find are .jar files or .class files, then you will need to locate a Java decompiler to translate the .class files back to source.
  • Recognize that the variable names generated through a decompiler will most likely be auto-generated, & not descriptive as what could be found in the original source.
  • I have not seen any discussion on decompilers on the OpenBSD mailing lists, so you are on your own as to finding one & getting it to work. One example I found is the following:

    http://www.kpdus.com/jad.html

    ...however, I have no idea as to whether it will work on OpenBSD.
Your first step should be to spend time with a search engine looking for "Java decompiler".

There are techniques used to obfuscate Java code which makes decompiling difficult. You may or may not encounter them. Again, you are on your own.

I would highly recommend that you contact the authors on SourceForge & see if you can get source. This would be a far simpler solution, for decompiling is not guaranteed to work.

Last edited by ocicat; 23rd February 2009 at 02:43 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to compile GLUT source code on freebsd. welkin Programming 0 11th January 2009 03:15 PM
Google released Android source code graudeejs Off-Topic 1 22nd October 2008 10:02 PM
Source code for ed? matt FreeBSD Ports and Packages 1 21st October 2008 08:18 PM
Source code of coreutils to create Incident Response Disk audio FreeBSD General 6 5th July 2008 11:00 AM


All times are GMT. The time now is 05:17 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick