Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6819205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:16:41+00:00 2026-05-26T21:16:41+00:00

Is it possible using Windows to read a file into memory (keep data in

  • 0

Is it possible using Windows to read a file into memory (keep data in byte array), delete original file from filesystem and execute it from memory?


EDIT

My goals is to protect my java code from reverse enginering.

I wrote a launcher in C++ that take my encrypted jar file, decrypt it and launch it.
The little problem is that i have to write my decrypted jar file somewhere in the filesystem, so it can be easily captured and decompiled… there is no way to prevent this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:16:41+00:00Added an answer on May 26, 2026 at 9:16 pm

    No, it’s not possible to do like that. There’s no system call that says “take this chunk of my memory and use just that part of it as the image of a new process”.

    You can load code into memory and jump to it within the current process, but that’s an ugly thing to do because you have to handle all of the relocations.

    With regards to the Java specific part:

    You can embed a Java interpreter within your C++ executable. You can write your own class loader for Java (through the C++ interface to the JVM) that will load classes from your encrypted Jar file. That way you could avoid ever writing the unencrypted Jar file to disk. It will of course be visible in memory to anyone with a debugger…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to embed a Gtk widget into an application using System.Windows.Forms? Thanks!
Is it possible to delete-protect a file/folder using Registry or using a custom written
Is it possible to create a form on Windows using Ruby? I have a
Is it possible to query certificate store on windows server 2008 using .net platform?
Is it possible to apply (and remove) Windows group policy settings using .NET? I
How, in the simplest possible way, distinguish between Windows XP and Windows Vista, using
Is it possible to scroll the iframe window from the parent window using keys
I am using Qt 4.5 in Windows XP. My pro file has the variable
Possible Duplicate: how to delete a file? My application first reads the fields in
Just wondering if it is possible to figure out who has read files from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.