Results 1 to 7 of 7
  1. #1
    Daniel is offline Member
    Join Date
    Jun 2007
    Posts
    91
    Rep Power
    0

    Default Generate a Class file

    Hi, Can any body tell me how i can convert the .java file in to .class on the fly(without using javac command).
    Are there any compilers simply do this work

    Thanks.
    Daniel:o

  2. #2
    Albert is offline Senior Member
    Join Date
    Jun 2007
    Posts
    114
    Rep Power
    0

    Default

    Here I pass to you a link detailed with the use of the javac, to compile classes java
    javac - Java programming language compiler

    Greetings
    Albert:rolleyes:

  3. #3
    Join Date
    Apr 2009
    Posts
    10
    Rep Power
    0

    Default 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

  4. #4
    tghn2b is offline Member
    Join Date
    Jan 2008
    Posts
    31
    Rep Power
    0

    Default

    How very odd, Fist I made a makeClass.bat file in it there is just one line.
    "C:\Program Files\Java\jdk1.5.0_02\bin\javac" whatever.java -Xstdout error.txt
    and I click onto that batch file to make my class

    But I was just thinking WHAT IS WRONG WITH JAVA?
    Surly we should be able to make a MakeClass.class file, this keeps track of your latest java projects and keeps the information in a project.txt file so you scroll through previous projects you could then have options if you want to save the error notes to a error.txt file or whatever options there are, and then that file just sends off the "whatever.java -Xstdout error.txt" to the javac file, if fact this might be a good project for someone like me that needs to learn more java.
    Last edited by tghn2b; 04-16-2009 at 08:39 AM. Reason: forgot the third line of text

  5. #5
    Join Date
    Apr 2009
    Posts
    10
    Rep Power
    0

    Default

    how to make a .bat file?

  6. #6
    tghn2b is offline Member
    Join Date
    Jan 2008
    Posts
    31
    Rep Power
    0

    Default

    a number of ways I normally right click my mouse then go for the New option then pick out Text Document

    put in your ... javac whatever.java ... close and save or save and close, rename file to makeClass.bat

    then you just double click on to it.

    ----- more -----
    you could use a word processor program but you have to be careful it saves as a DOS type text file.
    ++++++++++++
    To edit:
    I use Metapad (a few download) metapad download from metapad download
    and have added metapad to my list "right click" "send to" options

    reason for edit:
    trying to add in metapad download because if you print off this page for later the URL is next to useless
    Last edited by tghn2b; 04-16-2009 at 08:49 PM. Reason: trying to add in http://liquidninja.com/metapad/download.html because if you print off this page for later the URL is next t

  7. #7
    Join Date
    Apr 2009
    Posts
    10
    Rep Power
    0

    Default

    Hi, anyone know how to disassemble the EXE using disassemble IDA Pro?

    and can anyone tell me where can i get the installer of IDA Pro.

Similar Threads

  1. Class is public, should be declared in a file
    By goldhouse in forum New To Java
    Replies: 7
    Last Post: 05-10-2012, 09:17 AM
  2. Generate an executable file
    By romina in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 05:30 AM
  3. Exception Failed to Generate Wrapper Class on WebLogic
    By christina in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 02:15 AM
  4. Convert my class file into a exe file
    By carl in forum New To Java
    Replies: 1
    Last Post: 08-05-2007, 08:35 AM

Posting Permissions

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