Decompile
how can a class file be decompiled to get the java
source file ?
there is a popular decompiler called mocha ,
gives more over equalent java file
regards
krishna moorthi
Similar Messages
-
Class casting, creating an image and decompiling...
Hi, I've got a couple of questions:
1)
How can I fully decompile classes, so with the implementation of the methods? Is it always possible to fully decompile a class file? When is it and when not?
2)
I aks this questions before, but I still haven't got it working, so sorry, but I ask it again :) :
I want to create my own class, for example cMyClass which extends the java.awt.Image class, which has abstract methods. How do these methods(for example getGraphics etc) have to be implemented?
3)
I can't cast a Image to cMyClass... why not?
Someone told me he did the following:
Canvas c = new Canvas()
cMyClass oImage = (cMyClass) c.createImage (100, 100);
and that this worked... I tried to do this too, and it seemed to work, but it actually didn't!!
I found out that c.createImage returns a null reference!!! That's why Java was able to cast it to my own cMyClass (not a problem to cast a null to something else), but when I created a Image (by doing a lot of unnessacary difficult stuff), and then tried to cast this Image to cMyClass it throw a ClassCastException or something like that...
How can I cast the java.awt.Image class to my class anyway?
3)
Why can't you create a image like i've done above or even like below:
Canvas c = new Canvas()
Image oImage = c.createImage (100, 100);
Why does this return a null reference?
Isn't there a better way to create an image?
4)
The getWidth and getHeight need a I thought observer...? Why is this? I just want the width and height and don't have an observer or something like that. Is there a way around this?
I tried getWidth(null) but this returns -1
Please help! :)Hi, I've got a couple of questions:
1)
How can I fully decompile classes, so with the
implementation of the methods? Is it always possible
to fully decompile a class file? When is it and when
not?You can always get a dump of the bytecode with 'javap -c'. If you don't want to figure things out yourself, try searching google for a class file decompiler, possibly a de-obfuscator.
De-compilation is completely possible if the original author wanted that, by including debugging information. Depending on the degree of such information and the amount of code obfuscation, the decompiled code may lack variable names, line numbers, field and method names, class names, and even code structure. Names and line numbers are usually not re-creatable automatically, since the information is simply lost, but you can replace them with your own strings when analyzing an unknown class file (using the correct tools). Re-creating the original code structure may work in some cases, but to me the general case looks rather close to the halt problem (i.e. not solvable).
Use a de-obfuscator, hope you've got good luck, and analyze the bytecode manually if that doesn't work.
2)
I aks this questions before, but I still haven't got
it working, so sorry, but I ask it again :) :
I want to create my own class, for example cMyClass
which extends the java.awt.Image class, which has
abstract methods. How do these methods(for example
getGraphics etc) have to be implemented?I don't really understand the problem. 'abstract' means on the language level that your subclass must provide an implementation, i.e. a method body. What that method is expected to do is explained in the javadocs for Image. But in fact you're free to do anything. You could play a sound in the getWidth() method (replace with any method name if you want). Just consider the fact that a lot of code calls getWidth in the hope of getting the width of the image, not playing a sound. So much about the language level.
On a higher level, a subclass of Image should implement a certain way to describe an image. AFAIK this means that your code must know the size of the image and know how to produce the pixels of the image. I can't tell you in general how you must do this, because it depends on your special case. This boils down to the question, why do you want to write a subclass of 'Image'? What new way of describing and image have you come up with?
3)
I can't cast a Image to cMyClass... why not?Simple, and that's certainly not an ALT. Because that specific Image is not a cMyClass. It's probably a BufferedImage or similar that was produced by AWT.
Please read the specs carefully what casting is about.
Someone told me he did the following:
Canvas c = new Canvas()
cMyClass oImage = (cMyClass) c.createImage (100,
100);
and that this worked... I tried to do this too, and it
seemed to work, but it actually didn't!!
I found out that c.createImage returns a null
reference!!! That's why Java was able to cast it to my
own cMyClass (not a problem to cast a null to
something else), but when I created a Image (by doing
a lot of unnessacary difficult stuff), and then tried
to cast this Image to cMyClass it throw a
ClassCastException or something like that...
How can I cast the java.awt.Image class to my class
anyway?You can't, and if you understood casting then you'd understand that it wouldn't make sense.
3, 4(don't know)
Maybe stupid question, but for example the BufferedImage, is this
completly written in Java?
How is the link made between the OS+hardware and the Java code? I
mean, displaying images etc. is very platform dependend not?Look for JNI (Java Native Interface). It's a way to link native (e.g. C) code with Java code. -
Greetings:
I haven't been on the forum for a while, but I have a real
problem. I inadvertently deleted some components of my original
Robohelp data directory, so I followed the (excellent) instructions
posted here regarding the use of the Keytools.exe pgm to decompile
the chm file. This has worked for me in the past.
Today, however, I find that, although the decompile works
fine, the next steps fail -
Open Robohelp HTML from the selection of pgms within Robohelp
X5.
Select New Project
Click the Import tab
Select MS-HTML Help project; OK
Select the HHP file that keytools created; Open it.
when I attempt to open the Helpfile.hhp file, a msg appears -
'unable to create database - check that the directory is not
read-only'
the file folder is indeed marked 'read-only', but every time
I uncheck it, the change is 'ignored'.
I have never seen an instance in Windows XP where this
happened before.
Needless to say, I can't successfully recreate my Robohelp
data files, at this point.
Has anyone else seen this?
thanx for your help!
Robert Gross
Budgetext Inc.
Technical Documentation and TrainingPeter: Thanks for the excellent reference material - each
method seems to successfully retrieve the data topics, but
unfortunately I get the same error msg upon opening the HHP file:
'unable to create database - check that the directory is not
read-only'
I have searched the forum, and one possible answer seemed to
be, 'reinstall Robohelp', but I don't have access to the original
install disks, so I really wanted to avoid that if possible.
Any other suggestions would be appreciated.
In the meantime, I will continue looking for those install
disks....
Robere 144 -
How to convert java class file version without decompiling
Hi,
Oracle R12.1.3 i am having illegal access error while try to access the class file version Java 1.3 uses major version 47,So how to convert the class file version without using decompiling.
Current java version is 1.6.0_07
Is there any tool or API for converting class file version?
Thanks,
Selvapandian TBeside this I wonder where you get your error from since AFAIK 12c comes with java 1.6.
Well wonder no more!
OP isn't using Oracle 12c database.
They are using Oracle R12.1.3 - which is the E- Business Suite. -
Security question: Can you decompile a PL/SQL compiled procedure?
I am wondering if anyone would be able to tell me if it is possible to decompile a compiled oracle PL/SQL procedure.
Scenario:
I create some data encryption code in PL/SQL that contains an encryption key string. I compile the PL/SQL as a stored procedure and store that binary object as a BLOB in the database. If a hacker can snag a whole database that would include this BLOB and he figures out that the BLOB might contain the key, can he get access to the key by decompiling somehow the BLOB back into PL/SQL statements?
Thanks in advance!!
Gary Glover, CISSP
[email protected]Gary, when a hacker gets into your database (with sysdba rights), your are pretty much screwed - even with encrypted code and data.
To obtain that level of access, the hacker must be good. And persistant. Thus you can expect that he will compromise the rest of the stuff inside the database.
Alternatively, your database security was shoddy - trying to patch security via encrypting code in the database is a poor second.
It is also a question of time and effort vs. benefits. Spend 80% attempting to secure the code in the database, and 20% securing the database? Or 90% securing the database and 10% securing the code and data in the database? -
How to restrict the .class file from decompilation
Hi all,
i got a security problem. i need all the java class files to be most secured. is there any to restriction on the java class files from decompilation. is that possible?. pls help me out. it's very urgent
thanks in advanceYou can make it harder to understand the decompiled code if you use an obfuscator. (I don't have links to any, do a google search, or search these forums, it have been discussed here previously.)
You cannot completely prevent decompilation, though. Obfuscating does not for example not mean that any passwords you have hardcoded in the source is secure. -
Need help to decompile .SWF
I hope this doesn't break any forum rules, but I desparately need an .SWF decompiled to .FLA. I am the webmaster for a small (not for profit) club, and I've inherited the club website. Naturally, the source for many things are missing, including the main page http://www.mjoc.org.au/
Is there anybody who could do me a great favour and decompile the attached file for me?
There are several decompilers out there, but they all seem around the $100 mark, and the club can't afford such a thing, particularly as it's a one off, and may not be usable. I've tried a few trial versions, but they all have limitations which don't produce a viable .FLA.
Any help greatly appreciated.I have to say, decompiling a swf saved my arse once, big time.
It was a file that I authored, and had a lot of AS in it that i had done for the first time and it took several days to do. I was working on it in three different locations and ultimatley didn't save the most recent version. Of course I didn't discover this until about 6 monthes later when I had to make some updates.
I couldn't remember what I'd done in the code, or how I did it or anything. I also broke a cardinal rule of programming and didn't document what I did either. So I ran the decompiler, all the code was intact and I breathed a HUGE sigh of relief and vowed to never ever let my files get out of sync again! -
i have a jar file, how can i decompile it?
alin19 wrote:
i have a jar file, how can i decompile it?A jar cannot be decompiled. A jar file is just a (simle) container that can be opened by (most) archive managers (WinZIP and the likes). In that jar file, there are .class files which can be decompiled: Google for "class decompile" and you will find tens of thousands of hits. -
How to decompile an old director project?
how can I decompile an old director project?
Thank you for the reply...
The disc was created in April 2004 with probably the latest version of Director at that time. We created the CD for one of our clients that now wants to make changes...
Any help would be greatly appreciated. -
Issue with Java Decompiler, please help
I'm using Mocha to decompile a *.class file from the standard OAF. I'd like to reuse some logic which Oracle has previously developed. I'd like to decompile DetailDataInputCO.class but Mocha errors out with "Ignoring field attribute Synthetic".
If anyone has a good decompiler, could you please decompile a class file for me. Please contact me at [email protected] and I can send you the file. It would be greatly appreciated.
Thanks,
-Scott// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: DetailDataInputCO.java
package oracle.apps.ap.oie.webui;
import com.sun.java.util.collections.HashMap;
import java.io.Serializable;
import java.util.Vector;
import oracle.apps.ap.oie.entry.AttendeeRuleUI;
import oracle.apps.ap.oie.server.DetailAMImpl;
import oracle.apps.ap.oie.utility.OIEConstants;
import oracle.apps.ap.oie.utility.OIEUtil;
import oracle.apps.fnd.common.MessageToken;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.flexj.*;
import oracle.apps.fnd.framework.*;
import oracle.apps.fnd.framework.webui.*;
import oracle.apps.fnd.framework.webui.beans.*;
import oracle.apps.fnd.framework.webui.beans.form.OAChoiceBean;
import oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean;
import oracle.apps.fnd.framework.webui.beans.layout.*;
import oracle.apps.fnd.framework.webui.beans.message.*;
import oracle.apps.fnd.framework.webui.beans.nav.OANavigationBarBean;
import oracle.apps.fnd.framework.webui.beans.nav.OAPageButtonBarBean;
import oracle.apps.fnd.framework.webui.beans.table.*;
import oracle.cabo.ui.*;
import oracle.cabo.ui.beans.*;
import oracle.cabo.ui.beans.form.*;
import oracle.cabo.ui.beans.layout.*;
import oracle.cabo.ui.beans.message.MessageStyledTextBean;
import oracle.cabo.ui.beans.message.MessageTextInputBean;
import oracle.cabo.ui.beans.nav.NavigationBarBean;
import oracle.cabo.ui.beans.table.ColumnBean;
import oracle.cabo.ui.beans.table.TableBean;
import oracle.jbo.domain.Number;
// Referenced classes of package oracle.apps.ap.oie.webui:
// ExpensesCO, NavigationUtility
public class DetailDataInputCO extends OAControllerImpl
public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
if(oapagecontext.isLoggingEnabled(2))
oapagecontext.writeDiagnostics(this, "start processRequest", 2);
boolean flag = false;
super.processRequest(oapagecontext, oawebbean);
OAApplicationModule oaapplicationmodule = oapagecontext.getRootApplicationModule();
OAApplicationModule oaapplicationmodule1 = oapagecontext.getApplicationModule(oawebbean);
String s = (String)oaapplicationmodule.invokeMethod("getMultipleCurrenciesFlag");
String s1 = (String)oapagecontext.getTransactionValue("ApWebTaxEnable");
String s2 = (String)oapagecontext.getTransactionValue("PaymentCurrencyCode");
String s3 = (String)oapagecontext.getTransactionValue("ApWebDescFlexName");
String s4 = (String)oapagecontext.getTransactionValue("CCPage");
boolean flag2 = s4 == null || s4.equals("Y");
boolean flag3 = ((String)oapagecontext.getTransactionValue("IsProjectEnabled")).equals("Y") || ((String)oapagecontext.getTransactionValue("IsProjectEnabled")).equals("R");
String s5 = (String)oapagecontext.getTransactionValue("ApWebEnableGrantsAccounting");
boolean flag4 = flag3 && s5 != null && s5.equals("Y");
boolean flag5 = ((Boolean)oaapplicationmodule.invokeMethod("isVATEnabled")).booleanValue();
String _tmp = (String)oapagecontext.getTransactionValue("ApWebEnableLineLevelAccounting");
oapagecontext.getParameter("ButtonLink");
String s6 = "N";
oracle.apps.ap.oie.setup.OIESetup.Setup setup = (oracle.apps.ap.oie.setup.OIESetup.Setup)oaapplicationmodule.invokeMethod("getSetup");
OADescriptiveFlexBean oadescriptiveflexbean = null;
OAStackLayoutBean oastacklayoutbean = (OAStackLayoutBean)createWebBean(oapagecontext, "STACK_LAYOUT");
oawebbean.addIndexedChild(oastacklayoutbean);
OATableLayoutBean oatablelayoutbean = (OATableLayoutBean)createWebBean(oapagecontext, "TABLE_LAYOUT");
oastacklayoutbean.addIndexedChild(oatablelayoutbean);
oatablelayoutbean.setWidth("100%");
OASpacerRowBean oaspacerrowbean = (OASpacerRowBean)createWebBean(oapagecontext, "SPACER_ROW");
if(flag5)
OARowLayoutBean oarowlayoutbean = (OARowLayoutBean)createWebBean(oapagecontext, "ROW_LAYOUT");
oatablelayoutbean.addRowLayout(oarowlayoutbean);
OACellFormatBean oacellformatbean = (OACellFormatBean)createWebBean(oapagecontext, "CELL_FORMAT");
oarowlayoutbean.addIndexedChild(oacellformatbean);
OARawTextBean oarawtextbean = (OARawTextBean)createWebBean(oapagecontext, "RAW_TEXT");
oacellformatbean.addIndexedChild(oarawtextbean);
oacellformatbean.setHAlign("start");
oacellformatbean.setColumnSpan(2);
oarawtextbean.setText(oapagecontext.getMessage("SQLAP", "OIE_MERCHANT_HEADING", new MessageToken[0]));
oarawtextbean.setStyleClass("OraInstructionText");
oatablelayoutbean.addIndexedChild(oaspacerrowbean);
OARowLayoutBean oarowlayoutbean1 = (OARowLayoutBean)createWebBean(oapagecontext, "ROW_LAYOUT");
oatablelayoutbean.addRowLayout(oarowlayoutbean1);
OACellFormatBean oacellformatbean1 = (OACellFormatBean)createWebBean(oapagecontext, "CELL_FORMAT");
oarowlayoutbean1.addIndexedChild(oacellformatbean1);
OATableLayoutBean oatablelayoutbean1 = (OATableLayoutBean)createWebBean(oapagecontext, oawebbean, "DRRequiredIconText");
oacellformatbean1.addIndexedChild(oatablelayoutbean1);
oatablelayoutbean.addIndexedChild(oaspacerrowbean);
OARowLayoutBean oarowlayoutbean2 = (OARowLayoutBean)createWebBean(oapagecontext, "ROW_LAYOUT");
oatablelayoutbean.addRowLayout(oarowlayoutbean2);
OACellFormatBean oacellformatbean2 = (OACellFormatBean)createWebBean(oapagecontext, "CELL_FORMAT");
OACellFormatBean oacellformatbean3 = (OACellFormatBean)createWebBean(oapagecontext, "CELL_FORMAT");
oarowlayoutbean2.addIndexedChild(oacellformatbean2);
oarowlayoutbean2.addIndexedChild(oacellformatbean3);
OATableLayoutBean oatablelayoutbean2 = (OATableLayoutBean)createWebBean(oapagecontext, "TABLE_LAYOUT");
OATableLayoutBean oatablelayoutbean3 = (OATableLayoutBean)createWebBean(oapagecontext, "TABLE_LAYOUT");
oacellformatbean2.addIndexedChild(oatablelayoutbean2);
oacellformatbean2.setVAlign("top");
oacellformatbean3.addIndexedChild(oatablelayoutbean3);
oacellformatbean3.setVAlign("top");
oatablelayoutbean2.addIndexedChild(createWebBean(oapagecontext, oawebbean, "DetailStartDate"));
oatablelayoutbean2.addIndexedChild(oaspacerrowbean);
oatablelayoutbean2.addIndexedChild(createWebBean(oapagecontext, oawebbean, "DetailDailyRate"));
oatablelayoutbean2.addIndexedChild(oaspacerrowbean);
oatablelayoutbean2.addIndexedChild(createWebBean(oapagecontext, oawebbean, "DetailDays"));
oatablelayoutbean2.addIndexedChild(oaspacerrowbean);
if(flag2)
OAMessageStyledTextBean oamessagestyledtextbean = (OAMessageStyledTextBean)createWebBean(oapagecontext, oawebbean, "DetailDisplayReceiptAmount");
oatablelayoutbean2.addIndexedChild(oamessagestyledtextbean);
oatablelayoutbean2.addIndexedChild(oaspacerrowbean);
oamessagestyledtextbean.setText(oamessagestyledtextbean.getText(oapagecontext) != null ? oamessagestyledtextbean.getText(oapagecontext) + " " : "");
if(oamessagestyledtextbean.getText(oapagecontext) != null && !oamessagestyledtextbean.getText(oapagecontext).equals(""))
OAStyledTextBean oastyledtextbean = (OAStyledTextBean)createWebBean(oapagecontext, "TEXT");
oastyledtextbean.setViewUsageName("OneReceiptBasedVO");
oastyledtextbean.setViewAttributeName("ReceiptCurrencyCode");
oastyledtextbean.setCSSClass("OraDataText");
oamessagestyledtextbean.setEnd(oastyledtextbean);
} else
OAMessageTextInputBean oamessagetextinputbean = (OAMessageTextInputBean)createWebBean(oapagecontext, oawebbean, "DetailReceiptAmount");
oatablelayoutbean2.addIndexedChild(oamessagetextinputbean);
oatablelayoutbean2.addIndexedChild(oaspacerrowbean);
if(s.equals("N"))
OAStyledTextBean oastyledtextbean1 = (OAStyledTextBean)createWebBean(oapagecontext, "TEXT");
oastyledtextbean1.setViewUsageName("OneReceiptBasedVO");
oastyledtextbean1.setViewAttributeName("ReceiptCurrencyCode");
oastyledtextbean1.setCSSClass("OraDataText");
oamessagetextinputbean.setEnd(oastyledtextbean1);
} else
OAChoiceBean oachoicebean = (OAChoiceBean)createWebBean(oapagecontext, "POPLIST", null, "CurrencyPopList");
oachoicebean.setViewUsageName("OneReceiptBasedVO");
oachoicebean.setViewAttributeName("ReceiptCurrencyCode");
oachoicebean.setPickListViewObjectDefinitionName("oracle.apps.ap.oie.server.CurrenciesVO");
oachoicebean.setListValueAttribute("CurrencyCode");
oachoicebean.setListDisplayAttribute("CurrencyCodeName");
OAStaticStyledTextBean oastaticstyledtextbean = (OAStaticStyledTextBean)createWebBean(oapagecontext, oawebbean, "Currency");
oachoicebean.setShortDesc(oastaticstyledtextbean.getLabel());
oamessagetextinputbean.setEnd(oachoicebean);
if(flag2 || s.equals("N"))
OAMessageStyledTextBean oamessagestyledtextbean1 = (OAMessageStyledTextBean)createWebBean(oapagecontext, oawebbean, "DetailDisplayExchRate");
oatablelayoutbean2.addIndexedChild(oamessagestyledtextbean1);
oatablelayoutbean2.addIndexedChild(oaspacerrowbean);
} else
OAMessageTextInputBean oamessagetextinputbean1 = (OAMessageTextInputBean)createWebBean(oapagecontext, oawebbean, "DetailExchRate");
oatablelayoutbean2.addIndexedChild(oamessagetextinputbean1);
oatablelayoutbean2.addIndexedChild(oaspacerrowbean);
oamessagetextinputbean1.setRequired("yes");
OAMessageStyledTextBean oamessagestyledtextbean2 = (OAMessageStyledTextBean)createWebBean(oapagecontext, oawebbean, "DetailReimbursAmt");
oatablelayoutbean2.addIndexedChild(oamessagestyledtextbean2);
if(oamessagestyledtextbean2.getText(oapagecontext) != null)
oamessagestyledtextbean2.setText(oamessagestyledtextbean2.getText(oapagecontext) + " " + s2);
oatablelayoutbean2.addIndexedChild(oaspacerrowbean);
OAMessageCheckBoxBean oamessagecheckboxbean = (OAMessageCheckBoxBean)createWebBean(oapagecontext, oawebbean, "DetailReceiptMissing");
oatablelayoutbean2.addIndexedChild(oamessagecheckboxbean);
oatablelayoutbean2.addIndexedChild(oaspacerrowbean);
Integer integer = (Integer)oaapplicationmodule.invokeMethod("getNumberOfTaxCodes");
String s7 = (String)oaapplicationmodule1.invokeMethod("getTaxCodeUpdateable");
OAWebBeanDataAttribute oawebbeandataattribute;
if(s7 == null || s7.equals("Y"))
oawebbeandataattribute = (OAWebBeanDataAttribute)createWebBean(oapagecontext, oawebbean, "DetailTaxCode");
else
oawebbeandataattribute = (OAWebBeanDataAttribute)createWebBean(oapagecontext, oawebbean, "DetailTaxCodeDisplay");
OAMessageCheckBoxBean oamessagecheckboxbean1 = (OAMessageCheckBoxBean)createWebBean(oapagecontext, oawebbean, "DetailAmtInclTax");
if(s1 != null && s1.equals("Y") && integer.intValue() > 0)
oatablelayoutbean2.addIndexedChild(oamessagecheckboxbean1);
oatablelayoutbean2.addIndexedChild(oaspacerrowbean);
oatablelayoutbean2.addIndexedChild(oawebbeandataattribute);
oatablelayoutbean2.addIndexedChild(oaspacerrowbean);
String s8 = (String)oaapplicationmodule1.invokeMethod("getExpTypeWebPrompt");
Object obj = null;
Object obj1 = null;
Boolean boolean1 = (Boolean)oaapplicationmodule1.invokeMethod("isExpTypeInPoplist");
if(flag4 && !boolean1.booleanValue())
oaapplicationmodule1.invokeMethod("resetWebParameterId");
String s11 = (String)oaapplicationmodule1.invokeMethod("getAwardNumber");
MessageToken amessagetoken[] = {
new MessageToken("EXP_TYPE", s8), new MessageToken("AWARD_NUM", s11 != null ? s11 : "")
OAException oaexception = new OAException("SQLAP", "OIE_DEFAULT_EXPENDITURE_TYPE", amessagetoken, (byte)1, null);
oaexception.setApplicationModule(oaapplicationmodule1);
oapagecontext.putDialogMessage(oaexception);
OAMessageLovInputBean oamessagelovinputbean = (OAMessageLovInputBean)createWebBean(oapagecontext, oawebbean, "DetailProjectNumber");
OAMessageLovInputBean oamessagelovinputbean1 = (OAMessageLovInputBean)createWebBean(oapagecontext, oawebbean, "DetailTaskNumber");
if(flag3)
oatablelayoutbean3.addIndexedChild(oamessagelovinputbean);
oatablelayoutbean3.addIndexedChild(oaspacerrowbean);
oatablelayoutbean3.addIndexedChild(oamessagelovinputbean1);
oatablelayoutbean3.addIndexedChild(oaspacerrowbean);
String s12 = (String)oaapplicationmodule1.invokeMethod("getProjectNumber");
if(s12 != null)
oamessagelovinputbean1.setRequired("yes");
else
oamessagelovinputbean1.setRequired("no");
if(flag4)
OAMessageLovInputBean oamessagelovinputbean2 = (OAMessageLovInputBean)createWebBean(oapagecontext, oawebbean, "DetailAwardNumber");
oatablelayoutbean3.addIndexedChild(oamessagelovinputbean2);
oatablelayoutbean3.addIndexedChild(oaspacerrowbean);
oatablelayoutbean3.addIndexedChild(createWebBean(oapagecontext, oawebbean, "RBWebParam"));
if(s3 != null && ("Y".equals(s3) || "B".equals(s3)))
oadescriptiveflexbean = (OADescriptiveFlexBean)createWebBean(oapagecontext, oawebbean, "DetailFlex");
oatablelayoutbean3.addIndexedChild(oadescriptiveflexbean);
oatablelayoutbean3.addIndexedChild(oaspacerrowbean);
if(flag4)
OAStyledTextBean oastyledtextbean2 = (OAStyledTextBean)createWebBean(oapagecontext, "TEXT");
oatablelayoutbean3.addIndexedChild(oastyledtextbean2);
String s9 = oapagecontext.getMessage("SQLAP", "OIE_EXPENDITURE_TYPE_TIP", null);
oastyledtextbean2.setText(oapagecontext, s9);
oastyledtextbean2.setStyleClass("OraInlineInfoText");
OAWebBeanDataAttribute oawebbeandataattribute1 = null;
if(oapagecontext.getParameter("_FORMEVENT") == null || !oapagecontext.getParameter("_FORMEVENT").startsWith("FLEX_CONTEXT_CHANGED"))
if(!boolean1.booleanValue() && s8 != null)
oadescriptiveflexbean.setFlexContext(oapagecontext, null);
Serializable aserializable[] = {
null
oapagecontext.getApplicationModule(oawebbean).invokeMethod("onChangeExpenseDFFContext", aserializable);
} else
oadescriptiveflexbean.setFlexContext(oapagecontext, s8);
oadescriptiveflexbean.processFlex(oapagecontext);
oawebbeandataattribute1 = (OAWebBeanDataAttribute)oadescriptiveflexbean.getIndexedChild(null, 0);
oadescriptiveflexbean.setFlexTableRendered(false);
oatablelayoutbean3.addIndexedChild(oawebbeandataattribute1);
oatablelayoutbean3.addIndexedChild(oaspacerrowbean);
if(!boolean1.booleanValue() && s8 != null)
oawebbeandataattribute1.setRequired("no");
else
oawebbeandataattribute1.setRequired("yes");
DescriptiveFlexfield descriptiveflexfield = (DescriptiveFlexfield)oadescriptiveflexbean.getAttributeValue(OAWebBeanConstants.FLEXFIELD_REFERENCE);
int i = descriptiveflexfield.indexOfContextSegment();
if(oapagecontext.getParameter("_FORMEVENT") != null && oapagecontext.getParameter("_FORMEVENT").startsWith("FLEX_CONTEXT_CHANGED"))
String s14 = descriptiveflexfield.getSegment(i).getValue().getDisplay();
Serializable aserializable2[] = {
s14
oapagecontext.getApplicationModule(oawebbean).invokeMethod("onChangeExpenseDFFContext", aserializable2);
} else
OAMessageChoiceBean oamessagechoicebean = (OAMessageChoiceBean)createWebBean(oapagecontext, oawebbean, "DetailExpType");
oatablelayoutbean3.addIndexedChild(oamessagechoicebean);
oatablelayoutbean3.addIndexedChild(oaspacerrowbean);
oamessagechoicebean.setPickListViewUsageName("DetailExpenseTypesVO");
if(flag4)
OAStyledTextBean oastyledtextbean3 = (OAStyledTextBean)createWebBean(oapagecontext, "TEXT");
oatablelayoutbean3.addIndexedChild(oastyledtextbean3);
String s10 = oapagecontext.getMessage("SQLAP", "OIE_EXPENDITURE_TYPE_TIP", null);
oastyledtextbean3.setText(oapagecontext, s10);
oastyledtextbean3.setStyleClass("OraInlineInfoText");
if(flag3)
String s13 = (String)oaapplicationmodule1.invokeMethod("getExpenditureType");
boolean flag7 = ((String)oapagecontext.getTransactionValue("IsProjectEnabled")).equals("R") && s13 != null;
if(flag7)
oamessagelovinputbean.setRequired("yes");
oamessagelovinputbean1.setRequired("yes");
boolean flag6 = ((Boolean)oaapplicationmodule1.invokeMethod("isLocationSchedule")).booleanValue();
boolean flag8 = flag5 || flag6;
if(setup.getReceiptBasedLocation() != null)
flag8 = setup.getReceiptBasedLocation().booleanValue() || flag8;
if(flag8)
if(flag6 || flag5)
OAMessageLovInputBean oamessagelovinputbean3 = (OAMessageLovInputBean)createWebBean(oapagecontext, oawebbean, "LocationName");
oatablelayoutbean3.addIndexedChild(oamessagelovinputbean3);
oamessagelovinputbean3.setRequired("yes");
oatablelayoutbean3.addIndexedChild(createWebBean(oapagecontext, oawebbean, "LocationId"));
} else
OAMessageTextInputBean oamessagetextinputbean2 = (OAMessageTextInputBean)createWebBean(oapagecontext, oawebbean, "RBLocation");
oatablelayoutbean3.addIndexedChild(oamessagetextinputbean2);
oatablelayoutbean3.addIndexedChild(oaspacerrowbean);
if(flag2)
OAMessageStyledTextBean oamessagestyledtextbean3 = (OAMessageStyledTextBean)createWebBean(oapagecontext, oawebbean, "TransactionLocation");
oatablelayoutbean3.addIndexedChild(oamessagestyledtextbean3);
oatablelayoutbean3.addIndexedChild(oaspacerrowbean);
Object obj2 = null;
Object obj3 = null;
String s17 = null;
if((OAMessageTextInputBean)oawebbean.findIndexedChildRecursive("RBLocation") != null)
OAMessageTextInputBean oamessagetextinputbean5 = (OAMessageTextInputBean)oawebbean.findIndexedChildRecursive("RBLocation");
s17 = (String)oamessagetextinputbean5.getValue(oapagecontext);
} else
if((OAMessageLovInputBean)oawebbean.findIndexedChildRecursive("LocationName") != null)
OAMessageLovInputBean oamessagelovinputbean4 = (OAMessageLovInputBean)oawebbean.findIndexedChildRecursive("LocationName");
s17 = (String)oamessagelovinputbean4.getValue(oapagecontext);
OAMessageStyledTextBean oamessagestyledtextbean5 = (OAMessageStyledTextBean)oawebbean.findIndexedChildRecursive("TransactionLocation");
String s19 = (String)oaapplicationmodule1.invokeMethod("getTransactionLocation");
if(s19 != null && !s19.equalsIgnoreCase(s17))
oamessagestyledtextbean5.setValue(oapagecontext, s19);
oamessagestyledtextbean3.setRendered(true);
boolean flag1 = true;
} else
oamessagestyledtextbean3.setRendered(false);
if(flag2)
OAMessageStyledTextBean oamessagestyledtextbean4 = (OAMessageStyledTextBean)createWebBean(oapagecontext, oawebbean, "DetailDisplayMerchantName");
oatablelayoutbean3.addIndexedChild(oamessagestyledtextbean4);
oatablelayoutbean3.addIndexedChild(oaspacerrowbean);
} else
OAMessageTextInputBean oamessagetextinputbean3 = (OAMessageTextInputBean)createWebBean(oapagecontext, oawebbean, "DetailMerchantName");
Serializable aserializable1[] = {
getLocationId(oapagecontext, oawebbean)
Class aclass[] = {
oracle.jbo.domain.Number.class
if(((Boolean)oaapplicationmodule1.invokeMethod("isMerchantRequired", aserializable1, aclass)).booleanValue())
oamessagetextinputbean3.setRequired("yes");
oatablelayoutbean3.addIndexedChild(oamessagetextinputbean3);
oatablelayoutbean3.addIndexedChild(oaspacerrowbean);
} -
Need to decompile a lone .swf, need help...
Heya,
So I'm working on this site:
http://www.spencerhill.us/green-dragon/home
and I'm picking up the pieces left by a previous developer.
Unfortunately he didn't seem to leave the .fla file of the
navigation .swf (it's the vines that border that page). So I'm left
to either rebuild the .fla or decompile it but I don't have access
to a decompiler. I was wondering if any of you might be able to
help?
Thanks!HI
Read this
http://www.flashjester.com/?section=faq&cPath=50#224
Regards
FlashJester Support Team
e. - [email protected]
w. - www.flashjester.com
"This has been one of the most impressive and thoroughly
pleasant
experiences of customer support I have ever come across -
astounding!"
Director - hedgeapple -
Buttons not behaving after decompile.
Hi all,
It's difficult to ask this question without posting the source file to see - but if I explain the issues...
Basically I can't for the life of me work out why my buttons aren't behaving correctly. I received a job from a client to make some upgrades to a very old flash template without the source file.
I decompiled the .fla as the original has long gone, and it seems fine accept my buttons are working as expected.
I know it's vague but does anybody have any experience of issues with decomiled flash movies which may explain my problem.
Should I be looking in a particular area...Does decompiling affect the code?
Could there be issues with how the file is published?
I know I'm being a little vague....:-)
Chrisdecompiling definitely affects code. it's common to have a decompiled mess that doesn't work, at all.
but if your only issue is with some buttons, check if they exist on-stage in some timeline. if they do, click to select and check an instance name. then use movie explorer to find code that references that name.
that may or may not be all you need to do. the buttons may be created with code and they are not on-stage in the fla. and/or the button names may be referenced dynamically with array notation especially if they are named something like btn1, btn2 etc.
finding the relevant code is always possible. -
How Can I protect my swf files from decompiling / saving
I have navigated through the internet for a long time now but
could not find the solution to my problem which is "how to protect
my swf file from decompiling/saving"?
I know that it CAN BE DONE and here is an example of a file
on the internet that cannot be saved or decompiled using any
software that I have come across (ie:SOTHINK decompiler, saveflash)
http://www.3dinternet.com/video.swf
Any help? any hints ?
Thanks
HagopHagop,
> I have navigated through the internet for a long time
now but
> could not find the solution to my problem which is "how
to
> protect my swf file from decompiling/saving"?
There is no way to protect your SWF from decompiling. Any
commercial
software on the market can be decompiled -- including the
Flash authoring
tool and Photoshop, for example -- which is why softare
generally ships with
an end user license agreement (EULA) that expects you to
agree not to
decompile or reverse engineer your purchase.
Most Flash content (other than RTMP requests for video, for
example) are
HTTP requests, which by nature means the content is
downloaded to your hard
drive, just like HTML documents, CSS files, JPGs, and GIFs.
Your browser
requests the files, downloads them to your hard drive, then
displays them
from your local copy.
> I know that it CAN BE DONE and here is an example of a
> file on the internet that cannot be saved or decompiled
using
> any software that I have come across
What you've seen, then, is merely the result of software
that uses
unknown (to you or to your sofware) encryption/obfuscation
algorithms. Keep
trying, and you'll eventually nail it.
At best, you can use obfuscators to temporarily deter a
certain segment
of the decompiling-inclined population.
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design." -
I need java decompiler for multiple class
Hello, i need a java decompiler for multiple class.
avoiding of decompile one to one.
ThanksUse JAD it has recursive decompiles.
-
URGENT Flash Decompiler Needed
I am wondering if anyone has a .swf decompiler. I was working
on the final corrections to a flash site for my client Cabinet
Source
http://www.hookmedia.biz/cabinet_source/v4_f
and I had to restart my computer and when I restarted it and tried
to open the .fla it said "Failed to open document" and now I can't
access it at all. So I am wondering if anyone has a decompiler and
if you do would you be willing to convert my .swf to an fla? This
is really urgent, I literally was making the final corrections to
the site tonight for my client. Thanks in advance.
http://www.hookmedia.biz/cabinet_source/v4_f/index.swf
and index.flawithhisstripes wrote:
> Urami, thanks for your reply!
> That was what I thought too except that I had this
broken into three
> scenes: preloader intro and site. And in this particular
swf the preloader and
> the intro scenes are combined, yet the site scene is not
included. Which leads
> me to believe there's either some sort of glitch in the
software, which is
> completely possible, or we just didn't do something
correctly, which is
> obviously less likely because it's a pretty basic
process of a UI perspective.
as i said in previous post, there is no actual scenes in
flash. Scene are blank frames
and they are not included when the movie is exported.
This is the very reason why we always use label names in
action not scene names as using
go to (scene name) fail to perform almost 80 % of the time.
I don't think it's a glitch, it can't recreate something that
isn't there.
Think of scene as side note sticker which you never give to
client once the job is done.
Pretty much it, minor authoring convenience.
You can do simply test, animate from frame 1 to 10 than scene
2 from 1 to 10. Export to
swf and import to flash. The scene will be a blank frame and
frame 1 of scene two will
becomes frame 11. Thanks how it works in flash.
Unless, we have some misunderstanding here :) if that's the
case than sorry
Regards
Urami
Happy New Year guys - all the best there is in the 2006 :)
<urami>
http://www.Flashfugitive.com
</urami>
<web junk free>
http://www.firefox.com
</web junk free> -
Protecting swf files from being decompiled
At the end of the day, our flex apps are deployed as swf
files which have the potential to be decomplied and thereby our
intellectual properties lost. There are tools in the market which
claim to secure the swf files from being decompiled. Are these
tools live up to their claims? Is it worthwhile to spend money on
these tools? Would the protected swf become harder to deployed? Any
good products already available in this line? Please point out
some. Thx.Most of the tools I have seen are geared towards extracting
resources from swf's. I use one myself (eltima.com) for
"harvesting" manufacturers content for my motorcycle dealers. They
are authorized to use this content, but finding someone at Yamaha
of Kawasaki or any of the majors who even knows where to find these
resources is next to impossible. I have also used it to learn from
by viewing scripts, but as you say, at the end of the day, I think
the concepts and best practices are about the only thing worth
taking away from others efforts, not the code.
Unlocking a protected file can be done as well and I remember
using a product over a year ago to get at the scripts within an swf
(I wanted the URL's that pointed to media - it was legal for me to
do this). It ran from the command line and output the scripts.
There aren't too many of these types of programs to be found, but
they exist.
My personal opinion is that it's not worth the effort. My
java classes can be decompiled and if someone wants to go to that
trouble, more power to them. To my knowledge, there isn't anything
out there yet that is perfect for backwards engineering an swf into
an MXML file, but a competitor of FLASH Decompiler says that they
can decompile Adobe 9 PLAYER swf's. For what it's worth, I plan on
posting the majority of my code on my flexdev.org site once I get
it established.
For people who make components for sale, this could be an
issue of stolen revenue if the decompilers get sophisticated enough
to reverse engineer the swc into a usable MXML file. I would be
against anyone who stole code for this purpose, for sure.
Maybe you are looking for
-
How do I get my attachment browser to open for my email?
I am having so many problems with attaching anything while using email. I am working everyday sending out my resume and I can never get my attachment browser to open. It use to work fine, but for the past month I have been having problems with it. I
-
Error Report on Duplicating Elements
An Error occured after duplicating an Elements. If you right click any item on the Elements it will show you an Error Message "An error occured. Please save your work and restart Edge Animate.".. Below are the steps to get the Error: 1. Right click a
-
Ever since upgrading to 10.5.2 I have been having trouble with sites with java applets. I like to play bridge on Pogo, but sometimes the game room will not open and at other times I get messages advising me to check the URL or go back to home page. I
-
Problem with BBP_PD_PO_UPDATE and BADI BBP_DOC_CHANGE_BADI
Hello, I've found out the following issue in SRM 7.0: during the run-time of the FM BBP_PD_PO_UPDATE in the program or BAdI something strange happens instead of the standard change of the DB: - the updated data appear as a result after the running of
-
Strage display when using german umlauts on KDE captions
Hi! I'm using Sun Java 1.4.2_01 on a RedHat Linux 9.0 machine. My window manager is KDE 3.1.4. I'm developing a Swing application. My source files are saved in UTF-8 format because the application should support international users. Therefore I need