Results 1 to 5 of 5

Thread: Reading Java Classes and Jar files

  1. #1

    Thread Starter
    Fanatic Member eSPiYa's Avatar
    Join Date
    Jun 2006
    Location
    in our house
    Posts
    751

    Question Reading Java Classes and Jar files

    How get the list of classes inside Java Class and Jar file programatically?
    Thanks in advance.

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Reading Java Classes and Jar files

    A .class file contains only 1 class. The class with the name specified. A jar file is just like a zip file. You need to extract it and look for all .class files
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3

    Thread Starter
    Fanatic Member eSPiYa's Avatar
    Join Date
    Jun 2006
    Location
    in our house
    Posts
    751

    Re: Reading Java Classes and Jar files

    Quote Originally Posted by ComputerJy View Post
    A .class file contains only 1 class. The class with the name specified. A jar file is just like a zip file. You need to extract it and look for all .class files
    Is it possible that class have different filename?
    I'm sorry but I'm not really a Java-dev, my project (in Mono) need to dynamically load a Java class/jar-file.
    Thanks.

  4. #4
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Reading Java Classes and Jar files

    No it's not possible. And unless you're welling to make a decompiler, I can't see a point to what you're doing
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  5. #5

    Thread Starter
    Fanatic Member eSPiYa's Avatar
    Join Date
    Jun 2006
    Location
    in our house
    Posts
    751

    Re: Reading Java Classes and Jar files

    Quote Originally Posted by ComputerJy View Post
    No it's not possible. And unless you're welling to make a decompiler, I can't see a point to what you're doing
    No, I just want to extend my application to dynamically load a plug-in made from Java through the help of IKVM.
    Here is my project.
    Anyway, thanks for the help.

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