1. Add .jar file into Tibco Designer stackoverflow.comI want to use my class methods into TIBCO Designer(5.6) project. I export my Java project into .jar with my Eclipse Indigo. Then I create AliasLibrary in the Desinger and add ... |
2. calling a method from a java file inside a jar stackoverflow.comI have a jar file, which I dynamically load during execution of my java file (say my.java). I do it this way:
Now there is a ... |
3. How to analyse Jar file? stackoverflow.comI want to analyze jar file, i.e. the code hierarchy (class diagram). Which tools will be helpful for this? |
4. NoClassDefFoundError in simple .jar file stackoverflow.comI'm trying to create a simple .jar file out of my project. The project is made of two .class files - the main class which uses the secondary class to generate ... |
5. How to disable localization for a JAR file? stackoverflow.comI have a JAR file that has localization for my language, but I don't want it to use that, I want it to be in English. Does anyone have any idea how ... |
6. Should the version be appeared in the name of .jar files? stackoverflow.comPossible Duplicate:Currently, I've decided to standardize the name of my .jar files. In many projects, the version of the .jar files ... |
7. A little confusion about .jar files stackoverflow.comIn computer science I have learned that .jar files are basically a compressed set of .java files that have been compiled. So, when you have a project, instead of those 20 ... |
8. How to generate a checksum for jar file stackoverflow.comWe want to implement a feature like this: when user firstly run the app, app will download a jar file to local PC from a server and load the jar file ... |
9. how to call a jar file in java program? stackoverflow.comHi everybody.. i have a java program to convert Html to text file... but i want to call a stanford-postagger jar file to my java pgm.. ... |
10. how to make makefile for java with external jar file stackoverflow.comI need to make a makefile that compiles and executes my classes with an external jar file..
I have 4 classes; |
11. How to auto-launch a jar file? stackoverflow.comI have a game on a USB drive called MyGame.jar. It is an executable jar file. I want to be able to put it on cd's and USB drives. I want ... |
12. How to get a file from jar? stackoverflow.comI need the xxx.txt file which is in yyy.jar file.How can I get it simply? are there any libraries for working with *.jar files? thank you guys! |
13. Reducing jar file size? stackoverflow.comIs there a good app to reduce jar file size by eliminating redundant classes/methods/constant pool elements? (i.e. not reachable from a fixed set of entry points, assuming no reflection) I'm tired of pulling ... |
14. Calculate code metrics on jar file stackoverflow.comI am working on Java source codes that are in JAR format. I've download so many code metrics tools but they don't work with JAR files, they only work with Java files. Would ... |
15. Need this particular jar file stackoverflow.comI am trying to connect to the bing api through my java application and query bing programmatically. And I found this page online that gives me sample code to just get ... |
16. Java: how to designate a dir so I don't need to specify it in order to reference its .jar files stackoverflow.comLet's say that I have a jar file @ |
17. Java IO outside jar stackoverflow.comI'm working on a browser based applet game, and I intend to store the top ten scores in a text file in the directory with the JAR file. How would I ... |
18. Java : A query about jar files stackoverflow.comWhile Uploading a war file to the server , can you please tell , what jar files should be acutually kept inside the server lib ? Because I see, all the jar files ... |
19. Name conflicts in jar file stackoverflow.comI have a directory /plugin with two jar in there A.jar and B.jar .Both has a file with same name, config.xml
|
20. Where should sound files go when making a jar with one-jar? stackoverflow.comI made a java application and packaged it up into an executable jar. However, this particular application happens to depend on other jars that should be inside it. ...Long story short, ... |
21. How to make jar file? stackoverflow.comFolder with program:
In folder there is a package with classes:
Main class name:
... or fullname:
In the root folder there is manifest file with content:
And I'm making jar-file:
|
22. NoClassDefFoundError for Jar file stackoverflow.comI understand there are lots of questions on this topic but none of them seem to apply very well to my situation. Basically I created a program with three class files, ... |
23. how to add jar file bytes.comhi, to solve problem of Importing excel file in to JTable,I used JTableReadTableModelTask class. This class in not present in jdk version. Thats why I download one jar file named as... ... |
24. How to create a jar file? bytes.com@Vishvanathannn you can extract the jar archive but you can't archive it back.. Compiling project resources to jar is the job of the compiler .. and only the compiler knows how ... |
25. How can I create a jar file? bytes.comI tried creating a jar file using the jar command in the command prompt but I get "jar is not recognised as an internal or external command, operable program or batch ... |
26. jar files not working bytes.comi have downloaded servlet-api,jsp-api.jar files. after extracting the jarfiles when i am clicking on that jarfiles i am getting "Failed to load Main-Class manifest attribute". what is the meaning of this ... |
27. Is there any way to tar file without using third party jar files bytes.comHi All... I need to create a tar file. Can we create tar file without using third party jar files like. import com.ice.tar.*; and org.apache.tools.tar.*; I want to a create tar ... |
28. third party jar files coderanch.comHello all, I have a question concerning the way jar files are used with Web Start. What if I can't distribute one of the jar files needed to make my application work, but I want the user to install it himself on the client machine. Is there a way I can then point to it? Thanks a lot Tom |
29. How can I call any jar file from Browser? coderanch.com |
30. jar file for codebase? coderanch.com |
31. java.util.jar coderanch.com |
32. Jar packager coderanch.comI am trying to build an application that will put into a jar file 2 classes, a text file, my manifest, and all the files(subdirs included) in a directory. I then would like to take the jar that was created from this process and extract it to another computer with the relative directory structure intact. I have posted several times to ... |
33. JAR file question coderanch.com |
34. jar input txt file coderanch.comHi Everyone ! I am a newby in java and experimenting with jars. I have an application reading an input txt file - when i created a jar for it, including the txt file, the jarred application can not seem to find the txt file. When i placed the txt file on the same directory as the jar file ok. What ... |
35. Jar files. Urgent Please Reply coderanch.comHello all !! I have written an application that's contained in a jar. The application needs to access a properties file in the jar,which it does with no problem, modify the file, and then save it back to the jar. The problem that I am getting is that each time a save the file to the jar, it creates a brand ... |
36. File IO and Jar file coderanch.comHi All, I am using FileIO. And creating FileReader Object in Java file. as like FileReader aa = new FileReader ("prop.txt"); Giving relative path. If I compile and then make an executables jar (Adding all class files and prop.txt file). And run it then it gives the exception FileNotFoundException. How can I give path in FileReader constructor? Waiting for reply, Regards ... |
37. Jar files coderanch.comI have created an executable jar file contianing all my code, however the problem is that when this jar is run the user can select any text file they wish to open and the program should open this and display the information. But when the jar is run and a file is selected then nothing happens. I read somewhere about using ... |
38. reference local files from a jar coderanch.comHi, I'm developing a web app that packs files in a jar. I've got to configuration files & reference to local foldert that are stored in tomcat folder structure. I'd like to prepare my class to work if I move it from one server to another, how would I reference this path? I mean, do the classes get expanded in a ... |
39. writing from a jar coderanch.comI wrote a class that writes a simple text file. I packaged it in a signed applet and now it will not write the file. public void writeFile(String text,String name) { try{ File outputFile = new File(name); FileWriter out = new FileWriter(outputFile); out.write(text); out.close(); } catch(IOException e){ System.out.println("ReadWriteUtility write error: " + e); } } Worked fine before but not when ... |
40. Which jar do I need for EBCDIC character encoding? coderanch.comTurns out, we have a customer who was getting an unsupportedCodePage(?) exception when doing this kind of java conversion, so I may have to do some manual conversion program anyway. But the way the Sring conversion works is to pass in a byte[], along with a charset constant, e.g. Cp500 ISO8859_1, Cp037, etc. And you get a String encoded in that ... |
41. displaying information from JAR file coderanch.comThanks. I am working on application which requires the specific, actually I have made this, which displays classes and methods of a particular given method, but it doesn't work for JAR files, and I want to make it for JAR files also. p ublic class FinalClassInfo { public static Class[] getClasses(String pckgname) throws ClassNotFoundException { ArrayList classes = new ArrayList(); // ... |
42. jar file information coderanch.comHi, I have use of jar file information, like class name and their methods name. I am using following code to list all files contains a particular jar file: - import java.io.IOException; import java.util.Enumeration; import java.util.jar.JarFile; public class JarFileInfo { public static void main(String args[]) throws IOException { JarFile j = new JarFile("jar file path"); Enumeration e = j.entries(); while (e.hasMoreElements()) ... |
43. Attach file from JAR coderanch.com |
44. writing to jar file coderanch.comI'm developing a desktop app in NetBeans. Currently, when I run the program from within the NetBeans environment, it uses (I think) the build folder, which does not have everything packaged in a jar file. So I can write to any of those folders that correspond to package names in my application. But what will happen when I package the whole ... |
45. Writing back to JAR file? coderanch.comHi, I have a new query. I have been working on a project, which is working satisfactorily so far. This program needs to read and write data from text files. After finishing the coding, I was trying to package the program as a JAR File. I know how to read data from a text file packaged inside a JAR file, so ... |
46. Can you write to config files in jar files? coderanch.comI'd love to distribute my app as a single jar file - however, like many programs mine requires a configuration file to keep program configuration data between app restarts. Which is the best option for me?: 1) App dynamically creates config file upon first startup, user presented with dialog box to configure program. 2) App reads and writes to a pre-existing ... |
47. jar file convertion from 32 bit to 64 bit coderanch.comI have a jar file that is 32 bit compatible OS like windows2K. I want to deploy and use that jar file on top of AIX machine having JVM of type 64 bit. So to make it faster it is required to convert that 32 bit jar file to 64 bit jar file. Is it possible? How can I do this? ... |
48. How to make jar file executeable ? coderanch.comHallo expert people, i have made a jar file with the following command : jar cf backup.jar backup_pro.class backup_pro$zip.class ... and if i run with the following command : java -jar backup.jar , it will work but if i double click there is an error "Could not find the main class. Program will exit!". Have any one experience how to make ... |
49. Execuatable JAR file - javaw coderanch.com |
50. Put multiple jar files within a to be newly created JAR File coderanch.com |
51. How to create jar file for application using JNI? coderanch.comI have built one video application using jvlc(Some video libraries..).. but when I run it by creating a jar file it doesnt respond... I am able to run it without creating jar file very finely(from command prompt)... jvlc is API provided by VideoLan So could anyone please tell how do i bundle my application in jar file.. And where to keep ... |
52. using jar files coderanch.comI am jaring up my beans for use w/ |
53. java bean jar file creation coderanch.comhi balu, the problem why the bean is not loading into the beanbox is, u might not have written correct manifest file. Write the following lines in the manifest file. Name: baa.class Java-Bean: True and save it(write exactly as above) and make the jar with the command jar cvfm baa.jar baa.mft baa.class You may or may not use 'v' option, it ... |
54. What Is The Accepted Content-type for JAR Files? coderanch.com |
55. What is the jar file coderanch.comI'm trying to use sun.net.www.protocol.http.HttpURLConnection package in one of my class file, I'm not able to find in which JAR this package will be available. I spent hours to search for it and couldn't able to find name the jar file that has this class file in it. any help is appriciated Thanks, VNUS |
56. Difference between tar and jar file coderanch.com |
57. jar files coderanch.comHi Suka Hati, That error is raised by compiler when it doesn't find proper class which you use because you dont give the proper classpath of the library. May I know what class you used? As you said that you build a web application, i think it is the best way to check again the directory structure of your web application. ... |
58. Jar file coderanch.com |
59. JAR file coderanch.comhmmm.....just now I answered a similar qstn in this post. I would use a list. Not sure if there is a better way. The std options for the jar command are: Usage: jar {ctxu}[vfm0M] [jar-file] [manifest-file] [-C dir] files ... Options: -c create new archive -t list table of contents for archive -x extract named (or all) files from archive -u ... |
60. Modifying Jar Files coderanch.com |
61. Distributing apps as jar files coderanch.comThis may be a fairly basic question, but it's been puzzling me for a while. If I have a java app that requires: (a) a native Windows dll in to be in the same directory as the app (b) a user-editable configuration/properties file it's not possible to distribute the app as one jar file, is it? RIght now I distribute the ... |
62. Reference to JAR file coderanch.comHi, I have an application which uses classes packaged in a JAR file. The Jar file contains a manifest which includes the version information. When I start my application I want to get a reference to the JAR file so I can verify that the correct version is running. My problem is that I can't find a way of getting a ... |
63. How to encode the Jar File coderanch.comHi Nikhil, How you are trying to encode the Jar file and what problems you face? More details would help in understanding the problem nature and in spitting out ideas.. Personally, I have not encoded a Jar file so far ...for what you would need that? Because if we encode the jar, at some point we would have to decode it ... |
64. Help with jar files coderanch.comI'm struggling with getting my first ever Java app into an executable jar file that I can run on any machine with the JRE installed. I've got my app into a jar that actually runs, but it requires another package to do serial I/O, and it barfs on that: Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/CommPortIdentifier This code runs fine when I ... |
65. Jar how to ignore certain file types/directories? coderanch.com |
66. Question about Jar file coderanch.com |
67. javap and jar files coderanch.comI have a jar file. I would like to know all the method names with their signatures in all the classes present in the jar file. javap.exe utility helps me to some extent, but it seems to be working only on a single class file. Is there a tool that works like javap but works on a complete jar file or ... |
68. Listing files in a JAR?? coderanch.comHi, I have a couple of queries: I have an executable .jar file that contains a single directory called "App". This directory contains the entire application including a number of subdirectories, one of which is called "images". I want to obtain a list of all the files contained in "images", but I'm not quite sure how to do this. I'm aware ... |
69. Creating a JavaBeans jar file - Please Help! coderanch.comHi, I'm trying to run an application that depends on JavaBeans from within CrEme, a JVM for PocketPC that runs a subset of JDK 1.3.1. However JavaBeans is not supported, I'm getting an error: 'java.lang.noClassDefFoundError: java/beans/beancontext/BeanContextChild' So I'm trying to package JavaBeans classes from JDK 1.3.1 into a jar file for use with CrEme. I've created a jar file called java.jar ... |
70. Unable to locate jar file coderanch.comHi, I have an application running on a server with all required c lasses loaded into a jar file. It is working fine in most machines but from some machines I am getting the following error:. Pl. help. Thx Karthik Error loading class: vdt.VdtModuleApplet java.lang.NoClassDefFoundError java.lang.ClassNotFoundException: vdt.VdtModuleApplet at com/ms/vm/loader/URLClassLoader.loadClass at com/ms/vm/loader/URLClassLoader.loadClass at com/ms/applet/AppletPanel.securedClassLoad at com/ms/applet/AppletPanel.processSentEvent at com/ms/applet/AppletPanel.processSentEvent at com/ms/applet/AppletPanel.run at java/lang/Thread.run ... |
71. regarding jar files coderanch.comHi all, i am working with an application which uses a set of JAR files, i would like these jar files to be added to a common jar file which i would be using to run the application. I'm getting some problem with the MANIFEST.MF file. I've specified the main class attribute required. Somebody plz help me over this issue. Thanks, ... |
72. Jar file in jar file coderanch.comHowdy, I have a simple java class with a main method that I intend to call in the following manner: java -jar helloWorld.jar In the helloWorld class, I intend to do a little logging, so I include the log4j-1.2.8.jar in my project. It works great in the IDE (WSAD 5.1) but no so much when I creat the jar file and ... |
73. using external jar files coderanch.comI want to connect to mysql database for which i need to use "org.gjt.mm.mysql.Driver". Can anyone please tell me in detail how to do it. I have put both my class (which connects to database) and the Driver("org.gjt.mm.mysql.Driver") in the same directory (silly) and used the package name silly in my class. I used the name "org.gjt.mm.mysql.Driver" in Class.forName... then i ... |
74. Jar executible file coderanch.com |
75. implementation and interfaces in seperate jar files coderanch.comHi , I have a question regarding packaging and loading classes from seperate jar files. I have some interface classes in one package ( jar file) and implementation classes in other jar file. Now the problem is the package ( jar ) file containing interfaces has to call implementation class which is in seperate jar . Only thing i suppose to ... |
76. jar executiable file coderanch.com |
77. Creating a Jar from other Jar files coderanch.comI want to include jar files in a new Jar file I want to create. Here is the command I am trying: jar cmf mainClass SOAPClient.jar com/company/client/ soap.jar activation.jar mail.jar When I create this jar file and run it, I get this error: java -jar SOAPClient.jar Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/MessagingException So, obviously mail.jar is not included in the file ... |
78. Get Files from jar. coderanch.comHai all, I have a query that i need to set the path a File File file =new File("............"); I need to pass the path of some files that is inside a jar i mean that file is inside the com.org.Test. How i pass the path of a jar? Can Anybody help me ..... |
79. How to create a jar file that suits this specification? coderanch.comI am trying to add a customized provider to Axis. In the Axis code, it specifies: /** Look for file META-INF/services/org.apache.axis.deployment.wsdd.Provider in all the JARS, get the classes listed in those files and add them to providers list if they are valid providers. Here is how the scheme would work. A company providing a new provider will jar up their provider ... |
80. JAR file coderanch.comI actually already have a method that takes in the name of a file to parse. Parsing in that method is done using BufferedReader's readLine() method. So, I'm not sure how the InputStream can be used here...once I get the input stream, is it possible to read the file one line at a time just how it can be done using ... |
81. Creating a JAR file coderanch.comI have almost finished creating my swing based application and I am considering packaging it as a .JAR file. However I am a little confused about certain aspects of what can and cannot be packaged. Currently when my application runs it reads it's configuration from a XML file (which may change), it reads icons for buttons from an images directory (and ... |
82. java jar files coderanch.com |
83. Viewing Jar files in XP. Any good tools around? coderanch.com |
84. Can we make a jar of jar files?? coderanch.com |
85. Decrease size of third party JAR file coderanch.comI have some classes that rely on many third party JAR files. The problem is that upon startup, the loading is quite slow. My initial assessment of the slowness is due to the large third party JAR files (approx 50MB) which need to be read and extracted before running. Is there any utility out there to reduce the size of the ... |
86. what is jar file coderanch.comA JAR file is an archive of Java class files and resources. It is a way of bundling related java code into a single distributable resources rather than needing to send each class separately. You can typically open them in any program that supports ZIP files if you want to look inside. Dave |
87. Adding files to jar coderanch.com |
88. Playing sound from a jar file coderanch.comI am having problems trying to access sound resources from my jar file. They reside in the directory "/sounds/" in the jar. I am not able to point to the sound file from my code using a URL. java.net.URL soundURL = Sound.class.getResource("/sounds/" + fileName); ... AudioInputStream audioInputStream = AudioSystem.getAudioInputStream( soundURL ); ... When i run the code outside of the jar ... |
89. How can I maintain Jar file version? coderanch.com |
90. How to make available a jar file globally...? coderanch.comHi Friends, Can anyone tell me how to make a jar file available globally(i mean available from any directory) so that i can run it from any directory...? I followed the following steps eventhough i could't solve this...? 1. I created a jar file in a directory(say D:\hello.jar). 2. I set the classpath variable in the classpath. 3. Now I am ... |
91. jar file coderanch.com |
92. adding a jar file coderanch.comI have to compile a java file using builtin struts classes. so I used the javac -classpath option. is there any other do-it-once and use javac without -classpath option. is there a way to tell the compiler to find those classes in struts-core.jar jar file without using -classpath, like say, add the jar file to where bootstrap or extension class files ... |
93. Java project -> jar file coderanch.com |
94. how to make jar file with external jars coderanch.com |
95. Embedding config file in a jar coderanch.comRecently I've been trying to embed an xml configuration file into a jar file and cannot seem to understand how the classloader handles this. The file is located in |
96. Using different versions of jar files coderanch.comI have two version of my jar file in jboss lib folder. Can I use API's of both the jar files as and when needed from my war file? If yes then how will I differentiate in the code for which version of jar file to use? Please let me know if you need more details. Thanks! |
97. Regarding Jar File. coderanch.com |
98. Excecutable jar file does not excecute coderanch.comDear all, i am having a bunch of classes i create a jar out of them now when i attempt to run this jar in another machine i found the following prblames 1. i get the error related to "mian does not exist" 2. in another machine it ask me extract the jar file (i think coz win rar is installed) ... |
99. 3rd party jar file/META-INF? coderanch.comOriginally posted by palas das: What is the use of 3rd party jar file? What is the use of META-INF? If you are looking for some functionality which has already been implemented by some third party.In that case you do not need to rewrite that , straight away you can use it. As sathya narayanana said ,you can have ... |
100. Locating a jar file relative to the application coderanch.comHello all: I have a class C that is in a jar file. The class looks for resources in 3 other jar fils. All the jar files are located in the lib directory of an application. How can I make class C find those jar files? I need to get the URL of the required jars. I tried URL url = ... |