A Question for the Cracks - dynamic Compilation in Memory?

HI
i just wondered if it is possible to compile a java source file during runtime in MEMORY, means, without writing the class file to the filesystem but being able to create an instance of that compiled class file.
I guess, theoreticaly this must be possible, since i could try to take the output of the compiler as an input stream in my application an save that stream as a String (or somehow different) and then try to create the an instance using classloader and serialization (somehow.... problem is, i don't know yet how this excatly could be done).
I know, that question sounds a little bit strange, but I'm just thinking about a licening methode and this could do a very important part of it.
So i would be very thankfull for any comment about this idea!
josh

Yeah, but here's the thing. If you provide the source files to the program, then you've put the thief one step closer to having your program (they don't have to decompile it.) Even if you encrypt the source, once they've decrypted that they're still one step closer than if you just encrypted the bytecode.
In the encrypted class file solution, if the user doesn't have a legal license, they cannot run the program, because they cannot decrypt the classes. They have the encryption algorithm, but since they don't have a private key (which is in the license file) they can't load the code.
The license also, would be one-license-per-user, with a multitude of different licenses able to decrypt the same encrypted classes. If you don't want a particular party to have the program, you just don't give them a key, or give them a key which decrypts only a certain set of classes (effectively providing them with a functional demo.)
Even once the user has a license and your algorithm though, it still isn't trivial for them to make decrypted .class files out of them though, since your algorithm will load the classes as soon as they're created. They'd have to decompile and hack up the decryption code to write the classes back to files also.
You could probably also figure out some way to stamp an ID on each decrypted class at runtime, so you can tell which user is running the program so if someone does distribute decrypted versions of the classes, you can tell which user did it and start legal proceedings. :-)

Similar Messages

  • Questions for the october release

    Hey there,
    two questions for the october release update:
    1. We often use filmconvert in our workflow. Is it possible to send a sequence via Direct Link to SpeedGrade and keep and see the effect?
    2. Can I send  a sequence with some AfterEffects Dynamic Link pieces in it to SpeedGrade to grade the project or will the connection get lost?
    Thanks for your help
    Jesko

    All effects should come over.  No mention about Linked comps, though.
    http://tv.adobe.com/watch/adobe-at-ibc-2013/adobe-speedgrade-cc-october-2013-release-overv iew/

  • I have a new email address and my old email keeps coming up on icloud when trying to update apps and i don't know the password or security questions for the old email. I can sign in with my apple id which is tied to another email but not itunes how to fix

    I have an apple id and it has my current email attached to it. however when i go to update apps it's asking for the password for an old email. I no longer have the old email and can't use it. when I go to icloud on my ipad it asks for the password for old email. it doesn't allow me to change the old email to current. when i go to reset it i can't remember the password or security questions for the old email so it doesn't let me go any further. How do I fix this? Do i need to call apple support?

    I have the same problem - it is maddening. I rely on this iPad for work so this is not just an annoyance! The above solutions of changing the appleid on the device or on the website do not work.
    The old email address no longer exists - I haven't used it in a year probably and I no longer have the account.  I logged into the appleid website and there is no trace of the old email address so there is nothing that can be deleted or changed there.  On the iPad there is no trace of the old email address so nothing can be deleted there either. I have updated the iPad software and the same problem comes right back.  Every 2 seconds I am asked to log in using the old non-existent email.  The device is currently useless.
    The only recent change to anything was the addition of an Apple TV device, which was set up using the correct login and password.
    Does anyone have any ideas? The iPad has been backed up to the iCloud so presumably it now won't recognize the current iCloud account? So restoring may notbe an option?

  • Please read my question carefully, this is, I think, a question for the experts. It's not the usual name change question.   When I setup my new MacBook Pro, something slipped by me and my computer was named First-Lasts-MacBook-Pro (using my real first and

    Please read my question carefully, this is, I think, a question for the experts. It's not the usual name change question.
    When I setup my new MacBook Pro, something slipped by me and my computer was named First-Lasts-MacBook-Pro (using my real first and last name).
    I changed the computer name in Preferences/Sharing to a new name and Preferences/Accounts to just be Mike. I can right click on my account name, choose advanced, and see that everything looks right.
    However, If I do a scan of my network with my iPhone using the free version of IP Scanner, it lists my computer as First-Lasts-MacBook-Pro! And it lists the user as First-Last.
    So even though another Mac just sees my new computer name, and my home folder is Mike, somewhere in the system the original setup with my full name is still stored. And it's available on a network scan. So my full name might show up at a coffee shop.
    Can I fully change the name without doing a complete re-install of Lion and all my apps?

    One thought... you said the iPhone displayed your computer's old name? I think that you must have used the iPhone with this computer before you changed the name. So no one else's iPhone should display your full name unless that iPhone had previously connected to your Mac. For example, I did this exact same change, and I use the Keynote Remote app to connect with my MacBook Pro. It would no longer link with my MacBook Pro under the old name, and I found that I had to unlink and then create a new link under the new name. So the answer to your question is, there is nothing you need to do on the Mac, but rather the phone, and no other phone will display your full name.

  • I have created a .png logo to use on my video. It has it's own storyline so the logo is shown overthe whole video. Do I need to composite the logo storyline to the main storyline before exporting? Same question for the audio storyline.

    Final Cut Pro 10.0.8
    I have created a .png logo to use on my video. It has it's own storyline so the logo is shown over the whole video. Do I need to composite the logo storyline to the main storyline before exporting? Same question for the audio storyline.

    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable                     
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar
    The missing apps could have been done by setting the Restrictions that can hid those apps. If the backup was made with those retrictions set the the Restrictions are also restored.
    Thus, if you get it to work restore to factory settings/new iPod, not from backup                               
    You can redownload most iTunes purchases by:        
      Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Questions for the end users in Building an application.

    Questions for the end users in Building an application.
    Hello,
    I am assigned a project in building a CF application. As far
    as the business requirements, I have an idea from the MIS people.
    However, I have a meeting with direct users and I have to ask
    questions to add to my requirements. I am still a beginner in this
    but I need to ask questions.
    Can anyone give me tips? what basic / important questions?

    For starters,
    DO:
    Ask them to discuss what they want to do with the application
    Try to understand their level of computer literacy
    Keep your conversation non-technical
    Continue to interact with the users during the design and
    development process
    Try to identify a "champion" with whom you can interface as the
    project progresses
    DON'T:
    Use technical terms or discuss technical issues
    Talk down to them
    Promise delivery dates until you have documented their
    requirements and they have approved them

  • I have a question for the Adobe customer service dept., not for the "community" as a whole!

    I have a question for the Adobe Customer Serice Dept., not the "community" as a whole. And I expect an answer! I want to know why I am expected to sign up for another service package when I just paid $25+ yesterday to be able to convert files back and forth from a PDF to a Word file and then back to a PDF. What kind of rip-off is this?

    Hi,
    I am very sorry that you had unpleasant experiences with our customer service.
    If you would like to export your PDF files to MS Word files then ExportPDF tool will do the job.
    If you would like to convert MS Word files to PDF then ConvertPDF tool will the the job.
    If you would like to export your PDF files to Word file then convert the Word files back to PDF then PDF Pack service is required which includes ExportPDF/Convert to PDF/Combine Files tools.
    Please let me know if you have any questions/issues.
    Thank you.
    Hisami

  • I having problem with the answer  question for the App Store. And I forgot the answer

    I having problem with the answer  question for the App Store. And I forgot the answer

    Pleae call 1800MYAPPLE ask to speak to account security

  • HT201303 I hot Remember the questions for the confirmation of the Apple store

    I not Remember the questions for the confirmation of the Apple store and I can make purcheses

    If you have a rescue email address set up on your account then you can try going to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you might see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address set up then go to Express Lane  and select 'iTunes' from the list of 'products' in the middle of the screen.
    Then select 'iTunes Store', and on the next screen select 'Account Management'
    Next choose 'iTunes Store Account Questions' and fill in that you'd like your security questions/answers reset.
    You should get an email reply within about 24 hours (and check your Spam folder as well as your Inbox)

  • Question for the future..

    ...is it planned to enable Question for the future..
    Is it planned to enable Smartphone/PDA software to use Adobe3D futures.
    I think it is an essential question for travel engineering buiseness. 
    Regards
    Lars

    Hi,
    My 5 years old computer works with only a minor problem but is has been fixed therefore I expect a 3 yrs old computer should work, but who knows !
    Good luck.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • My account asks me to change my password every week for no reason and i have different security questions for the same account

    My account asks me to change my password every week for no reason and i have different security questions for the same account

    Does the iPod connect to other networks?
    Does the iPod see the network?
    Any error messages?
    Do other devices now connect?
    Did the iPod connect before?
    Try the following to rule out a software problem:                 
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on the router
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Try changing the security on the router. Start with no securty as a test.
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • I forget the security questions for the Apple ID

    I Forget the the two security questions for the Apple ID when I want to purchase anything in money they ask me security questions and I don't know them

    You need to ask Apple to reset your security questions; this can be done by clicking here and picking a method, or if your country isn't listed, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (109223)

  • Dynamic compilation in memory

    Hello,
    I have used javax.tools.ToolProvider to compile a simple class that comes from a CharSequence object in memory, and it works just fine.
    Now, I need to reference another class that comes also from a CharSequence object in memory. Which method in the ForwardingJavaFileManager I should override to make this class available to the main class.
    Thank you
    The class I need to reference is in class (.class) format not the java source format (.java).
    Edited by: Gen.Java on Apr 23, 2013 2:05 AM

    CharSequence src = "public class DynaClass {public String toString (){return"hello";}}";Using javax.tools API, this compiles just fine. However,the following does not, complaining that it cannot find the class "another". The bytecode for the class "another" is in memory (not the file system). I just need to make it available to the main class "DynaClass".
    CharSequence src = "public class DynaClass {public String toString (){return new another().get();}}";The following is my code:
    import java.util.*;
    import javax.tools.*;
    import java.io.*;
    public class DynaCompTest
    public static void main(String[] args) throws Exception
    JavaCompiler         compiler;
    ClassFileManager     fileManager;
    List<JavaFileObject> jfiles;
    CharSequence         src;
    String               fullName;
    fullName = "DynaClass";
    src      = "public class DynaClass {public String toString (){return"hello";}}";
    compiler    = ToolProvider.getSystemJavaCompiler ();
    fileManager = new ClassFileManager ( compiler.getStandardFileManager(null, null, null) );
    jfiles      = new ArrayList<JavaFileObject>();
    jfiles.add  ( new CharSequenceJavaFileObject(fullName,src) );
    compiler.getTask ( null, fileManager, null, null, null, jfiles).call ();
    import java.net.*;
    import javax.tools.*;
    public class CharSequenceJavaFileObject extends SimpleJavaFileObject
    private CharSequence content;
    public       CharSequenceJavaFileObject (
    String       className,
    CharSequence content                    )
    super      ( URI.create("string:///" + className.replace('.', '/')+ Kind.SOURCE.extension), Kind.SOURCE);
    this.content = content;
    @Override
    public CharSequence getCharContent       (
    boolean             ignoreEncodingErrors )
    return content;
    import java.security.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.tools.*;
    import javax.tools.JavaFileObject.*;
    public class ClassFileManager extends ForwardingJavaFileManager<JavaFileManager>
    private final Map<String,JavaClassObject> fileObjects;
    public                  ClassFileManager (
    StandardJavaFileManager standardManager  )
    super       ( standardManager );
    fileObjects = new HashMap<String,JavaClassObject>();
    @Override
    public ClassLoader getClassLoader (
    Location           location       )
    return new ClassLoader() {
               @Override
               protected Class<?> findClass(String name) throws ClassNotFoundException {
                    JavaClassObject jco;
                    jco      = fileObjects.get(name);
                    byte[] b = jco.getByteCode();
                    return super.defineClass(name, b, 0, b.length);
    @Override
    public JavaFileObject getJavaFileForOutput (
    Location              location,
    String                className,
    Kind                  kind,
    FileObject            sibling              ) throws IOException
    JavaClassObject jco;
    jco             = new JavaClassObject(className, kind);
    fileObjects.put ( className,jco );
    return jco;
    import java.net.*;
    import java.io.*;
    import javax.tools.*;
    public class JavaClassObject extends SimpleJavaFileObject
    protected final ByteArrayOutputStream bos = new ByteArrayOutputStream();
    public JavaClassObject (
    String className,
    Kind   kind            )
    super ( URI.create("string:///" + className.replace('.', '/')+ kind.extension), kind );
    public byte[] getByteCode ()
    return bos.toByteArray();
    @Override
    public OutputStream openOutputStream () throws IOException
    return bos;
    }

  • Firefox.exe-application error: Found 0 results for the instruction at "0x00b48d37" reference memory at "0x00bd37". the memory could not be "read".

    my firefox does not work because of this error.
    firefox.exe-application error: Found 0 results for the instruction at "0x00b48d37" reference memory at "0x00bd37". the memory could not be "read".

    Do a clean (re)install and delete the Firefox program folder (C:\Program Files\Mozilla Firefox\).
    Download a fresh Firefox copy and save the file to the desktop.
    * Firefox 8.0.x: http://www.mozilla.com/en-US/firefox/all.html
    Uninstall your current Firefox version if possible.
    *Do NOT remove personal data when you uninstall the current version or you lose your bookmarks and other data in the profile folder.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Profile_backup
    See also:
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • Are these things possible in PDF forms? Questions for the experts

    Hi,
    I have a project where I need to create an online application system, where the user has to fill in a form where the results have to be saved into a database.
    I wanted to create a html based form, but then someone told me PDF can also do cool things, so I’m researching that road.
    I already managed to create a simple form and submitting it to a web service (java servlet in my case) and that works pretty nicely.
    I'm new to the whole PDF form creating and I’m wondering if certain things are possible. So I’m trying the experts in this form for a yes/no answer.
    Are the following things possible with PDF forms:
    1) validation: number & date checks, eg, a number should be higher than 4, or be a valid number/date
    2) If I answer A at question 1, I should skip Question 2 and go directly to Question 3. Is it possible to hide Question 2, depending on what I answered at Question 1?
    3) Is it possible to attach files to the form, like a photo? And also upload it to the web service.
    4) After I submit the form, is it possible to lock the form so that no other changes can be made? In other words, you may only submit once.
    5) Possible to activate the print button after the form has been submitted?
    6) Can a drop-down lists be dynamic? Instead of hard coding the list, calling a web service to fill the values?
    Thanks in advance for any insight,
    Kind regards
    Ido

    Hi Paul,
    thanks for the quick answer. No my next challange is how to do things
    1) validation: number & date checks, eg, a number should be higher than 4, or be a valid number/date
    <answer> Yes
    I think this is done through the object properties
    2) If I answer A at question 1, I should skip Question 2 and go directly to Question 3. Is it possible to hide Question 2, depending on what I answered at Question 1?
    <answer> Yes
    This is done with subforms and scripting?
    3) Is it possible to attach files to the form, like a photo? And also upload it to the web service.
    <answer> PDF does support the ability to have attachments. They would be includeed as part of the PDF so you woudl have to submit the entire PDF and then extract the attachments when you get the file to the server. Note that you will require to Reader Extend the document to allow a Reader user to add the attachment. This is not a requirement if you are using Acrobat.
    Have to look into this one.
    4) After I submit the form, is it possible to lock the form so that no other changes can be made? In other words, you may only submit once.
    <answer> Yes
    Also through scripting?
    5) Possible to activate the print button after the form has been submitted?
    <answer> If you add a print button on the form then the answer is Yes. The application that houses the PDF will jhave print capabilities and that one is much more difficult to hide. You can set it up so that the form cannot be printed then return back the locked version with printing enabled but a round trip to the server is required for that.
    Print button will be fine by now, probably also done by scripting
    6) Can a drop-down lists be dynamic? Instead of hard coding the list, calling a web service to fill the values?
    <answer> Yes but the form will require LiveCycle Reader Extensions if you are using Reader. Reader Extensions is not required if you are Acrobat.
    Ahh, perhaps fixed list will be ok for version 1

