CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    May 2003
    Location
    Jodhpur -> Rajasthan -> INDIA
    Posts
    453

    JRE to Java file

    Hello

    I am working on providing GUI to core java application. All I am having is Jre file as the previous developer switched to organisation. Well this is developed 10 years back a small scientific application.

    This is just command prompt base application. I want to extract the JAVA files from JRE file.


    Is this possible.

    Sandeeep
    Leave Your Mark Wherever You Go
    http://www.danasoft.com/sig/d0153030Sig.jpg

  2. #2
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163

    Re: JRE to Java file

    Do you mean you have a Java class file or jar file and you want to get back the Java source file(s) that created it?

    If so, have a look at the Java Decompiler.

    And the users exclaimed with a laugh and a taunt: "It's just what we asked for but not what we want."
    Anon.
    Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.

  3. #3
    Join Date
    May 2003
    Location
    Jodhpur -> Rajasthan -> INDIA
    Posts
    453

    Re: JRE to Java file

    Thanks for your reply

    Well if this is the case that every jar files can be unzipped to get class files and each class files can then be decompiled to get java code, then i want to know that how the java source code can be made secure

    i.e. no other can use the code.

    Sandeep
    Leave Your Mark Wherever You Go
    http://www.danasoft.com/sig/d0153030Sig.jpg

  4. #4
    Join Date
    Jan 2003
    Location
    Israel
    Posts
    137

    Re: JRE to Java file

    Sandeep,
    As far as I know, the only thing available that can make your java source code (semi) secure is an obfuscator. Try an Internet search for the terms "java obfuscator" -- I'm sure it will bring back lots of hits.

    Good Luck,
    Avi.

  5. #5
    Join Date
    Sep 2004
    Posts
    247

    Re: JRE to Java file

    I think you want to look at obfuscating your code.

    Have a look here for more details mindprod.com/jgloss/obfuscator.html

  6. #6
    Join Date
    Oct 2003
    Location
    .NET2.0 / VS2005 Developer
    Posts
    7,104

    Re: JRE to Java file

    you cant make any code secure

    the best attempts towards that you can get are obfuscation; the idea of making your code so hard to understand for a human that the cost of gaining an understanding outweighs the cost of the code

    and server-side processing; you insist that your clients have an internet connectomn and that they use a server you run to perform some task that is critical to the app. this puts an SLA on you, however, as you become directly responsible for their business continuity
    "it's a fax from your dog, Mr Dansworth. It looks like your cat" - Gary Larson...DW1: Data Walkthroughs 1.1...DW2: Data Walkthroughs 2.0...DDS: The DataSet Designer Surface...ANO: ADO.NET2 Orientation...DAN: Deeper ADO.NET...DNU...PQ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured