1. How to start java app with many jar files forums.oracle.comHi, I have an application that makes use of 50 jar files. When I try to start the application, I need a very long command line like java -classpath file1.jar;file2.jar;file3.jar; ... de.me.myapp.myclass This is not very handy. Is there a shorter way if all jars are in the same directory? I would like a command like this: java -cp /usr/local/my_jars de.me.myapp.myclass ... |
2. Creating JAR file .... forums.oracle.com |
3. File Not Found inside jar forums.oracle.compath --- jar:http://localhost/slider.jar!/welcome.wav String -- jar:http://localhost/slider.jar!/welcome.wav java.io.FileNotFoundException: jar:http:\localhost\slider.jar!\welcome.wav (The filename, directory name, or volume label syntax is incorrect) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile. |
4. Help needed: getting jar files to work. forums.oracle.comI read that tutorial, but i exported it as a JAR from eclipse. I don't have command line output there, or atleast i don't need to see it now. How should i run the jar file then? I am double clicking it yes. EDIT: i ran the program through command line and i got an error: Exception in thread "main" java.lang.NullPointerException ... |
5. how to append existed jar file? forums.oracle.com |
6. JAR files and getResource() forums.oracle.comHello i have the following piece of code in class x.y.z.Tester: String rootPath = this.getClass().getResource("/").getPath(); System.out.println(rootPath); which prints the path where the x.y.z.Tester class is located on my FS. for example if my class is store at: C/folder_1/bin/x/y/z/Tester.class the returned path would be: C:/folder_1/bin Now, when I bundle this class (along with others) in a JAR file and set the x.y.z.Tester ... |
7. jar file forums.oracle.com |
8. jar files to mySource code forums.oracle.comThe core idea is that any class you want to use has got to be in the classpath somewhere. So if you are using classes in a seperate Jar file, you've got to put that jar file on your classpath, or you can extract all files in the jar and put the extracted folder / class tree structure under the same ... |
9. Replace / Save an .ini File in a JAR File forums.oracle.comI don't think you can modify the jar file you're running from like that. It isn't allowed (someone correct me if I'm wrong though). But this is probably a poor design anyway. Have your program read/write the settings.ini file to the user's home directory. This way settings are handled on a per-user basis, not per-application as you're trying to do now. ... |
10. Help with Jar Files forums.oracle.comHi, I wanted to develop an application that stores a month-wise list of birthdays in files. I developed the classes and packed them in a jar file. My idea was that the files that actually store birthday records be inside the jar file and whenever a user adds a new birthday it should be added to the file in the jar ... |
11. Installer jar file no longer expands forums.oracle.comHi, I downloaded an installer file for a java application server a while ago. It is an expanding jar file, and I can double click to make it start the installation. It just stopped working. Says "Cannot find application to run it". It used to work just fine. Does it have something to do with file types? Help! Jerry |
12. Jar file with gif's forums.oracle.comI wrote a gui program, that converts hex to decimal. It runs so theres no issues there. Ive added a if statement that when an specific value is entered it will set a jLabel to an image. if (b.equals("string") { jLabel1.setIcon(image) } and it works...no issues there, when i create the jar file i do cvmf and in the verbose i ... |
13. Permission denied in creating .jar file in java forums.oracle.comI want to create a jar file that serves as a library in linux. below is what I did: After compile rb.java with javac succefully, try to create rb.jar under root directory. %>jar cvf /rb.jar /home/jiane/rb/*.class it generated the following error msgs: java.io.FileNotFoundException: /rb.jar (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream. |
14. Reading/Writing a file that in inside the JAR forums.oracle.comHow can I read a file (txt) that is inside a jar, and how can I write to a file that is inside the jar? Reading the file involves creating a [InputStreamReader|http://java.sun.com/javase/6/docs/api/java/io/InputStreamReader.html#InputStreamReader(java.io.InputStream)] from the InputStream obtained from the class method [getResourceAsStream()|http://java.sun.com/javase/6/docs/api/java/lang/Class.html#getResourceAsStream(java.lang.String)]. As for writing the archive entry... I wouldn't do that. Windows, for instance, locks the executable jar file. Even if ... |
15. creating jar files forums.oracle.com |
16. jar file forums.oracle.com |
17. creating jarfile conataining external jar files forums.oracle.comHi there, I am trying to create a jar file that containing external jarfiles.I copied that external files into my location and create the manifest file Manifest.mf as below: Main-Class: MainClass Class-Path: jar1.jar jar2.jar ... and create the jar file using the command : jar cfm MyJar.jar Manifest.mf * I can execute this MyJar.jar at the location where I create that ... |
18. creating a jar file forums.oracle.comhi , i have created a jar file but an error message has been annoying me and the main purpose of creating this jar file the error message is ("Failed to load-Main class manifest attribute from .....") i want to run my program using the jar file .. >> the jar file i have created include other classes could anyone help ... |
19. Compressing the Jar file forums.oracle.comIs there any open-source utility that can compress a jar file (with classes), such that no data is lost due to compression? I know there are many tool that can remove debugging information and change class name etc (obfuscate) to reduce the size of jar file. I am looking for a tool that can compress without removing anything at all from ... |
20. Referance File in Jar forums.oracle.comI have a presumably simple question Can and if so How Reference to a File in side the Jar you compile to My circumstance i have a game that requires an image and in Netbeans it is possible to load an image in the source directory. How do i reference this file into the program and create a class "File()" of ... |
21. Help with a question about making/running .jar files. forums.oracle.comI don't have my file with me but there is a little program out there called fixmyjarfile, or something, do a internet search for fix or make jar file bootable, you will find it, then run it on the jar file and it corrects the manifest, I have the same problem, and I just use this program to fix it, or ... |
22. JAR Files...great forums.oracle.comSo...me and some friends wrote some personal financial software (pure java) and it is pretty much complete. With only one problem though. An execitable like file that can be clicked on and ran (yes, I know a JAR File) but we have 18 text files used as help files and a database (Access...java level 1 standard odbc jdbc bridge driver...I know ... |
23. Writing to file inside a jar forums.oracle.comHello, I would consider myself a decent to above average Java programmer. i still have a a lot to learn so please no fancy terms that i most likely wouldn't understand. my current project that i am making is a Image Organizer. i have completed all the functionality that i want ie. displaying a preview, sorting loading external files, and a ... |
24. JAR file trouble. forums.oracle.comI placed some .class files in a .jar file by way of the Command Line and now they would work except for one error message that pops up every time I click on it: "Java Virtual Machine Launcher Failed to load Main-Class manfiest atribute from: D:\Documents and Settings\My Documents\Java Programs\Calculator\Calculator.jar" Does anyone know how to get a jar file to work ... |
25. Jar File Swapping? forums.oracle.comSorry I am rather new to Java and would like to know if you can use an external JAR in a program that is already compiled? IE: If I made a music player that used player.jar file and I wanted to add a new feature to the player could I replace the jar file and have it work effectivley? Any help ... |
26. Jar Files forums.oracle.comHi, I have used Blue J as an IDE to write a program that reads information from a file, seperates it logs on to Gmail and sends out various emails. With blueJ it has a function that will automattically create a Jar file for me, however when it is ran nothing happens. no emails sent. I wrote a test program that ... |
27. Creating working jar files forums.oracle.comHey, i have finished a battleship game, but thats not my problem. I am currently figuring out jar files to creating a working application. So far i have done this successfully, but for it to work, it needs the pictures and sounds in a separate folder in the same directory for them to work. I know that by using cvmf i ... |
28. Looking for Hyperion Essbase Version 7 Java API .jar Files forums.oracle.comSorry, didn't know if this should go under API or JDBC or something else, couldn't find a good fit for it. I've got Essbase version 7.1.3 set up on a remote server and all is well. However I'm trying to use the Java API to connect to it and the only API I can find online is System 9 which has ... |
29. Jar file Corrupted forums.oracle.com |
30. how to make a jar file safe? forums.oracle.comOne option to limit the damage is to use a database username that has restricted permissions -- for example, to execute only certain stored procedures. That may not be enough, in which case.... You should rewrite your application to have three tiers. The client will not connect to the database, but to a business layer. This layer would establish security. |
31. Create JAR file forums.oracle.comHi all, I have a little problem when am trying to export my project with embedded additional JAR file located inside a folder called lib. To demonstrate my problem I have created another project called Test which contains two classes Main (contains main method) and UI (a simple JFrame with a button to close the application). I exported this project by ... |
32. Distributing Jar File forums.oracle.comi have a jar file that executes in one machine and not the other. where it executes, i have installed jdk6.0. The jar file has the java cup icon and when i check the program opening it, its Java(TM) SE binary. on the other machine i have not intalled JDK. its windows XP and it has JRE 1.4.1 the icon is ... |
33. Adding .jar files to client's jre forums.oracle.comHi, I am using the mail.jar and activation.jar in my project. When i wrap this in install shield for the client use, i need to find a way for mail.jar and activation.jar class libraries to be added to the client's jre automatically on program install. Anyone has any ideas please. Thanks James |
34. How to Know the jar file version forums.oracle.com |
35. File reference inside a jar forums.oracle.comUse getResourceAsStream to get a stream that points to the file. See http://mindprod.com/jgloss/getresourceasstream.html You cannot point to the file with a "File" object, and you cannot point to the file with a path either... you can ONLY access the file as a stream. (If you don't like this, you can create a temporary file on the disk, write the stream content ... |
36. import file from file .jar forums.oracle.com |
37. Gridworld Case Study - how to use a .jar file with textpad forums.oracle.comHello, I am a student currently working on a project involving the Gridworld case study. While trying to work on my project at home, I discovered that I would get new "cannot find symbol" compiler errors that I had not previously gotten while compiling the same code at school. I am assuming this has something to do with the .jar file ... |
38. making jar file forums.oracle.com |
39. How to call function in jar file? forums.oracle.comFirst, I can't write english well.(I'm korean.. ) sorry about that. I have known function in jar file. but I don't know how to call function in jar file. how can I this work? My project and another project are respectively developing D-project with me and other man. so i need it. or I can't do this work. I will paste ... |
40. jar file naming conventions forums.oracle.com |
41. Jar file not starting properly when in dir with name 2 or more words forums.oracle.comHello, I have a pretty weird problem here. When I start my jar file from a directory like Test/MyJar.jar everything is fine. But if I try to start it from Test 1/MyJar.jar the file is not running properly. The jar file reads files from it's directory and the message I receive is can't find Test20%1/MyFile.txt. Any help will be appreciated. |
42. Using JAR files forums.oracle.comHi, I want to extract the content of some JAR files to be able to study the code inside them. However, I need to extract JAR files using a tool such as Eclipse. Please do not give me a command line that extract JAR files contents, I need something that allows me to study the code, debug it, trace it and ... |
43. I need help about starting JAR file!!! URGENT!!! forums.oracle.com |
44. Creating & Using .jar files and manifests forums.oracle.comIt created the .jar, but nothing worked. As above, it gave me errors relating to the "Main-Class" and "Manifest". So here's my question: What involvement does a "manifest" play in .jar's, and how do I create/use one to create a .jar? Why is it necessary to specify the "Main-Class" when I have already done so in my .java file? I believe ... |
45. executiing jar files forums.oracle.comafter creating as jar file.if you just duble click it,it ll run. if it shows any kind of messages like manifest not found means. you have prob in creating maifest file. or if the file getting opened in some word pad or win rar. if so right click and ope with java 2 std edition,, reply if this was uysefull;) |
46. creating jar files forums.oracle.comhai every one i have some classes that my package has a mian class named ClientMain.class. in all my pacakage contains 6 classes in the directory named bin i navigated through command prompt to the bin directory jar -cvf client.jar * command given i got client.jar while double click on the jar file it is not executing. just displaying main class ... |
47. need help making a jar file forums.oracle.comIf your OS is Windows you must create Environment Variables to point to Java folder (you can do that by choosing My Computer in you Desktop, then Advanced - Environment Variables). Example: ANT_HOME = C:\Ant JAVA_HOME = C:\Java CLASSPATH = .;%JAVA_HOME%\bin; %JAVA_HOME%\lib;%JRE_HOME%\jre\lib\ext; %ANT_HOME%\lib; Now you can go to any folder in your windows console window and run Java commands |
48. need jar file--plss forums.oracle.comim working in java in image processing .i want to find the image format (like jpeg,gif or tif etc) im using imageinfo class with the following API org.olat.core.util.ImageInfo i need jar file for this package i searched in internet im getting jar for 1.5 but i need it for 1.4.x pls help me by sending links to download jar files plssssssssss. ... |
49. How to create jar file?? forums.oracle.com |
50. how to create jar file in WSAD ide? forums.oracle.com |
51. How to show method document when calling my jar file? forums.oracle.com |
52. How to use a packaged Jar File? forums.oracle.com |
53. Yes or no questions about jar files forums.oracle.comHi everybody, I just have 4 quick questions about jar files; if anyone can answer them I'd really appreciate it: 1. Is there a maximum size that a jar file can be? 2. Can audio files be used as resources in jar files? 3. Does the size of a jar file impact how fast it runs? 4. Is putting CD tracks ... |
54. how to set classpaths inside JAR file? forums.oracle.comMy second question is, in my "start.cmd", i just set the classpaths and call a class i.e inside one of that lib/jar files. Can I directly give that class as the main class in the manifest??? Then again, where do i need to specify the classpath. Your help would be greatly appreciated. Thanks |
55. jar file forums.oracle.com |
56. About jar files?? forums.oracle.comHi guys if I make a jar file of all the class files of my beans , utility classes and servlets and put it inside /WEB-INF/lib and make a war file of my application, would my application recognize those class files in the same way it does when class files are simply placed inside /WEB-INF/classes??Or I shall have configure the path ... |
57. JAR files forums.oracle.com |
58. import the jar file of jfreereport to bluej forums.oracle.com |
59. How to use jar file?? forums.oracle.comIn a normal web deployment structure , all the .class files are kept inside WEB-INF/classes directory.And container automatically finds out the locations of those classes and with the help of web.xml file if it has to find the class file of servlets.Now I want to make jar files out of those .class files and war file for my application.What I want ... |
60. Jar Files forums.oracle.comHi, I was running Eclipse, added external Jar files for FTPClient from Apache. Now, I need to run my program on the command line. But when I create a directory with my .java, .class, and .jar files, and try to run "javac |
61. Confused about "files inside a JAR" forums.oracle.comFossie, Yup... you can jar up your properties file... you just need to add it to manifest file and jar (the program) takes care of the rest... google that there's loads of existing articles. BUT, I don't think you can modify the properties file in the jar... it may be possible, but I just don't know how. Instead (I think) you ... |
62. JDEE: create jar file forums.oracle.comHi! I'm using emacs (JDEE) for developing my java project. But I have problems to compile and creat a jar file. These is the structure of my project: src process (java files) util (java files) I want to compile and create a jar file with all those java files. Can anybody help me? I'm a little bit lost with all jde-compile, ... |
63. How to use files in Jar file forums.oracle.comHi, I have one program which displays images on main form. But when I package all these classes and image files it shows file not found. I want it should read the image files which are in the same jar file. How can I use the files which are packaged in a Jar file? |
64. config file inside a jar File forums.oracle.comHi all, i created a config file for some properties, to read that file i need to put full path on FileInputStream constructor, i need to put it in my jar distribution file, how can i write and read that file from main class? main class is in the same jar file. Thanks, |
65. Delete file from jar file forums.oracle.com |
66. instance a jar file forums.oracle.com |
67. To Encrypt a jar file forums.oracle.com |
68. JAR file forums.oracle.com |
69. Linking to files outside a jar forums.oracle.comHey all, this is the problem: I have a jar called, lets say, Test.jar that contains a class TestClass.jar. TestClass references a properties file where it gets information about where to find required resources etc. Test.jar is in a directory C:\Java\jars\Test.jar but the properties file I wish to reference is at C:\ level. So the question is how do I reference ... |
70. creae a jar file to integrate in java project forums.oracle.comHi i have some dll files which i need in a java project. At the time I have this dlls in a lib directory in eclipse but i will to add them as a archive file. For this purpose i created a zip file and add it to the project path in eclipse but it does not work. Does know someone ... |
71. Specify Parameters to JAR file forums.oracle.comthats lame Nice. In fact what's lame is this: "I just want to hand this jar file to the end user, and let them run it without having to have an additional batch file." Executable jar files (and other executables) belong somewhere where the user has, at best, read only access. As for launching programs, most platforms offer a variety of ... |
72. JAR files ... forums.oracle.comOK i signed it. The jar contains the following: jRegistryKey.jar jRegistryKey.dll regView.class My HTML is: I now get this error Exception in thread "AWT-EventQueue-2" java.lang.NoClassDefFoundError: ca/beq/util/win32/registry/RegistryKey at regView.readKey(regView.java:75) at regView.actionPerformed(regView.java:92) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown ... |
73. How to reverse engineer a jar file forums.oracle.comIt will provide a good enough stab at the original. It's nothing nearly as bad as disassembly. But yeah, there's a Java decompiler called mocha that decompiles bytecode. You can also use GUIs like Eclipse or FrontEnd Plus to decompile it. Mocha makes me wonder whether there were any noble intentions at all in Sun making Java open-source :P |
74. Creating a jar file without user compliation forums.oracle.comI need a JAR file in my integration bin shell this bin shell will read my JAR file The user will create the MAIN class file with something call a template engine specifying some stuff that can be changed after which together with some existing .java class files, one .XML file(which the user specify with template engine) my program is to ... |
75. jar file forums.oracle.com |
76. New to making .jar file forums.oracle.comIve read the tutorials Using JAR Files: The Basics Creating a JAR File Now were do I type in " jar cf jar-file input-file(s) " To create a JAR file To perform basic tasks with JAR files, you use the JavaTM Archive Tool Wheres this tool..? Do any of yous use any GUI programs to make jar files..? |
77. how to make jar file? forums.oracle.comhi i want to make my jar file of my own package name "practise". can u help me in making jar file. what is the command to make jar file? expected name of jar--> runner package for which i want to make jar----> practise plz help me in this regard. i m very greatfull to your precious comments and suggestions. |
78. html files in jar file forums.oracle.com |
79. Some prolems when trying to create Jar file... forums.oracle.comHi, 1st sorry i post this in the wrong box, i posted it in the Jar box but no body replied and I really need to get this done soon... I've got a list of *.class and a folder images and Start is the class I want to be the entry point I tried: 1. jar cfm MyApp.jar Manifest.txt *.class images ... |
80. How do you create a Jar file? forums.oracle.comCan you advice me on why can't the Jar file load the Main-Class manifest attribute from BmFactorial.jar? Thank you. Here is the transcript from my Terminal: lvl-mac021:/Volumes/PKBACK# 001/static_analyzer/performance/lint4j-0.9.1/bin zhiyango$ jar cvfm BmFactorial.jar manifest BmFactorial.class added manifest adding: BmFactorial.class(in = 1941) (out= 1088)(deflated 43%) lvl-mac021:/Volumes/PKBACK# 001/static_analyzer/performance/lint4j-0.9.1/bin zhiyango$ jar tf BmFactorial.jar META-INF/ META-INF/MANIFEST.MF BmFactorial.class lvl-mac021:/Volumes/PKBACK# 001/static_analyzer/performance/lint4j-0.9.1/bin zhiyango$ lvl-mac021:/Volumes/PKBACK# 001/static_analyzer/performance/lint4j-0.9.1/bin zhiyango$ java -jar BmFactorial.jar ... |
81. Jar files forums.oracle.comHi is possible to jar everything up including sound and txt files? This is because when i jar up my java project, it doesnt jar up the sound and txt files, and hence i have to place the txt and sound files next to the jar file in order for the jar file to run properly. Please help, thanks. |
82. Storing a jar in a ZipOutputStream results in jar corruption forums.oracle.com |
83. How can I read/write jar files forums.oracle.comI was interested in creating some jar packages from my program and being able to read from them. I was wondering does anyone know of a basic tutorial on how to do this. When I query jar files almost everything seems to tutorials on how to do this from the command prompt. Any help? PS. Am I able to get the ... |
84. i want to make use of Axis1_2 jar file with latest jdk forums.oracle.comhi, Good Moring i have developed an application by using axis1_2 with JDK 1.4. its working fine and everything good. but now the issue is they want upgrade latest JDK 1.6, when i tried to upgrade to latest JDK 1.6, its showing an error that enum is a keyword from jdk1.5 onwards. in my axis 1_2 jar file enum is a ... |
85. Which jar files to use?? forums.oracle.comI know this is an incredibly remedial question, but numerous Googles and searches of these forums has not resulted in enlightenment. I downloaded and and am trying to play with the "webstarterappII" sample from Oracle using JDeveloper 10g. Not that that is particularly relevant because I've done quite a bit of development in Eclipse and standard Java and run into the ... |
86. Jar Files forums.oracle.comI'm trying to create an exectionable Jar file to run on different computers.Im going to place the Jar file in exe archive with WinRar which will execute a .bat file.What command lines will set the correct path ?(unknown java version)!!At the moment Im just cycling through all the possibilties of the default location of javaw.exe ie. If EXIST "%ProgramFiles%\java\jdk1.5.0_09\bin\javaw.exe" SET PATH=%ProgramFiles%\java\jdk1.5.0_09\bin";%PATH% ... |
87. Bundling Jar Files forums.oracle.comHello, I have a project that uses several open-source packages, in the form of Jar files. While I use some of the features built into these packages, I don't use them all, and the extra space that they consume is getting prohibitive. Is it possible to compile a project that uses external Jar files like this in such a way that ... |
88. Creating Jar File forums.oracle.com |
89. Quick Question **PLEASE HELP** .jar file? forums.oracle.comHey everyone, im pretty new to the java scene but I have a really quick question that hopefully someone can help me with. I'm really interested in making a .jar file out of my code. And basically I just want to make one. but i understand there are certain things like main class's, etc. that need to be made in order ... |
90. JAR files forums.oracle.comThis is manifest file.I've created the manifest file in the directory in which I m creating the jar file.There are two packages named lrecog and org which contain subpackages which are to be included into the jar file and a folder named resources contains the other necessary items like images and icon. All these folders are in a folder named lrs.I ... |
91. how to add third party jar files forums.oracle.com |
92. How to make a jar file downloadable with IE forums.oracle.comIt will ask you how to save/open it and then say zip file but it should still be a jar when its downloaded. you should still be able to open it with the right software. windows dosent convert whilst downloading as far as I know. If I was to download a jar file or class from sourceforge then it remains the ... |
93. Making JAR file forums.oracle.comI am a student in norway and i am using eclipse to programming in Java. I am finished with my project and wants to make a executeable file(jar file or exe file).I know how to make jar file with eclipse but it dont take the others jar file which i am using in my project.i am using easyIO.jar,jamod.jar and mysqlconnector.jar,this jars ... |
94. Avoiding creation of jar file forums.oracle.com |
95. Creating a JAR file in RAD forums.oracle.comHello, I am creating a simple JAR file containing a group of Java classes. It is not an executable JAR file and is simply a way for me to zip up a bunch of classes I want to use in another project. The problem is, after I create it in RAD using the JAR File Export and drop it into WEB-INF/lib ... |
96. wht is theuse of *.jar files? forums.oracle.com |
97. on *.jar file forums.oracle.comhello to everyone! i hope you can help me on this, i need to launch a *.jar file on my java application, is there anybody who could help me on this? I know how to use the runtime.exec but I don't know what am I going to put inside this function... runtime.exec(new String[] { "rundll32", "url.dll,FileProtocolHandler", name} ); (uhm yes this ... |
98. encryption of jar files forums.oracle.com |
99. jar File forums.oracle.com |
100. help---- creation of jar file forums.oracle.comhi, i have developed a application with swing concept and mysql as my database... now i am trying to create jar file for my application... in the manifest file i have given like this: class-path: C:\Program Files\MySQL\mysql-connector-java-5.0.4-bin.jar;C:\Program Files\Java\jdk1.5.0\bin; Main-Class: Login but still it throws an exception that main class: could not be found: can any one help me... Thank u in ... |