run « jar « Java I/O Q&A





1. How to run a JAR file    stackoverflow.com

I created a JAR file like this:

jar cf Predit.jar *.*
I ran this JAR file by doubling clicking (it does not work). So I ran it from the DOS prompt like this:
java ...

2. How to run .jar file on unix?    stackoverflow.com

I have generated .jar file in windows.
I have to execute that .jar file in unix . I am running that command (java -jar myJar.jar), but it's giving

 java.lang.UnsupportedVersionError
I ...

3. How to run a .jar file from inside another java program?    stackoverflow.com

i have a .jar file, which I can run on the command line:

java -jar myFile.jar argument1
I want to save the output of this .jar as a String variable inside another java ...

4. how to run a jar file with editplus    stackoverflow.com

I want to run a jar file in editplus3 but I dont´n know how do it. My program take text structured and converte it to XML structure but it works fine. ...

5. run .jar file with "java" command Centos    stackoverflow.com

I'm trying to run a .jar file on my centos box, but it says "java: command not found". What's the best or easiest way to solve this? I was hoping for a ...

6. Jasper Reports can not run with the project jar file    stackoverflow.com

i have created one project in java with the help of Netbeans IDE. I am using Jasper Reports as a reporting tool. We i run my project in netbeans the reports ...

7. Failed to run jar file    stackoverflow.com

I create jar file with command.

$jar -cvf A.jar A.class
I tried executing
$java -jar A.jar 
I am getting below error.(Before adding "Main-class : A" to manifest.mf)
Failed to load Main-Class manifest attribute from ...

8. how or with what to run *.jar file    stackoverflow.com