Maybe you are looking for

  • Can 2 different iphones share the same apple ID?

    Can my husband who just got a I phone use my apple ID?  He wants to get our Itunes from the computer on his phone.

  • Formatted HP dm4-3099se with Windows 7 Home Premium and Would Want to Re-install the Home Premium

    My laptop is HP Pavilion dm4-3099se and it came with Windows 7 Home Premium. The password was misplaced and I was advised to format the system. The system was formatted (all the disks were deleted except the C: drive) and a Windows 8 pro OS installed

  • A Series Of Issues

    1. My cursor seems to be flickering. 2. The left shift button works, but not for the I key. 3. My most important concern: for some reason my computer is having trouble going to sleep. When i close the display, the computer goes to sleep, but then i h

  • Java.sql.SQLException: You cannot commit during a managed transaction!

    Hi all, I'm just trying to get the tutorial Car EJP app to work with Jboss 3.2.1 When creating a new car record by calling the car.edit() method it reaches the line pm.makePersistent (car); and then throws the exception com.solarmetric.kodo.runtime.F

  • Purchase Requisitions in IW37 Output

    The 'Purchase Requisition' column in the output of IW37 is always blank though an examination of individual work orders listed in the output reveals requisition numbers on many of the operations.  What is the purpose of the 'Purchase Requisition' col