Jar 4 « jar « Java I/O Q&A





1. Jar files, Script Engines, File associations, OH MY!    coderanch.com

First, may I say hello to you all. I am glad you have chosen to read this post in an attempt to help. My first problem lies with, well with a fundamental lack of understanding on how Jars are built or even 'what' jars are. All I know is that I select 'Run' in Netbeans menu and choose 'Build Main Project' ...

2. URLClassLoader won't free JAR files    coderanch.com

Hello, I've developed a simple JarFileLoader using URLClassLoader. Now I would like it to reload new JAR files and free the old ones, but it seems URLClassLoader locks the JAR files and won't release them until the JVM is closed. I've read that, In Java 7, they're going to add the Closeable.close() method to URLClassLoader but, in the meantime, as to ...

3. Dependecies in JAR file    coderanch.com

I try to build my application as a JAR file. The problem is that as I read XML files, the program uses the relevant DTD files from the local folder when executed from within Eclipse, but searches for the DTD in home\user\ when executed as a JAR from anywhere else. Can I somehow change that, to have the DTDs just in ...

5. language translation jar files    coderanch.com

6. jar file for language translation    coderanch.com

hi, I am doing a project related to dictionary and language translation from english to hindi .so to implement this i want the database of dictionary.Is it possible to get the jar file or any zip file of that. If anybody knows any jar file related to this dictionary database please help me .

7. is it a bad idea to put jar files in jre/lib/ext?    coderanch.com

As a general rule, you shouldn't add jars to the JDK/JRE library directories. You can compromise system integrity and you may end up with confusion when different runtimes work differently because they don't all include the same core kits. There are exceptions to this rule, but they're special cases, normally having to do with special products and services and the supplier ...

8. Jar file help    coderanch.com

Hello, I have a jar file with the following structure test.jar --------- lib --- |-util.jar META-INF ----------- |- MANIFEST.MF test.first.MainClass (My Class) My MANIFEST.MF file has the entries.. Class-Path: lib/util.jar Main-Class: test.first.MainClass My MainClass uses the class test.second.SampleString.class in the util.jar jar file. When I run it using java -jar test.jar I get error Exception in thread "main" java.lang.NoClassDefFoundError: test/second/SampleString at ...

9. Using a Jar File in Dos/Batch Script    coderanch.com

I have a jar file that I successfully run from the windows command line below: c:\> mathprog.jar 3000 Mathprog.jar invokes a computeXYZ method using 3000 as a argument and outputs a value when finished. That works perfectly. The problem that I'm having is that mathprog has more than one method and I want to find a way to invoke more methods ...





10. using jar files    coderanch.com

Without knowing more about how you're doing this it'll be hard to help. If the library is included in the project's path then importing a class and using it will work fine: could you include the relevant portions of source (the import, how you're trying to use the import) and the specific error you get?

11. Play MP3 in jar file    coderanch.com

Hi all, I have an application that plays an MP3 song. I have package the app into a jar, and included the MP3 song in the jar. I would like the jarred app to pick up the MP3 song from the jar and play it from there, rather than having to include the MP3 file separately with the application. Is this ...

13. JAR file runs when double-clicked, but not via Task Scheduler?    coderanch.com

Hi all, OK, so, I have my JAR file on a WS2003 machine, and when I double-click on the JAR or run it from the command line, my program executes just fine. The JAR is on the root of my C drive; C:\CMMS_SCADA.jar. I've created a daily scheduled task for this JAR, and when the clock rolls around to its execution ...

14. How Do I Create This jar File    coderanch.com

My Java code makes use of an external jar file which has been included in my classpath but not in the same directory as my project. My program is working perfectly. Now, I want to create a jar file of the project. Do I need to copy the external jar file used by my program into my project directory, or by ...

15. Unable to acess JAR file    coderanch.com

