Creating an executable java program

hello every body
i have finished my java program
and i want to ask if there is some software that create a .exe of your project or make your projecte installable.
for the moment i use javaexe but it's not really good
do someone have an idea.

That's the question most people ask.Actually this
proccess is againts the goal of java for being a
platform independent programing lang,That's an urban legend I haven't heard in a while -:)
How can the generation of a native executable out of a Java source be against the goals of Java? Has the source code been contaminated in any way in the process? Is it now less portable than before? The native executable itself isn't portable of course but that's kind of the point of producing one, and it doesn't restrict the portability of the program itself.

Similar Messages

  • Executing java program in oracle

    Good day everyone!
    I created a small java program.
    import javax.swing.JOptionPane;
    public class LogOn {
    public static void main (String [] args) {}
    public static void ShowMessage(){
    JOptionPane.showConfirmDialog(null, "Hello", "Info", JOptionPane.PLAIN_MESSAGE);
    I compiled the code using javac and loaded into oracle using "loadjava -u scott/tiger Logon
    Then I created a procedure,
    create or replace procedure l_b
    as language java
    name 'LogOn.showMessage()';
    then I executed the procedure
    SQL> execute l_b;
    it's just say
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Any idea why its doing that?
    Thanks for the time
    Edited by: Xtro on Oct 30, 2008 9:38 AM

    What is the "warning banner" attempting to communicate? And where did this requirement come from-- presumably users are not seeing a banner when they log in today.
    Realistically, you are not going to be able to cause arbitrary client applications to display something, you are going to have to configure each client application separately, which seems like a huge investment of time for very marginal benefits assuming that government agencies have a decent number of client machines and a decent variety of client applications. The glogin.sql file will work for SQL*Plus (assuming very recent versions or that no one uses the "connect" command to connect to a different database), but I believe you are looking for something that works across client applications, which probably doesn't exist.
    Justin

  • Execute Java Program in a specific time everyday

    Hi All,
    I need help for Execute Java Program in a specific time everyday.
    I want to do insert data into database every 3:00 AM everyday.
    I thought there is a one thread program will do. It is correct my understanding? Please let me know and guide me How can I do?
    Thanks
    Amit

    If you are using Window$ then you can create a bat file to execute the program and place the bat file in Scheduled Tasks.

  • How to create reports for java programs?

    Hi,
    I have planned to do a project using java,that will help to create reports for java programs. To create reports for java programs i used two options.
    1)Crystal reports
    2)Write the code to produce reports for each java programs
    The second one little cumbersome.SO i planned to develop a software that is compatible for creating java reports.
    I would like to know how i will do the project?Can you help me to made it a successful project.Hope you can help me.
    Expecting your reply
    PreethiRenjith

    Uggg... Crystal reports...
    I would personally write a generic report generator, It would probably be easier than fighting w/
    crystal reports (CR is popular, but painful :) )
    Anyhow, I've written report generators for many different applications. It is one of the simplest projects you
    can take on, and the results make you feel special --
    If your need nicely formated, portable, printable reports, you could have your report generator make PDF files (the format is open, and VERY simple, plus people like pdf files) you can get the pdf spec from adobe or from wotsit.org (the famous wotsit file format archive).
    enjoy!

  • How to execute java programs in xcode

    I cannot execute Java program in XCode for Mountain Lion 10.8.2. Please help me how to execute a Java program.

    Do you have a particular error or message or diagnostic or issue, or something that's particularly wrong with Xcode?  If installed, Java does work, and Java applications can be invoked.
    Background: Java was deprecated from OS X a while back, and Java itself was removed from the default OS X 10.8 installation.
    Given that Java is now an add-on for OS X, you'll want to check with Oracle — the owner of Java — for OS X kits and tools.
    I don't know off-hand if Xcode still particularly supports Java (it was pretty weak, when last I checked), but I'd expect you'll be using makefiles for the work, and I'd also suspect that whatever Java support remains in Xcode will probably be going away in some future version of Xcode.   (If support hasn't already disappeared.  You may be using bash build scripts and makefiles to deal with Java now, or going forward.)
    If you don't have access to the Apple developer forums and the discussions of tools available there, then the archives of the Apple Java-Dev mailing list can be a good spot to look for existing discussions, and to post questions related to Java development on OS X.
    As for IDEs other than Xcode,  Eclipse or NetBeans or IntelliJ IDEA, and BlueJ all run on OS X, and any of these would probably be a better long-term choices for Java development on OS X.

  • How to request Administrator or root to execute java programs?

    How to request Administrator or root to execute java programs when the user is not enough permission?
    as same as following image:
    Windows : http://img151.imageshack.us/img151/6113/winrw5.gif
    Linux: http://img374.imageshack.us/img374/8990/linuxsj4.png
    Edited by: lauangus on 2008?10?13? ??9:15

    Dear Sys Admin,
    Would you please grant me and my group enough rights to do the tasks that have been assigned to us, we are using the following programs. They will need to asccess....
    Sincerely,
    lauangus
    Note: this will usually have to be accompanied by appropriate supervisor signatures and endorsements.

  • Creating a  a java Program which Displays a POP UP in a JSF Web Page!

    Hi Folks,
    I wrote a java program which checks the user credentials against the Active Directory, and if it exists displays a URL (of Web Application) with useri nfo filled automatically in the page deployed on Tomcat ver 6.x.
    Now My Problem is just that I have a Pop up in the User Login page which has 3 buttons and according to that the Logic ,Navigation flows. Earlier i was just filling the info directly from Active Directory and Landed into the User Info Page. But now the functionality has changed so I have to modify it. I am not able to find how to Display the Pop up. in that page.
    If anybody can help me with that I would be really greatful.
    Thanks in Advance ,
    Somil

    Thank you for the quick response George. I guess a better way communicate what I need to accomplish is "how"
    I went to the toolbar on the right, then "javascript", then "Document Java Scripts". That opened a window that had me name the script, then add it, then put in the scripting (see below). I do not know how to "place it in a document-level JavaScript (outside of a function definition) or in the initial page's Page Open event."
    This is the script I am attempting to use.
    var message = "When you have completed filling out the Tax Organizer, click on the purple "SUBMIT" button at the top of the page. This will automaticall submit your Tax Organizer for you. Be sure to print a copy for your files"
    app.alert(msg,3);
    If you could provide some step by steps that would be super.
    I am wanting this pop-up box to open and the client will have to then click on the "ok" button to make it dissapear so that they can then fill out the PDF.
    The "Submit" button is auto created for me when I choose to distribute the form, I am unaware of any way to move it.
    I feel that my issue is a elementary one, I am currently working through the Adobe Classroom in a Book lessons as all my acrobat skills have been self taught.

  • Execute java program on UNIX

    I have no experience on Unix and I now need to try to execute my java program on UNIX server to which I connect using telnet. I have copy my source file to the server and I could run the javac command to compile my source code.
    In the current directory, I just execute "javac mySource.java"
    And I got my .class file on the same directory. But when I tried to execute "java mySource", I got NoClassDefFoundError. I think it has something to do with classpath. But I just don't know how to do it in UNIX. Please someone assist me. Thanks.

    Or setenv CLASSPATH $CLASSPATH:/your/classpath/here if you are running csh.

  • Acessing objects created by another java program

    ok ill give a higher level view of the problem.....
    i think this is a fundamental problem
    I have 3 java programms which take information and store it. all the type of information is the same so I created a class DataStructure....just to store information. this class i put in a package DataStruts and i call the class in the java programs by " import DataStruts.* ; "
    In the java prog. i create instances of DataStructure like
    eds = new DataStructure();
    in the first java prog i create an instance "eds", in 2nd "ads" and in third "pds".
    now in third prog i want to print all the information so i try to retrieve the data stored in the objects "eds" and "ads" by the previous 2 java programs.
    however the third prog does not recognise the variables eds and ads. i think this is because their instances have been created by the first 2 java programs.
    how do i make these instances of DataStructure available to the last program.??plese let me know.
    thankyou in advance.

    Can someone help me make the connection between the
    statements
    I thought a class's public methods were available
    to any other class that has access to the first
    class.
    and
    They are, but only to code running in the same
    VM.
    The first means that when you're writing a program, if class Foo has a bar() method that's declared public, then the compiler will allow you to call bar() on an in instance of a Foo. That's all it means.
    The second means that if I start two different VMs (two separate Java program's) the publicness that made it legal to call Foo's bar() doesn't automagically give the first program a way to know about or see or call a Foo's bar() in the second one.

  • Execute java programs automatically when system is connected to internet

    Good Day friends...
    Iam beginner in java. Please goes through the Question and please answer.
    I need to start my java programs automatically when system(windows operating-xp/7) is connected to the internet.
    Thanks in Advance,
    Shackir

    A. You might want to learn about Windows Services. Try searching for it on the web
    B. There is no way to programmatic detect if/when the local computer is connected to the internet, at least not in Java. The best you could do would be to create a timer and to periodically try to make your connection

  • Shell script to execute java program

    Hi there,
    In my script to execute my Java program, I have assigned a variable as follows:
    PROGRAM_ROOT = "C:/program"
    A jar file that my program needs is located in C:/program/build. ie. it is located in "PROGRAM_ROOT/build".
    In my script I have a property set as follows:
    -Dprogram.build="$PROGRAM_ROOT/build"
    When I execute the script using cygwin, the above line gets converted to the following:
    -Dprogram.build="$PROGRAM_ROOT
    /build"
    i.e. the concatenation of "PROGRAM_ROOT" and "build" results in PROGRAM_ROOT<carriage_return>\build.
    Is there a way to use PROGRAM_ROOT and concatenate "/build" to it?

    You'd have to build your own client/server implementation or use a remote messaging framework (like RMI) to help you with this if you wanted to do it in pure Java.
    It would be easier to just kick off some other installed process to send the message, e.g. install cygwin and pipe the command to start the shell and run the script through ssh. If you wrote a Java program to kick this off, it would only be a couple lines of code, and not really necessary.
    It's not ideal to try to do remote command administration just using Java.

  • How can i execute java program in JSP ?

    att
    thanks

    try to use:
    Runtime.getRuntime().exec("command line");
    where "command line" is your command to execute your program.

  • Shell script for executing java program

    i want to write a shell script which will export the classpath and compile & run the java program.
    any references from where i can get that?

    Try typing "man sh" at the command prompt.
    Ultimately it'll end up looking a lot like this:
    #!/bin/sh
    CLASSPATH=/path/to/a.jar:/path/to/anther.jar
    JAVA_HOME=/path/to/where/you/installed/java
    $JAVA_HOME/bin/java your.classes.package.YourClass

  • Executing java program

    iv installed jdk, jre 1.5.0_04 and 1.5.0_07 and NetBeans IDE 4.0 and 7.0.
    I
    am able to compile my java program but not able to run it.
    When i try to run it, i get the error ""Exception in thread "main" java.lang.NoClassDefFoundError:" followed by file name.
    Pls give me a solution to this problem as soon as possible

    http://onesearch.sun.com/search/onesearch/index.jsp?qt=Exception+in+thread+%22main%22+java.lang.NoClassDefFoundError&subCat=siteforumid%3Ajava31&site=dev&dftab=siteforumid%3Ajava31&chooseCat=javaall&col=developer-forums

  • Making batch files to execute java programs in windows

    In my comp sci class, i found a folder with a batch file, an application file, and all class files necessary to run the program.
    how do i take my java program and make a batch file to run it (in dos) like that program in my comp sci class?

    Okay, here are your steps for running a java program from a batch file:
    1) Open Notepad
    2) type the following:
    set JAVA_HOME=C:\j2sdk1.4.0_03 // specify the path where your jdk is
    set path=%JAVA_HOME%\bin;.
    javac {-classpath .;one.jar;two.jar} YourProgramName.java
    java {-classpath .;one.jar;two.jar} YourProgramName
    The stuffs inside {} is not necessary if your program doesnt use any .jar files.
    3) Save the notepad as mybatch.bat in the directory where your Java program is located.
    4) In the DOS prompt, go to the directory where you have .java and .bat files
    (use 'cd' command)
    5) Now, type mybatch.bat and press ENTER.
    Thatz it. Your program runs like a charm now!!!
    (provided the compiler is pleased with ur code :)
    -- layman's pal

Maybe you are looking for

  • Searching for Films

    Hi Ok, maybe this is a stupid question but I can't seem to work this out.  I have an archive of films on an external drive, synced into iTunes that I stream on my Apple TV 3 from the 'Computers' tab.  Is there anyway I can search through this on the

  • I can open all email attachments except .pdf.

    Until yesterday I could open all attachments. Now I can't open .pdfs.

  • Mac CS6 AAMEE and Deploystudio

    Hi all I am getting packages ready to deploy for the next semester and am having a problem with CS6. I am using the latest version of AAMEE to package up the various different versions I need. I am disabling the Adobe Air components and all seems to

  • CD stuck in slot & computer won't start

    I placed a cd in my front slotted graphite (special edition) iMac and the icon didn't appear. I attempted to manually eject with a paper clip and I heard all the whirring sounds but it would't eject. I hit restart and held the mouse key down, nothing

  • Avitek Sample Portal fails to deploy to any Standalone WLS

    Hi The Avitek Sample Portal is a custom portal built using Oracle WebCenter 11g Release 1 and WebCenter Web 2.0 Services. to find out more see link below http://www.oracle.com/technetwork/middleware/webcenter/avitek-sample-portal-086834.html I have s