How to protect class files from being decompiled?

any ideas
guide me

You may consider looking into Java native compilers.
I'm referring to compilers that take existing Java
code and convert them into native executables rather
than class files which are interpreted.yeah... kills portability too.

Similar Messages

  • 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.

  • How to call class file from jsp without creating packages

    i m using tomcat 5.5
    i stored my class file into WEB-INF\Class directory
    how to call that class file. from my jsp page.
    i got some error.
    i used package concept,that works fine.

    i m using tomcat 5.5
    i stored my class file into WEB-INF\Class directory
    how to call that class file. from my jsp page.
    i got some error.
    i used package concept,that works fine.Then use packages.
    As of Java1.4, you can no longer import classes from the default package (no package declared) into classes that are packaged.
    All Tomcat classes are in packages, including the compiled JSP.
    Therefore: Your classes need to be in a package inorder to be imported and used by the JSP.
    Why the problem? If you know it works with packages, why try not to use them?

  • Protect DLL Files from being deleted or unregistered

    I am looking for a way to protect a DLL file from being deleted or unregistered.
    My users have an application that uses the same DLL files as another application. This is in a test environment, so when they are uninstalled they step on each other by deleting or un-registering the DLLs.
    Any ideas?

    Hi,
    These apps are designed to delete the DLL file in uninstallation process. You can test to Deny the Delete permission on the DLL file as a test but it may cause a new issue that application think they failed to uninstall itself clearly as the DLL file cannot
    be deleted. Just have a try on Deny Delete permission in NTFS security. 
    If you have any feedback on our support, please send to [email protected]

  • How do I prevent files from being backed up to iCloud and iTunes?

    I have created the ios app using adobe AIR16 and flash cc. After submission of my aap into aapstore, I received a message from Apple with the following message –
    From Apple
    2.23 - Apps must follow the iOS Data Storage Guidelines or they will be rejected.
    By using xcode we can prevent files from being backed up to icloud and itunes, but i want to know that  what is the way to achieve this by using AIR. While creating an explicit app id from apple developer account , i am not enabling icloud support.

    Within AIR you can set the File.preventBackup property to true on a directory or file to prohibit that content from being backed up to the cloud:
    File - Adobe ActionScript® 3 (AS3 ) API Reference
    This is all you need to call when you first create the folder or file to have it work with iOS backup guidelines.

  • How to "protect" a square from being erased in a Java Paint application?

    Hi. I have created a paint program in Java (something like MS Paint) and I have a problem.
    In order to show the current colour the user is using I have drawn a square on the screen.
    But when I select the eraser tool and try to erase the square, it can be erased and I dont want that.
    Is there any way I can "protect" the square from being erased by the eraser tool?
    The eraser tool basically draws white rectangles when the mouse is dragged.
    Thanks

    Hi. This is the code I am using. Hope this helps.
           Button fill_rect_btn = new Button(" Fill Rect");  //create buttons
           Button draw_rect_btn = new Button(" Draw Rect"); 
           Button eraser_btn = new Button("Eraser");
           eraser_btn.addActionListener(this);       //add actions listener                      
           eraser_btn.addMouseMotionListener(this);  //and MouseMotionListener
           g.setColor(Color.yellow);  //draw the yellow rect
           g.fillRect(0,0,145,108);   //behind the buttons
           else if(e.getSource()==eraser_btn)
              {shape=7;}  //test if button has been clicked
            public void mouseDragged(java.awt.event.MouseEvent mouseEvent)
                 if(shape==7)  
                     g.setColor(Color.white);                                      
                     g.fillRect(xvalue, yvalue, 10 , 20  //draw rectangles
                     g.setColor(Color.black);
            }

  • How to protect Conversion file from changes

    Dear All,
    Is there any way to restrict users on change conversion files ? my requirement is, need to protect conversion file from changes.
    I have tried normal Excel password protection,it is not working.
    thanks in advance...
    regards,
    Raju

    Hi Raju,
    Why do you want to protect the conversion file?
    Conversion file is used insight of transformation file only.
    That's means if an user will change the transformation file to use another conversion file it doesn't matter if you protect the conversion file.
    So actaully if I understood correct is that user should not be able to change the conversion and transformation file.
    This can be done in two wat:
    Into task profile don't give to the user access to do Organize package list.
    Second into your DM package eliminate the prompt for transformation file.
    I hope this will help.
    Regards
    Sorin Radulescu

  • Protect class Files from Decryption?

    Hey. I have a couple of Java classes I wish to share with some people, but I would like to add a copyright/credit giving message into the program. This code is the kind of code people would want to steal and take credit for, which is why I'm only (if I can encrypt them) giving out the .class files and not the source code. The thing is, it took me about 5 seconds of searching on Google to find programs that can easily be used to decrypt .class files and get a re-compilable source from them.
    So I was wondering, is there a [somewhat] foolproof way to protect against people decrypting the .class files to get the source? Is there some program I can run them through that will make it so they can't be decompiled, but will still run on a machine with a standard Java runtime installed? I probably won't be giving out the classes if there isn't a way to do this.
    Thanks

    There are programs out their that semi pseudo scramble your code but if someone wanted to they can always reverse it and have a look at your source. What you have to admit is that your code is nothing special and nobody would really want to steal your code. If you are paranoid about it, about the most you can do is add some copyright message and threaten them with legal action.

  • Prevent SWF files from being decompiled back into FLA format

    Some programs such as Sothink SWF Decompiler may be used to
    decompile the SWF files back into FLA format. Even the ActionScirpt
    inside the SWF files can be decompiled as well! No one can even
    tell the difference between the original FLA file and the compiled
    FLA file! What can we do to prevent this from happening? I heard
    that we may protect the SWF files by using ActionScript Obfuscator.
    Is it true? How to do that? Please help, I must do something on
    it.

    Ng Jackie wrote:
    > Some programs such as Sothink SWF Decompiler may be used
    to decompile the SWF
    > files back into FLA format. Even the ActionScirpt inside
    the SWF file can be
    > decompiled as well! No one can even tell the difference
    between the original
    > FLA file and the compiled FLA file! How can we do to
    prevent this from
    > happening? I heard that we may protect SWF files by
    using ActionScript
    > Obfuscator. Is it true? How to do that?
    It's not true. SWF can't be protected.
    There are companies trying to sale products claiming they can
    protect SWF
    file, don't fall for that.
    In order to protect the file they jam the code and name of
    variables and functions.
    This however does not go w/o consequence. There is only how
    much you can mess the
    file up before the player will be unable to run it. Very
    risky games if you do that.
    One of the tools that was doing that, produced files which
    stop working with next
    player upgrade. From version 7 to 8. Than you just can't open
    it anymore.
    Secondly, as soon as such tool appear, the producers of
    decompilers provide antidotes.
    Upgrades with work around for the protection.
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • How to use .class files from jsp

    hi i want to use .class files in my jsp program can any one help me

    so if you are using pacakges here is normal example...
    say you .java code is something like...
    package com.util;
    public Class BeanUtility{
    }place the .class file at WEB-INF/classes/com/util folder if those folders are missing create it and place the .class file there. or pacakage it as a jar file & put it into WEB-INF/lib folder
    Now in jsp you can either use jsp:Usebean tag or use normal scriplets to create an instance of the nessary class...
    here is an example for you
    <%@ page language="java" import="com.util.BeanUtility" %>
    <%
    BeanUtility bn = new BeanUtility();
    %>however,i'd suggest you to make use of JSTL / Inbuilt tag libraries /MVC 2.0 approach for better maintainance & readablity.
    Hope this might help
    REGARDS,
    RaHuL

  • How to stop copied files from being automatically trashed

    so this has only been happening recently, in the last 2-3 weeks.
    if i choose a file, say "example.txt" and duplicate it, adding "example copy.txt" to the desktop, within a couple seconds, it gets automatically placed in the trash.
    if i rename the copy to "example.2.txt" and move it back to the desktop, it'll stay. so it's not an issue of identical files being trashed. if i take it and name it back to "example copy.txt" it gets placed in the trash again automatically.
    how do i stop this? it's driving me mental because i have to go retrieve everything i copy from the trash bin. i'm sure i haven't downloaded any automators or anything, so any kind of input would be beneficial.
    thanks!

    whats the type n contents of this files.it is text only pipe seperated.
    have u specified the bad or log file path while creating the external file.no I do not. I use simple UTL_FILE for writing to these files but it does generate .log all the time and sometimes .bad whenever there is some problem.
    the sample script used for create external table is mentioned below.
    CREATE TABLE "XX"."E_ERROR_LOG"
    (     "SERVER_ID" VARCHAR2(24),
         "MONITOR_ID" VARCHAR2(24),
         "XXX_ID" VARCHAR2(8),
         "XXX_SUBTYPE_ID" VARCHAR2(8),
         "ERROR_CODE" VARCHAR2(6),
         "LOG_TIMESTAMP" VARCHAR2(19),
         "ERROR_MESSAGE_BODY" VARCHAR2(1024),
         "XXXX_MESSAGE" NVARCHAR2(1024)
    ORGANIZATION EXTERNAL
    ( TYPE ORACLE_LOADER
    DEFAULT DIRECTORY "XXXX"
    ACCESS PARAMETERS
    ( records delimited by newline
         fields terminated by '|'
         missing field VALUES are NULL
    LOCATION
    ( 'DF_XXXX_ERRORLOG_DATA01.dbf'
    REJECT LIMIT UNLIMITED;
    ----------------------------------------------------------------------------------------------------------

  • How to get .class files from a JAR at runtime

    Hi. I wrote a program that load the classes it find in the "prog/components" directory. It enables me to add new components without messing with the code of the main program. Everything worked fine when wrote a batch file - but I want to create a JAR file. In the Batch file I gave the path to those files for the class loader in a loop, and it was "prog.components/" + filename[i] (I get the file names by using a FileFilter).
    My question is - how can I obtain the files in the prog/component directory inside the JAR? WHen I left it as it was in the BATCH it didn't work because there wa no prog/component dir outsiede the JAR. What should I do?

    Thanks man, that was really helpful! I wrote some piece of code that inserts the file names I want to an ArrayList. However, I wonder how you would make the program list all the files in the "prog.jar/prog/components/" directory? I think your code would be better tahn mine since you've coped with it before. Could you write the code snippet?

  • How to generate class files from wsdl

    I have upgraded weblogic from 9.1 to 10.3.5 and java from 1.5.0_06 to 1.6.0_27
    Do I have to regenerate my webservices classes like the stub ,impl and service class.
    also there are a few changes in the wsdl .
    Please help me how to generate classfiles from wsdl ?
    Please help.
    Thanks,

    Did you ever get an answer to this question? Did you proceed forward with the use of WSIF or did you select an alternative.
    Ernie :)

  • How to generate class file from annotation

    Hello, i am new in annotations and i'm studying them, but now i need to generate a new class from an annotation. Could someone give me tips, starting point, links?
    Also a little suggestion is good! Thank you

    There's a small section on annotation processing in the JDK docs [http://java.sun.com/javase/6/docs/technotes/tools/windows/javac.html|http://java.sun.com/javase/6/docs/technotes/tools/windows/javac.html] under the javac documentation.
    The annotation processing API is [http://java.sun.com/javase/6/docs/api/index.html?javax/annotation/processing/package-summary.html]
    For some tools to help you, and some examples see [https://hickory.dev.java.net/]
    And of course, you can browse this forum and ask questions in this forum and we'll do our best to help you.
    This all relates to generating code at compile time.
    To do it at runtime you'd use the reflection API (java.lang.reflect) and the compiler API ( [http://java.sun.com/javase/6/docs/api/index.html?javax/tools/package-summary.html] ) The testing part of hickory can be a useful tool for compiling code at runtime.
    Bruce

  • How can I disable files from being shown in spotlight?

    Hi All,
    In my spotlight preferences I've enabled only Applications, Folders, and System Preferences. However, in almost all of my searches, many individual files are shown. These are usualy .java, .jar, or .html even.
    To exacerbate the problem, spotlight seems to be looking inside the files when it searches/indexes. So I get many files that dont have my search terms in the title. Basically, the things I want are at the bottom, far below a bunch of files that I don't want to see.
    Is there any way to filter these out permanently?

    Found a solution. It is this. But Thomas is correct in assuming I am using it as an application launcher. This fix allows me to resume this activity as it was in Snow Leopard.
    http://hints.macworld.com/article.php?story=20110805192212447

Maybe you are looking for

  • Disable Standby/Hibernation MSI Radio

    Hi all, through Windows power management I set my MEGA 651 to go into hibernation after 10 minutes idle time. TV-recording programs are able to disable this setting while running. MSI Radio unfortunately does not disable this setting therefore after

  • Looking for PCI SCSI card for G5

    I've just learned my old SCSI PCI card (5 volt) from my G4 won't work in the G5 (3.3 volt PCI slot). I'm looking for a 50-pin SCSI PCI card, 3.3v, that will work in a G5 & with OSX ... any suggestions? Thanks.

  • Resource manager does not seem to support failover

    The resource manager, TMS_ORACLE, does not seem to support SQLnet's transparent application failover (TAFO). The way this supposed to work is that if the DB connection is lost, SQLnet detects it, and establishes a new connection in accordance with th

  • Is it possible to increase the disk size of a vm's system disk in ovm 2.2.2

    I am running OVS 2.2 and OVM 2.2.2 - I have imported a OEL 5U6 template and created a machine to try and install OHS on .. unfortunately at about 95% through the install I run our of disk space - so I want to be able to increase the size of the drive

  • Only scanned photos are corrupted/gone

    I've just discovered that most of the photos I've scanned into iPhoto have disappeared, although I still do see the lovely grey "corrupted" box where the pictures used to be. I've checked the Originals folder and the scanned photos are completely gon