I am facing a problem when I try to access a jar file I have two jar files selenium-server.jar located at C:\SeleniumRC\JavaServer and selenium-java-client-driver.jar located at C:\SeleniumRC\JavaClient my classpath is C:\junit4.8.1\junit-4.8.1.jar;C:\SeleniumRC\JavaServer\selenium-server.jar;C:\SeleniumRC\JavaClient\selenium-java-client-driver.jar;D:\Selenium\Installation\testng-5.11\testng-5.11\testng-5.11-jdk15.jar; when I try to access the jar file form C: with the help of following command Java -jar selenium-server.jar -interactive it is not getting opened.earlier when I tried the same ...

16. Help on Creating a Jar file for my JavaBean    coderanch.com

I tried what you advised but still having the same problems. Could you please explain what the following mean and how to actually follow these guidelines to jar my files? section: *header +newline nonempty-section: +header +newline newline: CR LF | LF | CR (not followed by LF) header: name : value name: alphanum *headerchar value: SPACE *otherchar newline *continuation continuation: SPACE ...





17. Jar creation of Java files    coderanch.com

Hi Experts, I have some Folders on server . In one of the folders I will be having some Java files. What I want is that some program should compile those Java files make their Jar and then all the folders should be put into one War file. Is there any script for it ,any suggestions?

18. jar files    coderanch.com

OK, that works great , thanks one more thing bugging me about jar files, I have this one jar xvf twitter4j-core-2.1.0.jar .... and clearly contains inflated: twitter4j/http/HttpClient.class however when I try to use this class, I declare it in the program: .... import twitter4j.internal.http.HttpClient; .... then when I try to compile: javac -cp ./twitter4j-core-2.1.0.jar FeedMonitor.java FeedMonitor.java:133: cannot find symbol symbol : ...

19. Jar File    coderanch.com

Hi, I have application designed in eclipse, which i want to convert into jar file. I tried to export it as a Jar file from eclipse and it create a small file on my desktop but when i try to open the file it gives me an error: Failed to Load Main-Class Manifest Attribute from C:\Users\Maz\Desktop\Test.Jar I believe i need a ...

21. How to make our own jar files and how to acess the methods in the jar    coderanch.com

I have some requirement where in I have to make a new jar file which contains some classes which have several methods. How to make the jar file and how to access the methods in the jar file similar to standard java methods like string class methods, array methods e.t.c Example: I have to write a new class "MyMath" which contains ...

22. where to add jar files    coderanch.com

23. create a java project using an existing jar file.    coderanch.com

