executable « jar « Java I/O Q&A





1. Creating an executable jar file from a clojure project?    stackoverflow.com

I have a clojure project that uses the slick 2d game engine that I am trying to run as an executable jar file. I created the project in both Netbeans and ...

2. Is it possible to run an executable jar file on a machine without installing java first?    stackoverflow.com

Can I include the rt.jar in my executable jar file and double click to run it without installing java on the machine first ? I hope it to use that rt.jar ...

3. creating executable jar file for my java application    stackoverflow.com

public class createExcel {

public  void write() throws IOException, WriteException {

        WorkbookSettings wbSettings = new WorkbookSettings();
        wbSettings.setLocale(new ...

4. What are the minimum unix permissions to run an executable jar file?    stackoverflow.com

If I have a jar that I need to run using java -jar FOO.jar on unix, does this depend on the read, write or execute bit? Or some combination thereof?

5. executable jar file not running    stackoverflow.com

I have created a runnable Jar file of quite large dimension (125,000 kb). When I run it the application inside this jar file is not shown but in the Task Manager ...

6. Java Executable Jar Files    stackoverflow.com

Is there anyway to give Executable jar another image than the defult image

7. java jar file's multiple entry required from command prompt    stackoverflow.com

I have a Jar file with three classes P,Q,R all three contain static main function ... I want to have multiple entries to the Jar file while running from command prompt jar file ...

8. Java Executable file from JAR    stackoverflow.com

What's a good program to turn a .jar into .exe? I've tried jSmooth, JEXECreator and launchJ to no avail.

9. Executable Jar file not working another machine    stackoverflow.com

I have created an executable jar file to my java programm using Eclipse(File->Export). When i double click the jar it works fine.After i copy the jar file to another machine(windows) i got ...





10. NullPointerException when trying to run .jar file    stackoverflow.com

I have just started learning java, and know only a small amount of code, however this is still a simple program. It is a more of a prank program, but mostly ...

11. How secure my Executable jar file    stackoverflow.com

I developed a desktop application in Java. I converted my code in the form of Executable jar (.jar) format. Here my problem is, this jar files easily extracted by winrar/winzip. My ...

12. executable jar file    coderanch.com

13. Executable jar file problem    coderanch.com

I am creating a executable jar MyJar for my application. I am facing some problems 1) My Application contains a properties file MyProperty.properties which contains a key value pair which reference a location of the file say CONFIG_FILE=/XML/Test.xml This MyProperty file and the Test.xml are also included in my jar file. When I run the executable jar it cannot find the ...

14. Problem with executable jar file    coderanch.com

I have a class called JarTest which is in the package Test: package Test; import java.io.*; public class JarTest { public final static void main( String[] args ) { System.out.println( "Hello Readers" ); } } I have compiled and tested it . It is working fine. Then I created an exceutable jar file using the command: jar -cmf mainClass.txt sample.jar *.class ...

15. Executable jar files    coderanch.com

Hi folks, The executable jar file is just working fine: Thanks for ur support. I am just passing on the steps so that it may be useful: Steps for Creating executable Jar Files. 1.Create the java Program and compile It. 2.Make a manifest file(eg:Manifest.mf) as follows: Main-Class: eg: === Main-Class: Test 3.Make the ...

16. executable jar files    coderanch.com

I've made two executable jar files. One runs with a double click and one fails to run. Both run from the command line. The important one is the one that fails. I have no clue where to start to figure out how to make it work. "Java Virtual Machine Launcher: Fatal Exception Occurred. Program will exit." How do I even begin ...





17. executable jar file    coderanch.com

when i double click on jar file, I get error "Could not find the main class. Program will exit!" inspite of main class being defined in manifest. Any idea what I am missing? Details: 'perfagent' is package in which Agent class is present |***** Jar File content ****| Agent$1.class Agent.class Manifest.mf |**** Manifest File ****| Manifest-Version: 1.0 Ant-Version: Apache Ant 1.6.2 ...

18. How to create executable java files( jar )    coderanch.com

Hi nag, check these 3 links, they might help you in application deploying: 1.JSmooth is a Java Executable Wrapper that makes a standard Windows executable binary (.exe) from a jar file. It makes java deployment much smoother and user-friendly, as it is able to find a Java VM by itself. When no VM is available, it provides feed-back to the users, ...

19. How to create Executable jar file.    coderanch.com

20. how to crate a executable jar file    coderanch.com

hi all I have a simple java application and I want to make it executable jar file.My idea is that as soon as user clicks it should open. my console window should not open... & programe code could br applet or having public static void main(String aa[]){} please give me some idea..

21. using an executable jar file    coderanch.com

Hi: I have an application that uses classes contained in a jar file for processing Excel spreadsheets (the Java Excel API). This works fine when I run it as: java ReadPower report.xls with my CLASSPATH set to: echo $CLASSPATH .:./jxl.jar I want to "bundle" all my classes for this application into an executable jar file, then run the application from the ...

22. Executable Jar File    coderanch.com

23. How to make executable JAR file?    coderanch.com


Sun Certified Programmer for Java 2 Platform (SCJP)
Sun Certified Developer for Java 2 Platform (SCJD)
Sun Certified Web Component Developer for Java2 Platform, Enterprise Edition (SCWCD)
Sun Certified Business Component Developer for Java2 Platform, Enterprise Edition (SCBCD)
Sun Certified Enterprise Architect for J2EE (SCEA)
IBM Certified Enterprise Developer, WebSphere Studio V5.0

24. Game Tutorials -->> Creating An Executable JAR File    coderanch.com

This is part of the package of Game Tutorials threads, for which a complete listing of threads can be found in The Table Of Contents. Let's create a JAR file such that double clicking on the file will cause our desired Java application to run. Where do we begin to learn about JAR files? The JAR Files trail of Sun's Java ...

25. Executable Jar File    coderanch.com

Hi Firat of all I want to ask what is the use of making executable jar files. Suppose 'm having two simple class files A.class and B.class in E:\Files. I created one jar file with both of them. I know that i have to update the Manifest file. I want to ask what is to be written in that file for ...

26. Executable Jar Files    coderanch.com

I'm looking into packaging my small application so i can install my app on another computer w/o having to install java on the other computer. I read up on Executable jar files and this seems to be the solution. Unfortunately all of the tutorials don't seem to work. I'll give you my circumstances and see if you guys can help me ...

27. executable jar file    coderanch.com

How do I make an executable jar file that requires classes in another jar file? I tried putting the second one in the first one but I'm getting an error when I try to run it. Also I tried using the "Class-Path:" to specify a relative path to the other jar but that doesn't seem to work either. Chris

28. a question about executable jar files    coderanch.com

Hello everybody, I've generated my jar file following the suggestions of a thread of yours. I think I've generated it correctly because if I run the command java -jar Myjar.jar from the Windows command line, my dialog starts correctly. But it doesn't when double-clicked. The Windows dialog asking which application I want to use to pen the file appears and I ...

29. Executable jar files with CLI programs?    coderanch.com

Sorry, careless wording on my part. What I mean is, I've made two different programs, one that displays a GUI using swing, and one that runs in the command prompt (or perhaps "console" is a better word for it?). I made two different executable JAR files (using Eclipse - really easy). However, when I click on the one that has a ...

31. Executable JAR File Problem    coderanch.com

Sorry if this is the wrong forum for this question. I am using Eclipse IDE to build and export an executable jar file. I have a manifest file containing name of Main Class and Class Path. In my simple test case the only jar that needs to be on the class path is the log4j jar. So this is what the ...

32. executable jar files that contain jar files    coderanch.com

Is it now possible to have a truly self-contained jar file? That is, a jar file that contains jar files, the latter jar files being on the classpath? Back in the day, it wasn't. I am wondering if anything has changed. I see a few things in the ant task spec that are tantalizing but nothing definite.

33. Executable jar file not running.    coderanch.com

Hi, I have an executable jar file with a class named UTSApp this class contains the main method used to run the application. This class extends from SingleFrameApplication of JDIC components API in java6. I want to execute this file. I have this file at my desktop and i m trying to execute it using the command sequence. Current directory is ...

34. executable jar help    coderanch.com

This looks right, assuming you have a class in the jar named Test, which is in the default package, and has a main method. You could test it from the command line using: java -jar the.jar If you want it to run by clicking an icon, then the problem might be what action you associate to an executable jar. It's been ...

35. Running an executable Jar file from another Java Program    coderanch.com

Hi all, I'm hoping someone might have a solution to my problem. I've written an upgrade manager for a product using Java and its working well. My java code is in a jar file and is integrated with this product so that if its shuts down my program is shut down. However, there is a bug with this product that sometimes ...

36. executable jar file    coderanch.com

Hi I'm new to java and I'm trying to make an executable jar file with no luck so far. My OS is windows xp. I have my compiled class file: GuiDemo.class located at C:\Java Projects\bin\com\test\common. I created a manifest file: GuiDemo.mf at the same location which has the below contents and a blank line at the end of the manifest file. ...

37. executable jar file without having JDK installed    coderanch.com

More commonly now people use Java Web Start. If you set it up correctly, you just post your application on your website and the JNLP code in your web page takes care of making sure the user has the correct JRE on their system. (I disregarded your desire for the user to not have the JRE on their machine because it ...

38. Renaming a file inside an executable jar file (FILE NOT FOUND!)    coderanch.com

Hi Everyone, I created an executable jar file that I use to update a mysql database. I have a copy of the jar file in a flashdrive which I run it from there. The problem is the default working directory is platform dependent. When I run the jar from the flashdrive using linux I get the file not found exception (there's ...

39. creating an executable jar file    coderanch.com

Sure it can. But don't imagine the solution involves putting those other jar files inside the executable jar file you're about to produce! No, the way to do it is to put Class-Path entries in the new executable jar's manifest. The information you've already seen should explain how that works... if you've seen the right information, that is.

40. How to create executable jar file?    coderanch.com

I'm at a loss to understand what you're looking for. Darryl pointed you to a writeup that contains the answer you're looking for. You seem to have overlooked that, so I pointed out that, yes, indeed, the answer is in there. I thought for sure you would now read it more carefully. Instead, you're repeating essentially the same question a third ...

41. Problem Jar executable files    java-forums.org

On refering to Netbeans GUI tutorial, i realised that on building my program, apart from the jar file in dist folder, a lib folder should also be created alongside the jar file and the manifest file should designate main class and any libraries that are on the projects path. In my case, none of the above is done. I dont have ...

42. Double Clicking Executable Jar File    java-forums.org

Hi, I used eclipse to export a project as an executable jar file. The output jar file was able to be executed by double clicking the .jar icon. I tried to make an executable jar without the help of eclipse (using the command prompt)and I ran into an issue where I can run my program from my jar file using the ...

43. Executable jar file    java-forums.org

Can the main class be included in a package? And can this package be created into a jar executable? I was able to create a package with no compile error. I was also able to create a jar file from the *.class files in the package. The jar file is in the CLASSPATH environment variable. But got the following errors when ...

44. Create Executable Jar file    java-forums.org

45. Create Executable Jar file    java-forums.org

Hi, Thanks for the reply.... Actually I have the Run configuration, when I go in The Run >> Run Configuration.... where I can see MyProject in the Project box and also MyApplet in the Applet box... and when I press Run, the applet runs in the same way as when I run it from the main work bench window... Any idea ...

46. Edit Executable .jar files?    java-forums.org

So, I have a .jar executable file and I don't have the source code. As far as I know I can rename it with .zip, extract it, and modify the source. But, how do I make it a .jar executable with the modifications? Is it possible without the original source (Isn't all the source in the .jar executable?) Thanks for your ...

47. How to create an executable jar file?    java-forums.org

Ok so I've made a game on Java and I want to create a jar file to run it so I can just have it on my flash drive and use it on any computer that has java installed. However I'm having trouble with it. I've googled it and found instruction around that say to type something like this "jar -cf ...

48. JCreator build executable jar file    java-forums.org

Hi All, I had finish wrote a java script using JCreator LE. Now i want to build it into executable jar file. I had search a lot info on build a jar file, and follow all the step a mention. I still newbie on java so my coding having so redundant code. But it still able to run and output the ...

49. creating executable jar files    forums.oracle.com

50. Executable JAR file does not work with 64 bit JRE.    forums.oracle.com

Hi... I have created a executable jar file. If I double click on this jar file it works fine with 32 bit JRE. But If I use 64 bit JRE, it is recognized as a jar file. If I double click on it, a window is shown to select a program for running the jar file. But it doesn't even work ...

51. Help Making Executable Jar File    forums.oracle.com

52. Been trying to run a jar executable file but it keeps    forums.oracle.com

ok this is whats happening.. I created a file called called Hello.java and its associated class I made a folder and put it in, So in the folder them 2 are set. I've been reading up on how to create Jar files, hence on the console I typed C:\Users\me\Desktop\Hello> echo Main-Class: Hello >manifest.txt to create my MF file then I tryped ...

53. Making Executable Jar file using java Application    forums.oracle.com

Sir, On execute the jar using a "java -jar. . ." command. it gives the error-- "Exception in thread "main" java.lang.NoClassDefFoundError : TestFrame" On Extracting the files from jar file made by the java program,i found that the manifist file ( containing the name of main class) and t the class file are included in the jar file. But if I ...

54. problem with executable jar file    forums.oracle.com

Hi, I wrote a simple little xml based app in eclipse, it had xalan and xerces in build path. I created an executuable jar that ran fine on my machine; I was able to move it to different directories and launch it successfully, but when I put the jar file on a network directory and asked a coworker to try running ...

55. Question about Executable JAR Files    forums.oracle.com

Is it possible to make an executable JAR file that has all of the *.class files, all of the *.jar archives used, etc. packaged into one file that doesn't need these external files within the same directory? I've been having a ton of trouble finding the answer to this. (If it's blatantly obvious, please forgive me.)

56. Re:to make executable jar files    forums.oracle.com

Hi all, I have built GUI in java using netbeans.Now what i want is I want to make a jar executable file of my code so that i can it in any machine.even that machine is not having java and netbeans.but it must run successfully.But if now I try to execute on any other machine,it errors like sql server driver not ...

57. Executable JAR file.    forums.oracle.com

58. Help with an executable jar file    forums.oracle.com

59. Executable JAR file    forums.oracle.com

I looked up at various places on the procedure to create executable JAR files out of ordinary Java .class files. They were all convergent on the procedure but even after following it properly, I was only able to execute my .JAR file using the command prompt and the command "java -jar filename.jar" No matter how many times I clicked on the ...

60. Creating a executable jar file    forums.oracle.com

Im a novice java programmer. I have the .java and . class files . How to create a executable file from those. I heard that .jar are executalbes so how to create .jar files. I tried to creat .jar files using jar.exe i could create the file but how to add manifest.mf and wat are the rules and should manifest be ...

61. my executable jar turned into a winrar file and now i can't run it    forums.oracle.com

hey I just made a game in swing using Eclipse and I converted it into a jar file. The game works fine when I run it through the jar file on my computer. I took the jar file to my dad's computer and double clicked on the jar file and it worked fine. However, this game is for my girlfriend and ...

62. Executable jar file with VM options settings    forums.oracle.com

I am using netbeans IDE, I have create an application who uses large memory heap size, currently I increase heap size by defining VM Options to "-Xms200m -Xmx210m" in run Tab of project configuration in netbeans IDE. Now its time to release this build to my client and I want that client just double click on jar executable file or setup ...

63. Convert a .java to a executable jar file    forums.oracle.com

I don't get it. I've put all the files of my program (.java and .class files) in one folder. Next i made a .bat file with the following text: javac Rekenmachine1.java jar cvfm Rekenmachine1.jar mymanifest Rekenmachine1$afsluitenHandler.class Rekenmachine1$aftrekkenHandler.class Rekenmachine1$delenHandler.class Rekenmachine1$maalHandler.class Rekenmachine1$plusHandler.class Rekenmachine1$procentHandler.class Rekenmachine1.class Rekenmachine1$.class I made a manifest file called mymanifest witch includes: Manifest-Version: 1.2 Main-Class: DiveLog Created-By: 1.4 (Sun Microsystems Inc.) ...

64. Executable Jar File    forums.oracle.com

Hi I need help from you guys ,stuck with this scenario for more than a week ,thought to post it in a forum in a hope that i will get a better response from u guys. I will explain my problems clearly.I have a project wjich opens an existing excel file.My project has one jcom.dll file,jcom.jar file,sample excel file which i ...

65. How to create an executable or jar file?    forums.oracle.com

Hello everyone, I have a little doubt. Actually i am working with Netbeans & swings and in that i have developed a project but a simple project will have so many files, can anyone tell me how do i create a executable jar file or an executable file from the files developed using netbeans. Thanks for writing back. Regards, Lucky

66. Qusetion about Executable JAR files    forums.oracle.com

I use the Eclipse IDE on Mac OS X Leopard. I was just wondering, if I create a JAR file on mac, can I send it to a Windows user and they can run it perfectly (Swing application)? Or do I need to export it differently to get it to work on windows. I just want all users to be able ...

67. How to creat a executable jar file    forums.oracle.com

68. Problem with executable jar file    forums.oracle.com

Hi guys, When my programs start up, it reads the object from the file, and loads it in to the system. But when I run it from the jar file, it does not read that object. I think I have got an issue with file path, any suggestion? Thank you very much

69. Cannot make executable jar file for swt application    forums.oracle.com

but a few steps aren't exact for me , for example : first, which jar i have to include in build path : downloaded or from plugins folder, second i have to incude source.zip too??? but it is only in downloaded zip file which includes both swt.jar and src.zip, and finally can anyone clarify next : "5. Package the JAR with ...

70. Executable Jar file - Does not open    forums.oracle.com

Hi, I have an executable jar file. The icon of that executable jar is that of an unknown file instead of the normal java icon. So when I try to run that executable jar it shows 'open with'. What is the reason for this? What should be done in order that I can run this executable jar? Anees

71. java media framework doesnt work with executable jar file    forums.oracle.com

I have a problem with JMF .I m working on capturing of image from webcam. When I build path of JMF lib files by adding 'Add Jar ' from eclipse IDE , my application run but capture function of webcam doesn't work means it doesn't get path of JMF lib file . But if JMF lib file added directly from C:\Program ...

72. Dynamic pathing in executable jar files    forums.oracle.com

I missed the lunar eclipse last Wednesday, due to bad weather. I found a site where the guy was broadcasting pics of Luna every 20 seconds. I saved an image every minute, with the idea of running them together in a viewer that I could then jar up, and email to anyone who had missed the eclipse, or just wanted to ...

73. jar - Executable Jar File    forums.oracle.com

This is perhaps a bit obvious, but you can create a shortcut to the jar file and change the icon of the shortcut. A shortcut also makes sense because it can reside somewhere visible to the user and have greater access rights than the executable(s) which are out of sight. Edited by: pbrockway2 on Jan 22, 2008 8:32 AM Earlier Windows ...

74. How to generate executable jar file?    forums.oracle.com

Helo Everybody, I got question: I created project i JBuilder 2006 and then I need togenerate executable jar file. I know how to generate jar file through archive wizard in JBuilder(I choose Applet Jar) but when I tried run this gererate file I got following message: "Failed to load Main-Class manifest attribute from cmt.jar" . Can somebody explain what's wrong ? ...

76. Question about making executable jar files    forums.oracle.com

EDIT: I was looking up installers and actually got another idea--would it work if I made a copy of the jdk and jre on my computer and put it in a zip file with my jar, and then somehow told the jar to use the relative path to the jre and jdk? I'm not very good at relative paths so I'm ...

77. how to make executable jar file for a serial port project    forums.oracle.com

Hi I am Murali I have developed one serial port interface application i have dowloaded and extracted the comm.jar file and placed in the (javax folder & com folder )current folder while i try to run that application in cmd or Jcreater, It is working i am able to send and receive datas i have created executable jar file for that ...

78. executable jar file    forums.oracle.com

i have created a executable jar file and coppied it to the documemnt and settings\......\startup folder .but it doesnot run when window startsup and will produce an error "could not find the main class .program will exit. .but when i made a double click it works fine.what is the problem related with this.

79. Executable Jar files no-longer working!!!    forums.oracle.com

80. how to pass paramets to executable jar file    forums.oracle.com

81. Java executable file .jar    forums.oracle.com

Dear Friends, Actually I am programming an e-learning application so people may learn to use a device after passing through my application. For this I have to create an executable file so it can be executed from any PC or MAC station. So I would like to ask few questions in this regard: 1- I know that a .jar files can ...

82. export jdeveloper as jar executable file    forums.oracle.com

83. create an executable jar file    forums.oracle.com

869850 wrote: As far as your second questions goes I don't think there is any way you can embed jar into another jar, my suggestion is create a bash script or dos script to run the program . That doesn't change anything. If the class-path line in the manifest is wrong the application will still fail to run. The only option ...