Home > Default > How to execute a java program by clicking !?!?

How to execute a java program by clicking !?!?

November 30Hits:0
Advertisement
Just a click to execute a java program?!!
Like the ".exe" in Windows or "x" permission in Unix ?!?!?!
How can I do that?
And how to set a java program file to display as a personal icon? (My Icon)
:-)

Answers

Well this is what I do in Windows (I use XP but it works in others):
First you have to make sure all the class files are in the same folder (duh)
Then you copy your java.exe from your jre folder into the folder with all your class files.
Finally, you create a shortcut to java.exe and add your class name to the command line on the shortcut.
Now all you have to do is double click on the shortcut and your program runs. Sure it's not that pretty but it works.

Read other 6 answers

Tags:

Related Articles

  • How to execute a java program by clicking !?!?November 30

    Just a click to execute a java program?!! Like the ".exe" in Windows or "x" permission in Unix ?!?!?! How can I do that? And how to set a java program file to display as a personal icon? (My Icon) :-)Well this is what I do in Windows (

  • Batch prog to execute remote java programNovember 30

    hi all i have one batch file which executes the local java program .... but i want to execute a java program in a remote machine.... how do i do this..? kindly helpWell this is what I do in Windows (I use XP but it works in others): First you have to

  • Executing new Java ProgramNovember 30

    Hey, So I'd like to be able to execute another java program. File directory = new File(".");             try {                 List<String> l = new ArrayList<String>();                 l.add("Java "+directory.getCanonicalPa

  • How to execute a Java program from ODINovember 30

    Hi All, I am new to ODI. I would like to know whether its possible to execute a java program from ODI. Reason for this is, I would like to write information in error tables into a file. And after that another program will mail that error log to conce

  • Use ProcessBuilder to execute a java program with a file piped as inputNovember 30

    Hi, I am trying to execute a java program passing in input file as argument. I have to do this by forking a process and am using Processbuilder. I have a main function which calls the executeCliTopologyDesigner method. I get a Java I/O exception Caug

  • Executing a JAVA program from a DOS prompt vs the START = RUN dialogNovember 30

    Another novice programmer question...I hope you have the patience... I have a demo JAVA program that runs fine on my Windows PC when I execute it from a DOS prompt: K:\COMMON\ITS\STEVEB\java\WhileDemo>java WhileDemo Count is: 1 Count is: 2 Count is:

  • Please help with executing a java program from another java programNovember 30

    Hi, I have tried to execute a very simple java program which is printed out "Hello world" from another java gui program when the user click on the "START" button. However, I don't receive any print out on the terminal when they click i

  • Error while executing HelloWorld.java programOctober 11

    Hi All, I am trying to execute the samples(HelloWorld.java) program from Jdeveloper and provided the following details in runtime.defaults: CONTENT_DB_URL ADMIN_USER_NAME ADMIN_USER_PASSWORD however getting the following exception: FdkException: Erro

  • Problem while executing simple java programOctober 11

    Hi while trying to execute a simple java program,i am getting the following exception... please help me in this java program :import java.util.*; import java.util.logging.*; public class Jump implements Runnable{     Hashtable activeQueues = new Hash

  • Execute a java program from an another programOctober 11

    Like we can compile a code from wihin a java file by using the following : Tool javac = ToolProvider.getSystemJavaCompiler(); Similarly,can we execute i.e. run a java program from within a java file i.e. running d java command from within the java fi

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.596 s.