The jar file is imported, but no java source codes. we need the java source codes for us to edit it, we tried using decompilers but none generates the source files. If it does generate, then that means we can import/create new project using Eclipse. The Jar file is so old, non of the team has the source code. =( anyways, ...

24. Working with a .jar file    coderanch.com

25. Trouble making JAR file that works.    coderanch.com

Hello i've been trying to make a jar file and something seems to be going wrong. This is an article with the instructions i have been following Creating an Executable jar file The error i'm getting when i try to run the jar file is "Could not find the main class: TurtleTest3 . Program will exit." I have 3 classes in ...

26. help needed with creating jar file    coderanch.com

Hi , I have a Java project in eclipse with src files and lib jar files.I want to convert this entire package to jar file which is to be run on a remote server. The eclipse project is an application with main() method I want to create the jar file in such a way that when this jar is called via ...

27. Jar file issue.    coderanch.com

Inorder to answer my question first you need to go to this link to understand what i am trying to do. http://javatechnos.blogspot.com/2010/07/runtime-classpath.html Now try to jar both the class files and in the META-INF set the welcome file as com.Classpath. jar -cvf hello.jar com META-INF Ideally we should get the same result, but you will see that the output differs. I ...

28. Jar file issue    coderanch.com

Hi Folks, I created a runnable jar using eclipse. There are 4 classes and 2 properties file that are required in jar file. When i run main method from eclipse, all things work well. But when i try to make it a runnable jar and execute it, it throws an error stating that property file not found. But I can see ...

29. jar file    coderanch.com

Hi, I am getting this error below. I am trying to jar a file. Not sure what to do. The error points to an error in line number 55 of SendFiles, but I know this line is fine there. It has something to do with jaring the file. Thanks, Keith java -jar SendFiles.jar Exception in thread "main" java.lang.NoClassDefFoundError: com/sshtools/j2ssh/transport/HostKeyVerification at SendFiles.main(SendFiles.java:55) ...

30. jar file issue    coderanch.com

Hi, Using cygwin, I have a jar file : javase.jar (which I have chmod 777 on) It contains: $ jar tf javase.jar META-INF/INDEX.LIST META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/zxing/ com/google/zxing/client/ com/google/zxing/client/j2se/ com/google/zxing/client/j2se/BufferedImageLuminanceSource.class com/google/zxing/client/j2se/CommandLineRunner.class com/google/zxing/client/j2se/GUIRunner.class com/google/zxing/client/j2se/ImageConverter.class com/google/zxing/client/j2se/MatrixToImageWriter.class However, when I try to run (in the same subdirectory the jar file is in)CommandLineRunner.class which I have confirmed has a main statement in it I ...

32. My first JAR file    coderanch.com

I created simple Java ap to byte swap binary data that are in many legacy data files that we have that were created under Solaris but we need to feed to an application under XP. I think it works and I want to send the .class file to the person who owns the files. The .java file is 60-70 lines long ...

33. rt.jar file questions (import, size, redundancy)    coderanch.com

Hi You, On my Windows XP platform, I have JDK 6 Update 16 installed in my C:\Program Files\Java\jdk1.6.0_16 directory, and JRE 6 Update 21 installed in my C:\Program Files\Java\jre6 directory. The size of the rt.jar file in my C:\Program Files\Java\jdk1.6.0_16\jre\lib directory is 49,396,545 bytes, and the size of the rt.jar file in my C:\Program Files\Java\jre6\lib directory is 44,655,521 bytes. The difference ...

34. How to locate & write to files inside a Jar    coderanch.com

No you can't. Editing into a ZipFile is not supported, not even by the zip protocol itself. If you replace a file inside the zip file, changing the size, you will need to shift data inside the entire zip file. Most programs that do allow changing files inside a zip file use a shadow copy - upon committing the changes the ...

35. Java Jar File    coderanch.com

36. jar files and the console    coderanch.com

Ok, so I did some more googling and finally found an answer: A JAR is a great way of packaging and deploying a Java SE project. But there is a problem with console input/output--the standard I/O files (System.out, System.err, and System.in) do not work when a JAR is activated by a double-click. System.out and System.err are simple, intuitive, and frequently used ...

37. Precompiling the jar files?    coderanch.com

What is the context in which you heard that term? I've heard of "precompiling" before, but it's not a common concept in Java. I remember this from Microsoft Visual C++. Compiling C++ code can take a long time. To make the compilation process quicker, Visual C++ would precompile C++ header files for you - so it would compile parts of the ...

38. file reference within Jar    coderanch.com

Hi, I am trying to refer a XML file within a jar using this.getClass().getResource("build.xml").toURI(). build.xml is in same package level as Class file. When I try to execute the code from eclipse, it works fine. But from jar, it gives following error rsrc:com/build.xml URI is not hierarchical.. any ideas?? If you want to see folder structure or source code let me ...

39. Writing to a file inside a jar file    coderanch.com

Is there a way I can modify the contents of a file inside a jar file? I have tried different options but haven't succeeded. I just have a war file that does not have any contents inside the classes folder, but has all the working code inside the lib folder (jars). One of these jar files say (my1.jar) has a text ...

40. Do we Recompile the java file if rt.jar is changed?    coderanch.com

It depends. It's safer to recompile your code with the new JAR. One thing that can go wrong is the following. The Java compiler inlines the values of static final variables (as they are constants). Suppose that you have a class One that looks like this, inside some JAR file that you are using: public class One { public static final ...

42. my JarLoader breaks when replacing the jar file    coderanch.com

Hi I have created a JarLoader class to load jar file at runtime. I want to keep different versions of jar files so I cache the JarLoader in a Map. The problem is when a jar file is loaded and I replace the jar file with a new file, the JarLoader can't find resources inside the jar file and it returns ...

43. JAR + Saving and Uploading files    coderanch.com

Currently, my program is filled with methods such as: private void update() { FileWriter f0 = null; try { f0 = new FileWriter("028fX039348839283948.DBall_save"); String copyx = Integer.toString(x); String copyy = Integer.toString(y); String copywidth = Integer.toString(width); String copyheight = Integer.toString(height); String copyadds = Integer.toString(adds); String copycheckers = new Boolean(checkers).toString(); //Incomplete String copycheckers1 = new Boolean(checkers1).toString(); f0.write(copyx + System.getProperty("line.separator")); f0.write(copyy + System.getProperty("line.separator") ); ...

44. viewing and changing the files in .jar file    coderanch.com

hi stephan, here the problem is my jar file contains more than 10 folders with tree structure means each folder have some other folders.....and at last point i have more than 50 classes in my jar file in different folders.....it is not possible to create a new jar here....is there any way to search my specific class in that jar and ...

45. .jar file install/uninstall programme    coderanch.com

You want to write an installer? And you want to write it in Java? Is that your question? My answer to that question is "Don't do that". To write an installer for a particular operating system, you need to understand various low-level features of that operating system which are applied when installing software. These features have nothing to do with Java ...

46. how to create runnable JAR file    coderanch.com

47. Unused jar files    coderanch.com

Is there any utility out there that can scan the source directory as well as the lib directory to determine which jar files are unused and can be removed from the lib directory? We inherited code and seems like there is way too much jar files and some may not even be needed.

48. Security of Java Jar file    coderanch.com

Here is a list of Java installer generators. I've used IzPack myself in the past. If you really want to make it impossible for anyone to reverse engineer your code, then you could make it a web application that runs on a server. People using the web app through their browsers will not be able to get at the code that ...

49. Project distribution jar file issue.    coderanch.com

I have a project that I want to distribute for testing. I have netbeans compile the jar file for me, I zip up the dist dir with a simple run.cmd file to kick it off. This project has an ini file included in the jar file. While in the IDE it runs fine as i have the path to the ini ...

50. jar files    coderanch.com

51. jar files    coderanch.com

Hi, I am reading the java tutorial (Jar files). In order to create a .jar file one must specify the following: jar cf jar-file input-file(s). The example in the tutorial is the following: jar cvf TicTacToe.jar TicTacToe.class udio images where audio and images are the directories where .au and .gif files are found. In my case; I want to pack only ...

52. Why Doesn't my Code Work with this Jar File?    coderanch.com

I'm having a nasty time figuring out how to use JAR files. I have a directory "Jrs" that includes an "abc" directory and a "def" directory. In directory "abc" I have a single file called "AbcCl.java" coded: package abc; public class AbcCl { public String toString () { return "[AbcCl Object]"; } } and in directory "def" I have a single ...

53. How to make executetable jar file?    dbforums.com

Help!! [!!! is it possible to do that if classpath is not set ??!!!] I don't know why I need to enter the [Hello] directory to make a jar why I cannot specify the path instead of get into the Hello directory?? I am not familiar with jar !! any jar expert can help me?? success ================================================== ======== C:\Hello>c:\j2sdk1.4.2_04\bin\jar cvfm c:\Hello\Hello.jar ...

54. How to make a jar file?    java-forums.org

55. Creating a Jar File Using Command Prompt    java-forums.org

Q1) Dear All, I have read the Java API and my classes are stored in a folder named CPE102. However, Windows XP refuse to acknowledge my command. Tell me what is wrong? Refer to help.jpg Q2) I have downloaded the JavaRunner file from the Java website. However, I am not sure where to pass the arguments. How am I siuppose to ...

56. [SOLVED] [newbie] creating a jar file    java-forums.org

I'm trying to create a .jar file: jar cvfM Calculator.jar *.class adding: CalculatorFrame.class(in = 619) (out= 364)(deflated 41%) adding: CalculatorPanel$CommandAction.class(in = 1789) (out= 797)(deflated 55%) adding: CalculatorPanel$InsertAction.class(in = 1701) (out= 764)(deflated 55%) adding: CalculatorPanel.class(in = 3112) (out= 1486)(deflated 52%) adding: CalculatorTest$1.class(in = 773) (out= 445)(deflated 42%) adding: CalculatorTest.class(in = 607) (out= 364)(deflated 40%) >jar uvfm Calculator.jar *.class adding: CalculatorPanel$CommandAction.class(in = 1789) ...

57. Write to a file in a jar    java-forums.org

The general rule is that you can't do what you are trying to do. If you feel you must, then you're program will have to un-jar the jar file, find the text file, change it, and then re-jar the jar file. I don't think that it's worth this trouble. I suggest you look for some other way to do what you ...

58. Reg: Need PGP Jar file    java-forums.org

59. Implementing a downloaded JAR file?    java-forums.org

If the game obtained various resources at runtime (from a database or a server) then those resources will have to exist for your copy of the game to run. Something like a database may simply not be available from WayBack. Your best bet really is to find the author (who, after all probably has copyright on the game!) and get some ...

60. Creating a .jar file    java-forums.org

61. Jar File    java-forums.org

62. Create .jar file    java-forums.org

First of all, I'd like to apologize if my question is too silly or something like that =P I'm new in the Java World Now, I've created a .java file using JCreator (yes, and the .class file appeared in the same folder), and I'm able to run it. However, I have to open JCreator in order to execute the file. My ...

63. Jar file has Data file in it...How do I get to it?    java-forums.org

Yeah, it worked. Repeatedly. Hmmm! Like I said in another thread. Sometimes JAVA is MAGICAL and WONDERFUL....sometimes not so much. BUT to your suggestion, I am hunting down this API you speak of. I keep meaning to do it but just haven't got around to it. A lot of people speak very highly of it. I'm very excited about getting my ...

64. Creating JAR file goes wrong.    java-forums.org

I have created a jar file, at first there was some error about no main, so I added a manifest. Now I get this error, but I cannot figure out what it means. C:\>java -jar img.jar Exception in thread "main" java.lang.NoClassDefFoundError: image$Mode at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.ja va:2427) at java.lang.Class.getDeclaredMethod(Class.java:1935) at java.awt.Component.isCoalesceEventsOverriden(Compo nent.java:5948) at java.awt.Component.access$500(Component.java:169) at java.awt.Component$3.run(Component.java:5902) at java.awt.Component$3.run(Component.java:5900) at java.security.AccessController.doPrivileged(Native ...

65. Double-clicking .jar files?    java-forums.org

Hey guys, I've been programming for a while, but I never made executables... just ran it from the compiler. Now, however, I really want to have an icon for one of my programs that would be conveniently located and clickable. So, I made a jar file, both in Eclipse and BlueJ. When I run this file in command line, it works ...

66. Need Jar Files    java-forums.org

67. Executin jar file    java-forums.org

11-17-2009 08:03 AM #1 abhijit Member Join Date Sep 2009 Posts 24 Rep Power 0 Executin jar file I've developed a appicatiob in java which will detect the bluetooth devices and transfer contents to it. i created it in netbeans 5.5. when i run the application in ide it works ok.. but when i double click the jar file ...

68. if a user doubclick on the jar file will get the output    java-forums.org

The client will only need the JRE for running the program. The JDK is for development. You could create a launcher program for the target OS that detects if Java is installed and asks the user to install Java if they don't have it or just launch your Jar file if Java is detected.

69. placing jar file    java-forums.org

70. Help with JAR files for mobiles...    java-forums.org

71. Execuatble jar file    java-forums.org

package javaapplication6; import java.util.*; import java.io.*; public class Main { /** * @param args the command line arguments */ public static void main(String[] args) { int radius; try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Please enter the radius of your circle"); radius=Integer.parseInt(br.readLine()); System.out.println("The radius you entered was: "+radius); double area=Math.PI*radius*radius; System.out.println("Calculating your circle area... please wait..."); System.out.println("The area of your ...

72. jar files    java-forums.org

good afternoon Forum i want to design a jar executable file that can run on my sony ericsson k800i. i tried the following but in vain Created the java file and compiled it created a manifest then later thye jar file using jar jar-file name manifest-name class files on my computer it runs but doesnt install in my phone and the ...

73. JAR files    java-forums.org

@OP You mentioned that you had the command in a command file of some sort. If you had named that file "jar dot some executable extension" then the OS may have got confused and kept on calling the command file rather than the actual jar executable. That would explain the continual display of the command on the screen.

74. Where to place jar files    java-forums.org

A lot of people create a "lib" folder off the project root folder and put their JAR files in there. It's just a convention, but it's a good idea. You have to list each JAR file on the classpath. If you are working from the command line, I suggest using batch files so you don't have to retype everything over and ...

75. Where to place the jar files..?    java-forums.org

I made a program in netbeans that uses a jar file.. that i imported to the libraries in order to make it run... thats ok. the program is running correctly. Now i want to run this very program on another computer where netbeans is not installed.. or say i need to run this program on multiple computers and in that case ...

76. Put a file in a .jar    java-forums.org

How do I put files in my java application so when it's packed in a .jar, I can copy these files somewhere? example: I have a file name.extension and I don't want anybody to see this file so I would like to have it in the .jar. But I still want to be able to copy this file to somewhere on ...

77. BufferedImage, ImageIO and Jar files    java-forums.org

I doubt that you're getting this error when you compile the code but rather when you run the code (there's a big difference here); likely the code compiles just fine. One thing to know is that getResource() looks for the resource in a different location than when you got the data via a File. The latter looks for files in a ...

78. Couple more questions on JAR Files :S    java-forums.org

Many apologies if it seems like I'm spamming the forums. I just seem to stumble upon many questions and there are always some questions that google cannot answer (or I suck at googl'ing). Anyhow, these are my questions: 1. Signing JAR files ( Signing JAR Files (The Java Tutorials > Deployment > Packaging Programs in JAR Files) ) What type of ...

79. Question about creating jar file    java-forums.org

80. sample jar file    java-forums.org

actually i'm after the output checking of the script, i do not have to create the script, I have a scheduler wherein i will execute the java script, client gave me their java script and i want to test first a sample java if my scheduler can execute this kind of script. that's is why i'm looking for a very simple ...

81. i created a jar file.but when i double click it doesnot work    java-forums.org

Hi I created a jar file from eclipse IDE and when i double click it doesnot work. I had to create a .bat file , with the command java -jar filename.jar and when i click on the .bat file , it works. what might be the reason that when i click on the .jar file , it is not running Thanks ...

82. jar file    java-forums.org

83. Help with a Jar File    java-forums.org

Hey Everyone, I found an opensource Java project which calculates solunar table/times. I found it here: SourceForge.net: Java Solunar Lib - Project Web Hosting - Open Source Software I have downloaded the jar file and looked at the source code. I am fairly new to Java. I took 2 or 3 java classes when I was in college but that has ...

84. Can a JPG be in the .JAR file?    java-forums.org

I have a program that has a JPG photograph displayed. I have to have the photograph in the same directory as the JAR file to find it. Is there a way to put the picture in the JAR file and have it be found by the program? I would rather just have the JAR file to distribute rather than the JAR ...

85. Where TO Add A jar File    java-forums.org

86. How big is too big? JAR file    java-forums.org

I am making a web application that is all bundled up in a JAR file. I am wondering how big is too big for the user to have to download. Please give your answer in 3 parts if possible... Part 1: - Size Range that is not too big at all Part 2: - Size Range that is a little big, ...

87. Interacting with .jar files.    java-forums.org

I am currently working on a program that decompresses a .jar file, moves some .class files into the same folder as the decompressed .jar file and then re-compiles the .jar file. So it basically adds .class files to a .jar file. The program works fine on my Mac (running Mac OS X 10.6.6) but when I send it to my friend ...

88. File not found when using jar    java-forums.org

I'm using Eclipse for development. I can run my code inside the Eclipse environment without a problem but when I export the project to a runnable jar, I get a FileNotFoundException when trying to execute the jar file. Here are the results of running from the command line: prmpt> java -jar GamesAhoy.jar Opening file: GamesAhoy/SightWords.txt Resource path:file:/C:/GamesAhoy.jar!/GamesAhoy/SightWords.txt java.io.FileNotFoundException: file:\C:\GamesAhoy.jar!\GamesAhoy\SightWords.txt (The filename, ...

90. Picture not showing when create JAR file    java-forums.org

When I run the below code from the console or in Eclipse it run perfect with the "logo.jpg" showing in the center of my screen. When I extract it into a JAR File and them try to run it. It seem like it can't find the picture. I can't figure out what I'm doing wrong. Java Code: class LogoFlashScreen { String ...

91. encoded jar file    java-forums.org

92. Files from .jar    java-forums.org

I've tried looking up how to do this, but I've found a ton of very different methods, so I'm just wondering how to do this, and preferably the (or one of the) best ways to do it. I have some images and audio in some directories within my .jar file. My code works fine when run from eclipse, however will not ...

93. .jar file    java-forums.org

.jar file How can I make a .jar file from this .java file? That is a little calculator designed by me. Java Code: import java.awt.*; import javax.swing.*; import java.awt.event.*; class Cal extends JFrame implements ActionListener{ Button b0,b1,b2,b3,b4,b5,b6,b7,b8,b9,bAdd,bSub,bMul,bDev,bEq,bClear,bSta,bAve,bSum,bs,bDat,bFE,bdms,bsin,bcos,btan,bBra1,bExp,bxy,bx3,bx2,bBra2,bIn,blog,bn,b1x,bMC,bMR,bMS,bMpos,bPi,bA,bPosNeg,bB,bDot,bC,bD,bMod,bOr,bLsh,bE,bAnd,bXor,bNot,bInt,bF,bCE,bBack; TextField t1; String st="",s1,lab; String s; double op,d; Calculations dv; Cal(){ setSize(490,322); setTitle("Java Scientific Calculator - All Rights Reserved RMW"); //------Menu ...

94. Trying to make a jar file double click/run from desktop    java-forums.org

Hi, I am having trouble making an executable jar file that I can email someone and have them run it on their desktop. The app has a gui window that will pop up, very simple app. I did this on the command line jar cf PushCounter.jar Pushcounter.class PushCounterPanel.class and it made a jar , but when I double click ...

95. jar file    java-forums.org

96. jar file    java-forums.org

Hi guys this is my first post and i am really new to java. As a student in finance i used matlab and R and java is really complicated(very long, it takes 3 lines in matlab to read a file and making a chart, it takes 200 lines in java...) for me but i have to do some work. I created ...

97. Passing arguments to jar file with a pipe    java-forums.org

98. Unpacking a jar file using pack200    java-forums.org

import java.io.*; import java.util.jar.*; public class test { public static void main(String args[]) throws IOException{ String userName = System.getProperty("user.home"); File outName = new File(userName +"/Desktop/test.jar"); File inName = new File(userName + "/Desktop/tmp"); Pack200.Unpacker unpacker = Pack200.newUnpacker(); JarOutputStream out = new JarOutputStream(new FileOutputStream(outName)); InputStream in = new FileInputStream(inName); unpacker.unpack(in, out); out.close(); } }

99. Creating .jar File - .jar doesnt do anything    java-forums.org

Check if there are errors: Open a command prompt, change to the folder with your jar file and enter: java -jar .jar To copy the contents of the command prompt window: Click on Icon in upper left corner Select Edit Select 'Select All' - The selection will show Click in upper left again Select Edit and click 'Copy' Paste here.

100. Creating .Jar File?    java-forums.org

How do I create a Jar file? I tried to follow the tutorial on the tutorial page for Java but I really don't know what to do with the manifest file. When I compile my file "Engine.java" to a class file I get two files "Engine.class" & "Engine$1.class". I ofcorse run the Engine.class file when I run the program. When I ...