Making .exe for a java file
Hello all, i'm much interested in making
a java file to be in .exe form without using any
IDE's available for JAVA .
Is it possible for us to make the .exe form of a
java file to be executed in a machine
which has only JRE AND JVM.
Hi Jayandh,
Please see these forum threads. It will give you some idea.
http://forum.java.sun.com/thread.jsp?forum=17&thread=150203
http://forum.java.sun.com/thread.jsp?forum=31&thread=149733
I hope this will help you.
Thanks
Bakrudeen
Similar Messages
-
Tools for generating java files
Hello!
I need a tool which can generate .java files (just like rmic generates _Stub.java files).
I know Velocity but i'm looking for something better. Can you help me?
Kuba Kr�likowskirmic does not generate Stub and Skel .java
files, but it generates .class files.
(just a side-note)RMIC always produce .java files at first - you can keep them using -keep or -keepgenerated option!
Kuba -
Folding accelerators and pop-up menu for non-Java files?
For Java files, 11g honors the expand/collapse accelerators and displays an expand/collapse menu when right-clicking in the gutter for the +/- folding handles. For other files (HTML, CSS, JavaScript, etc.), the folding handles are present, but neither the accelerators nor the menu are available. Is there a way to config JDev to make that work? Thanks.
Thanks for reporting - I filed bug 7719290 for this
-
Downlaoded .exe for Firefox5 gives "file corrupted" error when I try to open it
I am running Windows XP on Parallels 5 on top of MAC OSX on an iMac24.
I have no problems downloading Firefox 5 on OSX for Mac, nor for downloading Thunderbird on WinXP/Parallels5.
Just Firefox5.exe comes up "file corrupted" when I try to run it or open it on WinXP/Parallels5.Post in Microsoft's Powerpoint (Mac) message boards.
-
Utility for compiling java files with options.
i want to create a utility application in java which can compile a java source file with options like -d , -classpath,-help etc.
there is a java.lang.Compiler class which can be used to compile a source file but how can i supply compile time options?
help.Welcome to the forum!
>
i want to create a utility application in java which can compile a java source file with options like -d , -classpath,-help etc.
there is a java.lang.Compiler class which can be used to compile a source file but how can i supply compile time options?
>
Is this an interview question? An intellectual exercise to see if you can do it?
Why do you want to do this when there is already a freely available utility, javac, that can already do all of that?
Please provide more information and a sample user session that shows what you are really trying to accomplish.
And the class you mentioned is not really for the purpose you say you want
>
The Compiler class is provided to support Java-to-native-code compilers and related services. By design, the Compiler class does nothing; it serves as a placeholder for a JIT compiler implementation. -
how can i compile java code into Windows executable program (exe) so I do not to use SDK every time i run my program?
Here's a good post about creating exe's, even if it was persian_dude who asked about it a week ago :P
http://forum.java.sun.com/thread.jsp?forum=31&thread=256821 -
How to get the .class file for the extended Controller .java file
Hi,
I did the below steps.
1. Created New OAWorkspace
2. Created New project
3. Imported the page .xml file
4. Added new .java file by extending the controller class
5. Added code in the .java file.
6. Ran the .xml file
As I copied all the folders from Unix box, the page was opened.
But My question was where can I see the .class file the extended controller. It's a .java file. How to compile and get the .class file for this .java file. If I get this .class file, I can go to the page and click the personlize page. and change the Controller name to the new path by ftp ing the new class to the cust.oracle.apps.pos.changeorder.webiui.
Please let me know how to create the .class file.
Thanks,
HPAll are Java files are stored in JDEV_INSTALL_DIR:\jdevhome\jdev\myprojects\
In your case the path java would be
JDEV_INSTALL_DIR:\jdevhome\jdev\ myprojects \cust\oracle\apps\pos\changeorder\webui\
AND
Once you compile the java file in Jdeveloper, Class files get generated @ below path
In your case the path of class would be
JDEV_INSTALL_DIR:\jdevhome\jdev\ myclasses \cust\oracle\apps\pos\changeorder\webui\
Duplicate Thread-
Thanks
--Anil
http://oracleanil.blogspot.com/ -
Tutorial or code sample in creating a .exe for windows
Hi all,
Can some kind soul guide me to a tutorial / materials / code sample in creating a .exe (for a java program) to run in windows ?
My intention is to create a .exe such that when it is clicked, the java program runs.
thanks a bundle.Java in not intended to compile into system executables. IMO, you should not do this, let your application remain cross-platform. You can simply make an executable JAR file, which makes your application run with a double-click on any system which have a JRE installed.
Anyway, if you really want to help M$ solidify their work, search the forum. It has been asked and answered several times. You have two options:
1. Bundle a version of JRE with your application, and create an executable file which runs your application on the bundled JRE.
2. Use a native code compiler like ( http://www.excelsior-usa.com/jet.html ).
Also, try these:
http://www.dobysoft.com/products/nativej/
http://www.ej-technologies.com/products/exe4j/overview.html -
Why do I need to restart Apache and Tomcat every time a java file is change
If a java file is changed and complied the changes are not reflected if Tomcat is not restarted.
The settings in server.xml are as:
<!-- Tomcat Manager Context -->
<Context path="/manager" docBase="manager" debug="0" privileged="true"/>
<Context path="/cf" docBase="cf" debug="0" reloadable="false"/>
Here "cf" is my Application folder under webapps. The reloadable property when set to "true" for standalone Tomcat on Windows98 reflects the changes for compiled java files without restarting Tomcat. But on Linux 7.1 with Apache 1.3.19 and Tomcat 4.0.3 this is not working.
Also tried out with Manager Application of tomcat-users.xml with reloadable="false" as well as reloadable="true",
But when I reload the application using the command
http://servername:8080/manager/reload?path=/appli.name
It tells me that the application is reloaded but changes in the java file are still not reflected.
Also when reloaded through Manager Servlet, Only my load-on-startup servlet is reloaded, but other java classes are not.
Is it neccessary to execute this reload command from the server itself. I m executing it from a remote m/c. and have mapped the application with a domain name virtually.
Is it the case with Tomcat on Linux with Apache. Or is something going wrong on my part.
Can someone Help out plz.
Regards,
Rupalior you can "touch" your web.xml file.
touch web.xmlor that command is for *nix systems, not sure what the Windows command is. But basically, when you edit the web.xml, even if it means updating the last modified time, it will restart only your application and you should see the changes. -
How to compile other java files and run them from my own programs?
I'm developing a unit testing tool for AspectJ, which can originally generate the stubs for aspect unit to be tested. All these stubs are java files. After generation of stubs, how can I program the code to compile this unit together with these stubs, i.e. how can I put the functionality of compilation and run, e.g. command "javac *.java" and "java *", into my own code.
Hope you can understand what I mean.
Thank you in advance.When I use Runtime.getRuntime().exec(command) for executing the AspectJ compile command "ajc", "IOException createProcess error=2" always occurs, while it is ok for Java comiple command "javac".
Why this happens when I use Runtime.getRuntime().exec("ajc Hello.java Test.aj")? Is it the reason that Runtime.exec(String) may not support any command in DOS?
(ajc is the compile command for the java file and aj file.)
Thank you in advance. -
How to create a .java file through a j2me program?
I am trying to develop a small application in j2me which needs dynamic creation of a .class file. For this purpose I tried to create .java file through my j2me code, but i could not do that..I want to know whether a java file can be created on a mobile phone or not..
I would be grateful to you on your help in this regard.....develop a program xyz.java using j2me which performs the following functionalities:
1.create a file called abc.java
2.extract its class file...For +1+ ie to create a file (any file, no matter java or not) from j2me, device need to support File Connection specified in [jsr 75|http://www.jcp.org/en/jsr/detail?id=75]. If you're interested, learn the jsr API on how to create and manage needed file.
For +2+ described as extract its class file one needs to have java compiler (javac) on device. *) If you're interested, ask for more details at [Java Compiler forum|http://forums.sun.com/forum.jspa?forumID=7]. Also, if the class file is for CLDC then javac needs to support "JDK 1.3-compliant" compilation. To create CLDC classes on device, one also needs to have a preverifier tool. Check this at Java Compiler forum if needed.
Good luck - I think you'll need a lot of it...
*) javac on device -- it should not only be present but also provide a j2me API allowing to invoke it for particular java file with needed options. Same applies to preverifier tool. -
.java files appear double spaced in Jdeveloper IDE.
After checking for updates and not finding what I was looking for, all .java files appear double spaced in the Code Editor. I can't find project property that seems to control this. The files appear fine when opened with other editors.
How does the file show up in notepad or vi? How does it show up in firefox?
You might want to evaluate the file with an ASCII reader to see if there are any extra line breaks in the code.
Also are some of the developers on linux/unix and some on windows? -
Hi,
New to working with OA Framework and JDeveloper, am working with Oracle Applications and need to customize several java files and generate the class files. I found the class files in the $JAVA_TOP, where can I find the java files for the corresponding class files?
Thanks in advance for any information.>
I've seen Metalink notes related to modifying the java files ...
>
Can you pl identify these Doc numbers ?
>
... - how and where do you get the source code for the java files?
>
My previous reply still applies - Oracle does not provide java source code - see MOS Doc 296509.1 (How To Create Pop Up Messages In iProcurement?0 as an example where Oracle states that java source code is not provided.
HTH
Srini -
Process (.exe) run from java
Hi all,
I need to run a ".exe" from my .java file. I have developed a sample Swing GUI application that calls a ".exe" from my program. The application contains a dialog box. The dialog contains a text box and a button. When user will enter some number in the text box and hits the button a ".exe" will be called. That ".exe" in turn will perform a DB activity, fire some sql queries and insert some data into the database. The 32 bit ".exe" is built in Visual studio and developed by C++.
The problem is that when I am entering some number and pressing the button, the ".exe" file is invoked and the process starts running, but I could not be able to see the data that is inserted into the database after the tested time of process run. I could see the data in table only when I quit my java swing application by closing the dialog.
What I mean by tested time of process run is that, I have tested the ".exe" separately by running the same from a batch file. That is running fine and data is inserted into database like a charm. I want the same from java code.
Programmatically what I did to run the .exe is as follows:
String[] cmdArray = new String[3];
cmdArray[0] = "testRun.exe";
cmdArray[1] = "some args";
cmdArray[2] = "some args";
Process process = Runtime.getRuntime().exec(cmdArray,null);
It will be of great help if anybody can figure out where the actual problem is.
My program is not even multithreaded. The whole thing is written inside the main thread itself as in normal case.
Thanks in Advance.....{quote}
The problem is that when I am entering some number and pressing the button, the ".exe" file is invoked and the process starts running, but I could not be able to see the data that is inserted into the database after the tested time of process run. I could see the data in table only when I quit my java swing application by closing the dialog.
{quote}
The process must issue a COMMIT before the data will be visible to ANY other session. -
AM Client java file question.
Hello,
I am learning OAF, when configured an AM to expose methods by Client Interface, a java file is created under /client, a reference is also made in the AM.xml:
ComponentClass="...server.PeRatingAMImpl"
ComponentInterface="...server.common.PeRatingAM"
ClientProxyName="...server.client.PeRatingAMClient"The questions:
1. Do I have any use for ClientProxyName java file or it is there to serve as adapter/glue code between my interface (AM.java and AMImpl.java?
(Depends on answer to Q1)
2. I'm suppose to use in my controller the AM.java, or the generated AMClient?
Thanks in advance.What you will do in your controller is get a reference to the AM via the pageContext object.
Like this:
OAApplicationModule am=(OAApplicationModule)pageContext.getRootApplicationModule();
Use the am ref to call methods in the am.
Kristofer Cruz
Maybe you are looking for
-
I have bought a 5th gen iPod and lightning adapter but it won't wrk on my docking station it charges but doesn't play audio? Please help
-
Hard Disk Installation, from other OS with Grub 2
Hi all. I'm quite new to Arch, but not very new to Linux / Unix / BSD. Currently - on my laptop (not a very new one ... ) - I have other distro (One of the Canonical distro's ). But I have few gigabytes left - and really want to try Arch. Now I want
-
Conversion from Word adds characters to a StyleRef field
When converting a Word 2003 document to PDF format using Adobe Writer 8, some extra characters are added to a StyleRef field in the header. The extra characters look like a number sequence: 0B, 9B, 10B, 11B...). There are two StyleRef fields in the h
-
Can iTunes read across multiple drives?
Hi all, I have a 2002 Quicksilver PowerMac with 1x 30Gb (Master) and 1x 80Gb (slave) installed. I've put all my music onto the 80Gb but iTunes will only look at the music I have installed on the master drive. Can iTunes see music across multiple driv
-
Re: Need a copy of my purchase receipt
Hello, I have the same problem. I bought a Camera Essentials Bundle GOPRO HERO 3+ Moto Black Edition and a Net10 Bring your Own phone 50$ sim card at BestBuy in Los Angeles ( 6000 Sepulveda Blvd #1240 Culver City, CA 90230) the 9th of July 2014 with