Results 1 to 3 of 3
  1. #1
    valery is offline Member
    Join Date
    Jul 2007
    Rep Power

    Default differences between bytecode and executable code

    what are the differences between bytecode and executable code ?
    I'm trying to figure it out but.. I can't find the differences

  2. #2
    cruxblack is offline Senior Member
    Join Date
    Jul 2007
    Rep Power


    Executable codes are machine native codes, lets just say, its the binary codes that tells ur computer what to do, the only language it understand
    Bytecodes are an intermediary language, it lies somewhere between our close-to-human programming languages (the one that we write in source codes) and the machine binary codes

    Java produce bytecodes when it is being compiled by javac, not executables
    The bytecodes are used as input for the JVM, that creates the executable codes and send it to the computer

    Hope this helps

  3. #3
    Join Date
    Apr 2009
    Rep Power

    Default Watermark in java class file


    I would like to know how to embed watermark in Java class file and decode that watermark class file to get back the watermark value.

    I will be appreciate if any one can provide the source code.

    I'hv tried many time to get the bytecode of the class file to embed the watermark value but failed. Should i used the class reader to read the class file but where i must to called the class file and how.

    I include some code that i don't know where to get my .class inside this code:

    package test;

    import javax.swing.JOptionPane;

    public class ClassLocationTest {
    public static void main(String[] args) {
    JOptionPane.showMessageDialog(null, getClassLocation(String.class));

    public static String getClassLocation(final Class<?> pClass) {
    final String location, name;
    name = pClass.getName().replaceAll("\\.", "/") + ".class";
    location = ClassLoader.getSystemResource(name).getPath();
    return location;

    I hope any one can help me immediately because i must to submit it next week.

    Thanks you

Similar Threads

  1. Help with bytecode in java
    By coco in forum New To Java
    Replies: 3
    Last Post: 04-16-2009, 08:48 AM
  2. executable
    By smooth in forum New To Java
    Replies: 4
    Last Post: 06-14-2008, 05:12 PM
  3. Differences between constructor and method
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-19-2007, 08:53 AM
  4. differences: AWT and Swing
    By baltimore in forum AWT / Swing
    Replies: 1
    Last Post: 08-06-2007, 09:01 AM
  5. differences between 2 dates
    By cecily in forum New To Java
    Replies: 1
    Last Post: 08-02-2007, 05:37 PM

Posting Permissions

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