Possible Duplicate:
How to run a JAR file
hi how or with what to run *.jar file ? can i get any tool for this (free if ...

9. Java FileNotFound when run jar file    stackoverflow.com

in my proget i load my resource using

getClass().getResource("/package/my_reource.file").getFile()
All works good when i run the project in netbeans, but if i run the .jar file, i have exception FileNotFound, why? Thanks.





10. how to run jar file on RHEL5?    stackoverflow.com

I have made a jar file which i tested in windows and it works fine. now i want to test it for red hat enterprise linux 5. but i dont know ...

11. Run jar file in command prompt    stackoverflow.com

Possible Duplicate:
How to run a JAR file
Hi How we can run jar file in command prompt? Thank You.

12. jar file doesn't run    stackoverflow.com

I'm fairly new to Java and having recently installed the latest JDK I'm having trouble getting files with a .jar extension to run. When I double-click them I simply get an ...

13. How to make a jar file run at start up    stackoverflow.com

I have a game that has a side application that acts as an updater. The updater can check for updates hourly, daily or weekly. I want this updater to be ran ...

14. Can't run jar file?    stackoverflow.com

I'm new to java so I might be missing something obvious. I'm trying to create a simple command-line game in java. I use two classes: http://pastebin.com/wRgqgJQP http://pastebin.com/0rXbxdiJ The ...

15. how to run .jar file on IIS    stackoverflow.com

I've opened a webserver using IIS on my computer in order to host my multiplayer game. I've build the server in java and wish to run it on my server so users ...

16. Export and run java jar file in Ubuntu    stackoverflow.com

I exported a jar file from Springsource Tools Suite, and when I tried executing it in the command line, I always get this error: Exception in thread "main" java.lang.NoSuchMethodError: main This is the ...





17. How can i run a .jar file in java    stackoverflow.com

I'm making an update function for my project, it's working great, until i want it to restart, basically I download the new file and replace it with the old one, and ...

19. Why can't I run these jar files on a PC that doesn't have the JRE 6?    coderanch.com

Let me be more explicit. It appears that it is not possible to run a jar file containing .class files compiled using the JDK 6 on computers that only have the JRE 5. I tried to run some jar files on some computers that only had the JRE 5 installed, but I kept getting a message saying that the main class ...

20. Run the .jar file    coderanch.com

Hi all, When i try to run the .jar file,the following error is thrown. "Failed to load Main-Class manifest attribute from" How could i correct the above error. As i'm very much new to this jar file creation.I tired with following sample jar cf sample1.jar GetIP.class and just i run the .jar as java -jar sample1.jar is that rite are something ...

21. Use jar file to run console based program    coderanch.com

Hi I run a console based program which contains two files , of which one contains the main. I want to run that program using jar file. Problem encountered: I am using javax.comm package in the program. When i run jar file using : java -jar .jar It gives the following exception: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPortIdentifier at ConnectModem.ModemProcess(ConnectModem.java:22) at ...

22. How to run jar file?    coderanch.com

Thanks. I can be able to run for the jar file which isn't included in some package. But if I have a package which includes 5 java classes. I build a jar file contains all these 5 java classes file. The steps I use are: 1> Make a manifest file: Main-Class: AppendInterface 2> Build the jar file: jar -cvfm Append.jar Manifest.mf ...

23. Can the Java browser plugin also run a jar file as a standalong app?    coderanch.com

Please this question is special. I have a good amount of programming experience with the Java platform but I am by no means a guru. We are dealing with a company that 'claims' that their standalone java application in the form of .jar file can be run on ANY computer. His argument is that you can pretty much garauntee that all ...

24. I cant run any jar files    coderanch.com

25. Run jar file    coderanch.com

26. run java .jar file on startup without user interfering    coderanch.com

I am using the Windows XP OS, and when I mean startup, I mean every time the computer boots. For example, if I shut down the computer then reboot it, he jar file should run. I know how to do this quite easily by putting the jar file in the startup directory but I would like more advanced means of doing ...

28. Unable To Run Jar File... Urgent....    coderanch.com

29. how to run a jar file from the cmd prompt using a specific jre version    coderanch.com

Hi All, I am facing an issue where I need to run a jar file from cmd. This jar was compiled using jdk 1.5.The server from where I run this jar file has jdk 1.4 and jre 1.4 set in the path. I don't have the necessary permissions to modify this path from the environmental variables because of business issues. I ...

30. How to run jar file    coderanch.com

Hello I made a .java file in eclipse 3.4 (Ganymade). Function of this file is to turn on the caps lock key of the key board.I ran it and it is working properly. Now by using export facility I made .jar file of this class asn put it on my system desktop. But when I double click on this jar file ...

32. Cannot run .jar file    coderanch.com

33. can't run jar file in win xp    coderanch.com

I'm more familiar with Eclipse, but I assume NetBeans has the option to export (or build, or something) both a regular jar file and an executable jar file. True? Which type of jar file are you trying to run? If the executable jar file, does WinXP recognize it as an executable and run it when it is double clicked? What happens? ...

34. application to run jar files    coderanch.com

35. run a java application(jar file) when a user opens another application    coderanch.com

Hi All, i was trying to do the following task for several days and was not successful in doing it. appreciate much if someone can help me with it. i have developed a desktop application using java and it works fine. there is a requirement to run this java application when the user opens(starts) a specific application.(lets say when the user ...

36. Run Jar file on double click    java-forums.org

Hi, I have created jar file of my application but I am not able to run that jar file on double click. I have also included manifest file in my jar file with Main-Class attribute. However I can run it through command prompt ,but I want it to execute on double click of mouse. Please suggest me an appropriate way to ...

37. run a jar file from javascript/html on click of a button    java-forums.org

Hello I am having a .jar file and i want to run this file on click of a button from HTML/JavaScript. the JavaScript is having some buttons which on click gets the data from database(sql) n stores it back in database(sql) using AJAX. Java program is having a small GUI but i don't need to click or select anything it runs ...

38. Jar file will not run.    java-forums.org

39. unable to run a jar file.    java-forums.org

40. run multiple jar files by one click    java-forums.org

Hi everyone, Now I have 2 jar files, parser.jar and post.jar. Each file can run separately. I want to run them by one click. For example, combine them into one jar file (I am not sure if it's possible, because there seems like to be 2 main classes). Or maybe some scripts? Any suggestion is welcome!

41. Run a jar file in a java project    java-forums.org

146 recipes 16 achievements 16:29:15 [INFO] Starting minecraft server version Beta 1.5_02 16:29:15 [INFO] Loading properties 16:29:15 [INFO] Starting Minecraft server on 192.168.2.32:25565 16:29:15 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE! 16:29:15 [WARNING] The server will make no attempt to authenticate usernames. Beware. 16:29:15 [WARNING] While this makes the game possible to play without internet access, it also opens up ...

42. to run jar file without installing jre    java-forums.org

i have a stand-alone JAR file. I want it to distribute it on CD.Now JAR file requires JRE to work.How do i create the CD without installing JRE on the client PC ? Is there any way to emulate the Java Runtime Environment on the CD so that no installation of JRE is required on the client PC and the JAR ...

43. can not run jar file    forums.oracle.com

44. How to run a jar file using Java application.    forums.oracle.com

for me, i hear people want to often bundle "mysql.jar" into the jar file that holds the app. but you can't bundle jar files inside jar file. so i take a brute force approach of: // if "app/enging/*java" and "app/engine/*java" are my packages, then i have a script here that // bundles in mysql.jar jar xfv mysql.jar jar cfvm myJar.jar manifest.txt ...

45. Can't run Jar file    forums.oracle.com

What JRE version are you using (Java SE 6?)? In a previous [New to Java forum entry|http://forum.java.sun.com/thread.jspa?threadID=614564&messageID=3408643], people were able to solve similar problems with earlier version mismatches by using the Windows [regedit|http://support.microsoft.com/kb/256986] command and viewing (and possibly [editing|http://64.18.163.122/rgagnon/javadetails/java-0525.html]) the HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment\ registry key. Other things to check are any settings for the environment variable JAVA_HOME and the version of ...

46. how to run .jar file    forums.oracle.com

47. how to run several jar files    forums.oracle.com

48. is it possible to run a .jar file without having JVM/JRE installed?    forums.oracle.com

is it possible to run a .jar file without having to install the JVM/JRE to the machine? i created an executable .jar file that has classes that extends JFrame, and its stored in my USB flash drive, and i created a autorun.inf that executes this .jar file, but it only works when JVM/JRE is installed i the PC. What i hope ...

49. run a .bat file in the jar file    forums.oracle.com

Hi, In my java class I can open a notepad like this : Runtime rt=Runtime.getRuntime(); Process process=rt.exec("C:\\WINDOWS NOTEPAD.EXE"); and it works, but if I want to run another bat fie, It doesn't show any activity, and does not work. Process process=rt.exec("C: test.bat"); Does anyone know how to run a .bat file in the java or jar file? Thanks.

50. Run a JAR file!!!    forums.oracle.com

52. Jar file won't run    forums.oracle.com

Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\ToolWatcher>cd Desktop C:\Documents and Settings\ToolWatcher\Desktop>jar tf GUI.jar META-INF/ META-INF/MANIFEST.MF gui/ gui/cameraImages/ gui/cameraImages/50x1_6.bmp gui/cameraImages/50x1_6.jpg gui/cameraImages/temp/ gui/cameraImages/temp/Thumbs.db gui/cameraImages/Thumbs.db gui/DemoGUI.class gui/ExecuteRunnable.class gui/Graph.class gui/GUI.class gui/GUIComponents.class gui/GUIEvent.class gui/GUIFunctions.class gui/GuiState.class gui/images/ gui/images/.picasa.ini gui/images/.picasaoriginals/ gui/images/.picasaoriginals/Thumbs.db gui/images/0023.JPG gui/images/DemoGUI.html gui/images/reload.jpg gui/images/temp.jpg gui/images/temp1.jpg gui/images/Thumbs.db gui/images/ToolDataChart.jpg gui/images/ToolWatcherIcon.JPG gui/javabuilder.jar gui/JNILibrary.class gui/LoadGUIImages.class ...

53. Please I can not get a .jar file to run on XP SP3 start/run/cmd/    forums.oracle.com

I wonder if this is a program which can be executed, or is ist just a bundle of files that gives you the opportunity to use the files within your program. As I understood you are using netbeans. I just have a guess, cause the error message says that you need the propeperty file. I also saw a property file in ...

55. How to run a jar file?    forums.oracle.com

56. Very new to Java, trying to make a jar file run on WM6    forums.oracle.com

Ok so i downloaded this java progam that is supposed to work on "java-enabled" phones. So i have windows mobile 6, which is able to run java but i think its limited to the browser. when i try to run it on a virtual java machine i recieve the following error. java.lang.Exception: No Main-Class attribute in \My Documents\TrafficPilot.jar at java.lang.VMMainThread$1.run(VMMainThread.java) at ...

57. open console when i run java jar file    forums.oracle.com

greetings all i have a java program that i execute through JCreater. i want if i make its JAR file then its console should be open so that i could see thats printing when i use "System.out.println". is there anyway? right now when i double click my JAR file then nothing is displayed. how can i make that happen?

58. Cant run JAR file    forums.oracle.com

59. Cant run my JAR file from command line    forums.oracle.com

Hi all I have created a JAR file from the .class files in my project. I added a Manifest file with the following line: Manifest-Version: 1.0 Created-By: 1.6.0 (Sun Microsystems Inc.) Main-Class: myPackage.TestClass Once the jar is created I can see the TestClass.class file in the JAR and thought all I needed to do was run: java -jar MyTestJar.jar (which contains ...

60. How to run jar file through a java program    forums.oracle.com

61. How save file into the jar my app is run from?    forums.oracle.com

No, I want to allow them to save fonts into the jar file so that if it's then copied onto another computer without those fonts, they'll still be included. I don't want to have to include more than one jar file (with an external one holding the font files) because the users (seriously) can't handle managing multiple files. Is there really ...

62. Run Jar file with process builder    forums.oracle.com

I get this error java.io.IOException: Cannot run program "java -jar CommandBase1.8.jar" (in directory "/home/william/JavaApps"): java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:459) at commandBase.CommandFrame.openJar(CommandFrame.java:1098) at commandBase.CommandFrame.DecideOpenMethord(CommandFrame.java:1056) at commandBase.CommandFrame.setDisplayedDIRFromIndex(CommandFrame.java:973) at commandBase.CommandFrame.access$23(CommandFrame.java:960) at commandBase.CommandFrame$1.mouseClicked(CommandFrame.java:192) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253) at java.awt.Component.processMouseEvent(Component.java:6041) at javax.swing.JComponent.processMouseEvent(JComponent.java:3265) at java.awt.Component.processEvent(Component.java:5803) at java.awt.Container.processEvent(Container.java:2058) at java.awt.Component.dispatchEventImpl(Component.java:4410) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3995) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916) at java.awt.Container.dispatchEventImpl(Container.java:2102) at java.awt.Window.dispatchEventImpl(Window.java:2429) at java.awt.Component.dispatchEvent(Component.java:4240) ...

63. my JAR file doesnt run!    forums.oracle.com

Sounds like you have a problem with .jar libraries your program references. When you use an executable jar file any class path from the environmental variable, or even from the command line is ignored. Any library jars your program uses must have their file paths listed in the manifest file itself, on the Class-path line. (Space separated). You can use either ...

64. Button action - run separate jar file    forums.oracle.com

My first post here (hopefully many more to be:D) and I have an interesting question which I haven't thought out how to realize it. Imagine you run the NetBeans template for a sample GUI application. You add a button, and the action of the button when pressed to be to run another jar file (and maybe pass parameters to it). How ...

66. decompiling jar file and then run    forums.oracle.com

Dear Members, I have a jar file and I have decompiled that jar file and converted into class file, now I want to run/edit using source code ,I am unable to run source code with out put whatever coming in jar file running, I am trying with class in which public static void main(String[] args) function defined, I am using Jcreater1.5 ...

67. How To Run Jar File    forums.oracle.com

When you have the latest version of Eclipse, this is too easy. Write your code/project in eclipse, right click project and click options.Than you can add any number of files/jars/folders to your build and run paths with 2 clicks. After that; right click project and say "Export", choose "Runnable Jar File", and voila, save it on desktop. You can run the ...

68. creating jar execuatbale file to run on java web start    forums.oracle.com

I have an application I can run from the control prompt that I want to run from Java Web Start. I created a number of jar files. But am confused on the following: 1. Creation of the jar executable file. 2. How to get the jar executable file to run in JWS. Does anyone have a good example of a program? ...

69. Issue when i run jar file though double click    forums.oracle.com

Thanks you very much pbrockway2! I will check it out these. You're welcome. Those ideas were just suggestions to show the variety of approaches that fit different circumstances. If you get stuck consider posting a brief example - it could be a simple as a static main() method that accesses the resource and does something trivial to indicate success like producing ...

70. Run java program which import .jar files    forums.oracle.com

Dear All, Need help. I can compile this program where the compiler can recognize the "pre" statement (comes from jass). But unfortunately, it could not run that can produce the output based on the "pre" statement (it can run using java default). Here is my sample program (just for testing...):- package javaapplication9; import jass.modern.*; /** * * @author remy */ public ...

73. How to Run a JAR file from inside a JAR file    forums.oracle.com

74. unable to run jar file from command line    forums.oracle.com

i have created a jar file from a java SE application, using java persistence, in NetBeans environment. The application is executed normally via netBeans, but from command line I get the following exception, even though I have correctly set the classpath : E:\JavaProjects\FinalProject\dist>java -jar FinalProject.jar [TopLink Config]: 2007.04.16 06:10:43.343--ServerSession(26250401)--The alias na me for the entity class [class bill.myproject.entities.Arc] is being defaulted ...

75. i dont know how to run a jar file    forums.oracle.com

hi guys i wanna run with commands, a jar file that is generated from netbeans, in netbeans it runs perfectly but if i try to run it with commands "java file.jar" says: Exception in thread "main" java.lang.NoClassDefFoundError: Paint.jar and with command "java -jar file.jar": well the same errors but like 3 or 4 more and with command "java -jar file.Main" Failed ...

76. How to run a jar file without console    forums.oracle.com

hi , i convert my classes into a jar file and execute it from a batch file in the console , is there any way to execute the jar file without using this console window .So that the output is only the application window not the application window and the console window. Best Regards.

77. Java fault?why I can run jar file use -classpath/-cp option    forums.oracle.com

My application used the oracle jdbc lib classes12.jar, but my application jar does not include this lib, so I want to use java -cp or java -classpath to indicate the lib classes12.jar. My application jar file is OK, but when I run use java -cp libpath -jar my.jar, its allway say:java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver The libpath I tried many expression, I think has ...

78. how to run a jar file    forums.oracle.com

79. jar file won't run    forums.oracle.com

80. run jar file problem    forums.oracle.com

hello, I am creating one project using netbeans. After that, that project( sdff) jar file(sdff.jar) is stored in dist folder. Now, I am try to run that project (sdff) by clicking that jar file itself or give cmd java -jar MyJar.jar. But when clicking (or give cmd) that jar file it show an error "Failed to load Main-Class manifest attribute from ...

81. .jar file from Ver 5, will not run with Ver 6    forums.oracle.com

Remember, I am nothing more than an end user attempting to upgrade his version of JAVA, without suffering from all of his existing JAVA programs (the .jar files) no longer working. I need very basic help. I need clear, step by step, instructions. Has his problem never happen to anyone else? Honestly, I was hoping that there was some experience I ...