How do i compile a class file to become an exe (application file)

I know jbuilder and other 3 rd party software are able to to that. I just want to know whether jdk1.3 compiler able to do it...

Hm ...
if you think of a compiler producing an executable file, this means, the application is compiled, linked and bound at file-level - what about the features of loading and linking classes during runtime or the ability to replace class files during runtime and load/link it dynamically?- Guess, a compiler for java can compile static applications, which need no dynamic linking of classes, but is it also able to keep this functionality of java this way?- I don't think so (but I never tested one of these compilers).
greetings Marsian

Similar Messages

  • How do you compile multiple class files in a unix cmd prompt?

    I have been using Java for a few years now, but for some reason I have a course that requires us to compile/run and hand-in our java assignments using Unix...
    I know how to compile a simple program on unix with a single source file, but how the heck do you compile and run a program with say... 2 or more sources files linked together?
    I really doubt the answer is just type
    javac java1.java
    javac java2.java
    javac java3.java
    and then running the source file with the main in it.
    Hopefully someone here can help me.
    Thanks
    Roger

    okay, well I took some time to read up online how to do this and I guess i'll answer my own post just in case someone else wants to know the answer.
    2 ways I found were:
    1)For example, you can list all of the source file names in a file named sourcefiles. This file might look like:
    MyClass1.java
    MyClass2.java
    MyClass3.java
    You could then run the compiler with:
    % javac @sourcefiles
    2)Or if all the files are in the same directory you can do this:
    This example compiles all the source files in the package greetings.
    % ls
    greetings/
    % ls greetings
    Aloha.java GutenTag.java Hello.java Hi.java
    % javac greetings/*.java
    If that is confusing to read I found all the answers from this webpage:
    http://java.sun.com/j2se/1.3/docs/tooldocs/solaris/javac.html

  • How can I hide the class file ??

    Hi !
    I has a question, when i write a program of Java, then use the command "javac" to compiler to class file for other people using, but the class file can be disassembled and convert to source code. How can I hide the class file and let people can not disassemble, or can not see the source code. Thinks

    See these....
    http://www.saffeine.com/
    http://www.jarsafe.com/
    I recently read this. This will help you.
    http://developer.java.sun.com/developer/qow/archive/160/index.jsp
    Enojy....
    Rajesh

  • Help compiling with .class files

    I am using JGrasp and I am trying to compile a program that uses .class files instead of the .java files, but JGrasp will not recognize these at compile time. How do I get my program to compile with these .class files?

    I prefer using Jenuity:
    [http://www.nmmu.ac.za/jenuityIDE]
    It's much simpler to use than JGrasp and isn't nearly as confusing.
    For the record, you compile .java files into .class files. There is no need to "compile" existing .class files. If you have the class files you can run them from the command line. e.g. if you have a class file named Orange.class you should be able to type "java Orange" from the command line to run it. If Orange is inside a directory structure based on packages you may need to execute this command from just outside the 'highest" folder.
    If you just need to link to these class files, copy them into the "/jre/lib/ext" folder of your JDK.

  • How can I convert a class file to Exe file

    hai
    How can I convert a class file to Exe file

    Please search the forums before asking questions - this has been answered hundreds (really!) of times.

  • How can we call a class file of one package for class file of another

    How can we call a class file of one package from class file of another package and both packages exist in a same folder

    How can we call a class file of one package from
    class file of another package and both packages exist
    in a same folder
    Luckily they don't so it's really not a problem after all.

  • How to read the java class file to convert it in java.

    hello all,
    i m developing the java application which generated the java code from the java 'class file' .
    Can anybody please help me, Is any java support for reading the class file? or how to know the class file format?
    I know the application javad, jad, javap which is doing the same thing.
    thanks for reply,
    - Jayd

    do you mean decompiling? there are tons of java decompilers available out there, what exactly are you trying to do here?

  • How to re-compile the class after modification??

    Hello All,
    I found that in 'SearchResourceRenderer' Target window is hardcoded as "_blank". Now i have changed that to "_self" so that i can open the documents from the Search Results in the same frame.
    Please help me in re-compiling the class so that i can deploy it again onto the Portal.
    Regards
    Vaib

    Hi Vaib,
    as already told in the parallel thread:
    - Put the decompiled, changed class into a NWDS Java project.
    - Install and use ClassLocator to create the complete build path needed.
    - After the class doesn't show any more errors, it's compiled. Open the original JAR within the portal app directory with a hot replacement tool like WinRAR and drag and drop the class file into the JAR folder. Restart the server.
    The alternative is to import the whole PAR,  additionally to put the JARs into the PAR project, remove the class from the JAR where it comes from, recompile the changed decompiled class and then deploy the complete PAR into the portal. It's a bit more work but a more clean deployment.
    Hope it helps
    Detlev

  • Is it possible to get the Source from the Compiled Java Class File?

    Hello All,
    I wrote a java file which uses Java Swing to crea a GUI.I have also compiled the jave file.
    The problem now is that i've made many changes and compiled it many times.Now suddenly due to some problem,the contents of tha Java file have been deleted and it shows 0 bytes.
    Is there any way to recover my Java source file from the Class file?I would be thankful to anyone who can help me out on this.
    Thanks in Advance,
    Regards,
    Vijayakannan

    Yes and no, you can reverse engineer it to an extent, it wont look exactly like your original source though, it'll be full of commented out bytecode bits etc. As its your own code though you've got the best chance of deciphering it. Go to somewhere like www.tucows.com to download the software for doing it.
    ARB

  • SQLPLUS: How to verify that java class file have been loaded

    Hi All,
    I just loaded my Java class file using CREATE OR REPLACE JAVA.
    Java was created sucessfuly, but how can I check or find out if my file have been loaded correctly.
    I also found a command :
    SQL>exec myjava.showobjects
    but i don't have the loadjava utility install....is there any command from SQL PLUS?
    thanks

    Thanks for the sql command....after that query what do I do next to see if for example tree.class is in the dba_object.
    Sorry, I am a newbie and the question may be a bit generic .....

  • How to sign a java class file!

    My applet program performs file i/o,loadlibrary operations.so i create a jar file which contains the all java class files of my appln and signed this jar file.My applet prgm works fine.
    But now my plm is, i should not create a jar file.how to sign class files? if anybody knows,plz help me.....

    Why can't you create jar files?

  • How to decomplie a java class file when java application is running/launch?

    I have a simple java application with some components being displayed, now i need to get the components instance names that are been created in that java application. How do i do that?
    Eg: Button b1 = new button();
    now how to write a java application to decompile this class file & return me the button instance ie "b1".

    I think you wanna do two different things:
    1. find out which objects were created at runtime.
    2. decompile class file.
    I'm no so sure why.
    have you tried insrospecting the class using reflection ?
    Here is a code snippet that prints class field names.
    try{
      Class c = Class.forName("MyClass");
      java.lang.reflect.Field[]  f=    c.getFields();
      for (int i = 0;i<f.length; i++)
           System.out.println(f.getName());
    catch(Exception e){ }
    Regards
    Joseph.

  • How to save library symbols' class files in packages that are not the default package?

    Hi,
    I perform the following in Flash CS5 with Flash Builder 4
    1) Create a new library symbol.
    2) Do a RightClick->Properties on the new symbol
    3) Check the options for "Export for ActionScript" and "Export in frame 1".
    4) I write a new name for my class "Class1" and click on the pencil icon "edit class definition" to edit the class.
    At this point my FlashBuilder 4 takes over and opens the "New ActionScript" dialog.
    4) I then click on Package-Browse to select a package e.g. com.mycompany.myfiles as the new class destination.
    The as file is created as com.mycompany.myfiles/Class1.as as everything seems just fine.
    5) I close the ActionScript file and back in Flash CS5 I RightClick on the symbol and select "Edit Class".
    At this time, FB4 suggests again to create the file, ignoring the fact that I already created it before.
    Do you know of a way I can make Flash CS5 remember where I created the file?
    Thanks.

    Hi,
    I didn't remove the project or delete any of the files.
    All I did was create the class file under a package that is not the default package. Then when I clicked on the Flash symbol's "Edit Class" It asked me again to create the same class file.
    Only if I create the class in the default package, it won't ask me to recreate it again.
    Bye,
      RaamEE-IL

  • How can i call java class file in jsp page

    Hai,
    i wants to call .class file in jsp page.
    my class file is in C:\jsdk\bin.
    Thanks

    I'm not entirely sure what you mean by "calling a class file", but I'm going to assume that you want to do something like the following in your page:
    <%
    MyClass myClass = new MyClass();
    myClass.someMethod();
    %>etc
    If that's the case, then all you have to do is make sure that the class is in the servlet engine's classpath. You'll probably also need to include an appropriate import statement at the top of the page.
    Hope that helps.

  • How do I compile a java file in eclipse

    Hi,
    I have just installed eclipse and added a plugin for tomcat.
    I created a new tomcat project and have been trying out several jsp files. Everything nice and dandy.
    Now there is a bean in the tutorial that I am doing. So I use the context menu, new->class.
    A file is created in the src folder. I copied the source code from the tutorial in it.
    Now I have been looking everywhere but can not find a menu option that lets me compile it.
    How does that work. I hope this is the right forum for such basic questions.
    Thank you very much.

    As far as I know, the java code is compiled in Eclipse as soon as you save it. i.e. press CTRL+SHIFT+s
    as far as the build is concerned, in case you have a build file where you specify how to make a jar file, the location the jsr file is to be placed, only then you have to build the project. However again, as far as just simple compile is concerned as soon as you save the files are compiled. And show you the errors if any in the tasks window.

Maybe you are looking for

  • Keep getting signed out after 1 minute (error 26)

    Hey guys, everytime i try to sign in on skype on my phone it logs me in for about 1 minute then signs me out strtaight away saying "You have been signed out. Please try again. (26)" I have the latest version of skype on my iphone, so im not sure what

  • JSF Actions and ActionListeners with Tiles and forms

    I�m having a problem trying to use the Tiles functionality in Struts 1.1 with JSF and was wondering if anyone could help me. I have defined a very simple header, menu, content Tile that doesn�t involve nesting of tiles (ExampleTile_content1Level.jsp)

  • Error executing a callable statement on a pooled connection

    Hi, I have an Oracle function that returns a number: create or replace function S2B_STOP_STAGE (DOC_ID number, ST_ID number) return number ... and the following Java code: Class.forName("weblogic.jdbc.pool.Driver").newInstance(); conn = DriverManager

  • ORA-01003: no statement parsed (APEX 3.1)

    I am adding one report to already created application with SYS used as Parsing Schema, but getting error ORA-01003: no statement parsed. However with older HTMLDB version it is working fine. Does anybody knows how to deal with this problem, Thanks an

  • JQuery width() height() always get stage size instead of div size?

    I have an Edge project with nested Symbols. In a 3rd level symbol instance, I log it's real size like this. var stageWidth = $(window).width(); var w = sym.getSymbolElement().width(); console.log(w,stageWidth); When it's in the creationComplete event