Results 1 to 3 of 3
- 08-03-2007, 04:43 PM #1
Member
- Join Date
- Jul 2007
- Posts
- 32
- Rep Power
- 0
- 08-04-2007, 03:27 AM #2
Senior Member
- Join Date
- Jul 2007
- Posts
- 130
- Rep Power
- 0
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
- 04-16-2009, 08:13 AM #3
Member
- Join Date
- Apr 2009
- Posts
- 10
- Rep Power
- 0
Watermark in java class file
Hi
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
Azura
Similar Threads
-
Help with bytecode in java
By coco in forum New To JavaReplies: 3Last Post: 04-16-2009, 08:48 AM -
executable
By smooth in forum New To JavaReplies: 4Last Post: 06-14-2008, 05:12 PM -
Differences between constructor and method
By Java Tip in forum Java TipReplies: 0Last Post: 12-19-2007, 08:53 AM -
differences: AWT and Swing
By baltimore in forum AWT / SwingReplies: 1Last Post: 08-06-2007, 09:01 AM -
differences between 2 dates
By cecily in forum New To JavaReplies: 1Last Post: 08-02-2007, 05:37 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks