running « jar « Java I/O Q&A





1. Can I set Java max heap size for running from a jar file?    stackoverflow.com

I am launching a java jar file which often requires more than the default 64MB max heap size. A 256MB heap size is sufficient for this app though. Is ...

2. I have a project in Java I am running that uses an external JAR file    stackoverflow.com

I have a project in Java I am running that uses an external JAR file. In Eclipse I added the JAR file to the class build path and everything working fine. But my ...

3. Running a .jar file displaying output/parsing commands    stackoverflow.com

I am wanting to run a .jar file and display the output (I'm assuming I would use a rich text box) however I also want to have a text box that ...

4. How to print messages from running jar file?    stackoverflow.com

Lately I've been working on building two tools using Eclipse. I'm printing some messages to the console there (System.out.print). However, I've now constructed a .jar file for each tool, which I want ...

5. Cant See RTF Files in JAR but can when running program from command prompt    coderanch.com

Hi ALL: I have a Java Swing APP. It has Menus which displays information through File I/O in a JEditorPane. When I run my program from Command Prompt using "java myApp" it shows these RTF Files as it is. However when I run them after converting Directory into a Executable JAR FILE, it fails. I get a blank JEditorPane. My RTF ...

6. running jar files in MAC    coderanch.com

hi i hv made a jar file in window which is running quit well in windows but when i tried to run this file in MAC OS i'm getting following errors: Exception in thread "main" java.lang.UnsupportedClassVersionError: ProgressBarExample (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at java.net.URLClassLoader.defineClass(URLClassLoader.java:250) at java.net.URLClassLoader.access$100(URLClassLoader.java:54) at java.net.URLClassLoader$1.run(URLClassLoader.java:193) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) ...

7. Running a JAR file from a java program    coderanch.com

Putting the jar file in the classpath is not going to help if you don't have the jar file in advance. I assume you want to do this without restarting your program. So use a URLClassLoader to reference the jar file. Find out the main class from the Manifest. This will tell you the entry point. Use the URLClassLoader to load ...

8. running java file under jar    coderanch.com

Hi I have a jar file which function like this It Takes the data file from the folder and insert it into database now again next day it takes the data file(new one) and delete old data and insert new data. There is file handle.java which is need to be invoked to do all these functions Now question- 1)only deploying jar ...

9. Problem when creating / running a jar file    coderanch.com

Hi Ernst, Thank you for your input - you pointed me into the right direction. I was not suspecting that my class did not run correctly. Running it from my IDE (Eclipse), the class was running fine, but not from the command line. So I'm missing some library (dll or jar). Just have to find which one. BTW I think things ...





10. Running jar file on another computer    coderanch.com

I recently created a jar file out of a program I'd made using the command prompt. I included a manifest file and since I wasn't sure what other files to include I added the entire folder my program was in. The jar ran perfectly on my computer. However, when I tried e-mailing it and running it on a different computer I ...

11. Problems running jar file    coderanch.com

Hi, I've created a jar file and when I double-click it within the folder in which it is created, it works fine. I added my own manifest file so that I could specify the main class to be run and the class path for the various jars I've needed to include. When I copy the jar file to the Desktop and ...

12. Replacing jar file, while still running old jar    coderanch.com

Hi, I have a jar file which users run my application from. When I do a new release I replace the jar with the new jar (same file name) The problem is, users that still have the application running, cannot safely exit, i assume because the jar has been replaced and it cannot find the old jar or the class/method is ...

13. Running a jar file    coderanch.com

Hi, I have written some java program in which i am using some external jars. The code is running fine. I exported the jar as Runnable jar using the eclipse export option. I named the jar as abc.jar then i try to run it using "java -jar abc.jar". It started to execute but threw a exception java.lang.NoClassDefFoundError in between where i ...

14. Running jar file    coderanch.com

Hi I'm trying to run a jar file (exported using java 1.5) on a mac, Using java tester it says I have java 1.5 But in the console I have: Mac OS X Version 10.4.11 (Build 8S165) 2010-08-24 09:58:47 -0700 [JavaAppLauncher Warning] Specifying a specific version for com.apple.mrj.application.JVMVersion 1.3.1 is deprecated. Use the more general 1.3* instead. launchd[177]: com.seagate.notificationexec.plist: respawning too ...

15. Running Java from jar file!    coderanch.com

Hi, I have a standalone java program developed in eclipse, that connects to weblogic server and perform some actions. It works completely fine from eclipse, however I have to get this running on other non developer machine without any eclipse installed and configured. I tried to do following and it failed. I exported the source and class in jar file using ...





17. running two jar files    java-forums.org

18. Running Jar File - NoClassDefFoundError    java-forums.org

Hi all, This error has been annoying me for a while and has stopped me from running any and all jar files I create or found, but is mostly annoying as I can't create my own nor run them. My code works fine in Eclipse, running is smooth, nothing bad happens or explodes. Though if I Export -> Runnable Jar File, ...

19. jar file running console program    java-forums.org

Hi I have created my netbeans project and created te appriopiate jar file from netbeans. This program is purely console based using "Scanner" for user input and system.out.println Whenever I double click the program nothing happens. However when i go to the cmd (I'm using windows) and type: java -jar consolegame.jar it works. Is there anyway so that when I double ...

20. Running a Jar file?    forums.oracle.com

I have written an application and packaged it in a jar file which on my PC run as it should. I have shared this file with a co-worker and his PC doesn't even seem to recognize the file as an Executable Jar File. When he put his cursor over the file it tells him it is a Tug Zip file? Would ...

22. Running Jar File In Vista    forums.oracle.com

Hi there, Im trying to run a Jar file in Vista after using the Netbeans IDE. When I click the Jar file i get the following error "Could not find the main.class. Program will exit". But when I use the following in the command line "C:\Users\Mike>java -jar "C:\Users\Mike\Work\242 HCI\FlipEm\dist\252_Games.jar" It runs my application just fine. If I send the Jar file ...

23. running a jar file    forums.oracle.com

Hi, I did... jar -tf subtran.jar The class I need to run is com.indas.as400.GiftSet META-INF/MANIFEST.MF META-INF/REFACTORINGS.XML com/ com/indas/ com/indas/as400/ com/indas/as400/AccountData.class com/indas/as400/Cofa.class com/indas/as400/Connector.class com/indas/as400/Connector.properties com/indas/as400/GiftSet.class com/indas/as400/KEYPF.txt com/indas/as400/TempFixer.class com/indas/as400/Transaction.class com/indas/soap/ com/indas/soap/SOAPReceiver.class com/indas/soap/soap.properties com/indas/soap/xml.xml com/indas/util/ com/indas/util/WriteToFile.class com/indas/xml/ com/indas/xml/NewFile.xml com/indas/xml/XmlGiftSet.class by the way. I did... java -cp cds.jar;indas.jar com.indas.as400.GiftSet It's working in XP, but it's not working in Linux. Why? Thanks for all

24. Jar Files - Running Programs from a Jar file    forums.oracle.com

Hi All I am new to Java and was wondering if someone might be able to give me a hand? this is what i am trying to do. I have created an application in Java with Swing and so on... basically this programs calls an external app to do all the work , what i was wondering is it possible to ...

25. running file under jar file    forums.oracle.com

Hi I have a jar file which function like this It Takes the data file from the folder and insert it into database now again next day it takes the data file(new one) and delete old data and insert new data. There is file handle.java which is need to be invoked to do all these functions Now question- 1)only deploying jar ...

26. running jar file java    forums.oracle.com

27. Running Jar file    forums.oracle.com

Ok, the book I'm reading tells me nothing about a static main, and the programs I have made so far in BlueJ works just fine without a static main. The problem is that its only working in blueJ. It was not the printWelcome in the program that was the problem but the inputreader. How should i fix the program?

28. running JAR files    forums.oracle.com

When exporting (with Eclipse) everything now goes really slick. But when I double click on the jar file I've just created, nothing really happens. It does all work fine when I try it with the command prompt (in the relevant dir: "java -jar filename.jar"), so it does all work as it should. But is there another way to open it, having ...

29. Changing a jar file while running it    forums.oracle.com

Scott_Brush wrote: I'm trying to enable an application running from a .jar file to update itself. I want to replace an existing .xml file included in the jar with an updated file with the same name. Can an application running from a jar update that jar? If so, how? There are ways to do this but they are not clean. You ...

30. Processed file sequence - Running Jar is different from runnng in JCreator    forums.oracle.com

.toUpperCase ().endsWith ("HTM")) { doFile (rootDir + fileSeparator + fileList ); } } } (This is just a portion of the code) When running in JCreator, the file sequence is Processed file ".\chapter_106511_70319.html" Processed file ".\chapter_106511_70322.html" Processed file ".\chapter_106511_70326.html" Processed file ".\chapter_106511_70300.html" Processed file ".\chapter_106511_70332.html" (This is the correct sequence) But when running the JAR, sequence is Processed file ".\chapter_106511_70322.html" Processed ...

32. Problem in creating /running a jar file    forums.oracle.com

xmlcrazy wrote: I have class, jar and manifest files on the same directory. what should I give? FYI, when I run the class file by itself, java MQSample, it works. When you run an executable jar any classpath on the command line or CLASS_PATH environment is ignored. You clearly have the message broker's .jar library on your class path somehow. For ...

33. Running jar files    forums.oracle.com

I am trying to get my jar executing, but I am getting a class not found error. I know what it is to do with, the fact that I am using an external library and havnt included it into my jar. How would I go about getting this library into my jar? cheers

34. running jar file from cmd prompt    forums.oracle.com

35. Jar File Not running in Vista!    forums.oracle.com

What does "it is not recognized in Windows Vista" mean? In particular what do you do and what happens when you do that? Vista does have to be configured to the extent of having a java runtime installed. A more likely culprit if something goes wrong is that the jar file has not been created properly. Check that the manifest specifies ...

36. Issues in modifying a file within jar when an application is running    forums.oracle.com

I figured that the best way to modify a file in jar is to make a copy,change it, deleted the original and replace with the new file. However what happens when one needs to modify the jar file that is a part of the running application ? Can the application still run when we are modifying the jar? If so, how ...

37. Running .jar file under 1.5 & 1.6    forums.oracle.com

I've created an application under netbeans 6.1 using jdk 1.6.0_06. The application runs on any PC that contains version 1.6, but will not execute for 1.5. I did not know at the time all other workstations contain jdk 1.5. An error for NoClassDefFoundError GroupLayout$Group appears running under 1.5. I realize building this app under 1.6 causes this error, as it uses ...

38. Running .jar files from Java code    forums.oracle.com

Hi. I am designing a sort of platform to run some games which are saved in .jar files. Basically this platform is a menu from which the user can select the game which he/she wants to run. It also has the feature of adding new games. Is is possible to run the .jar file from within java code? Thanks for any ...

39. Running JAR file problem    forums.oracle.com

Hi guys, I have built a little gui-app in NetBeans which, when compiled, creates a file LadderTrader.jar in the dist folder in the project folder. I would like to run this jar file from the linux bash line, but then get this error: + ltsmm@gertlx:~/gjava/LadderTrader/dist$ java -jar LadderTrader.jar Failed to load Main-Class manifest attribute from LadderTrader.jar ltsmm@gertlx:~/gjava/LadderTrader/dist$ + I have tried ...

40. Running jar files in various JREs    forums.oracle.com

Nah, it's not necessarily an intuitive process. Check the help documentation for your IDE and see if you can find documentation on the Java compiler. It may lead you to the method of changing compiler settings, which would allow you to compile with a previous compiler compatability. This should not require you to download a previous JDK; it will probably just ...

41. running the jar files    forums.oracle.com

Hi, The current application consists of three Jar files which are running on one machine.Is there any Class like System etc through which we can find which java processes are running and if any process exits,then start it automatically? Is java program solution for this or any other like Shell Script? This is windows environment. Thanks Prasanna

42. creating and running a jar file - need help    forums.oracle.com

If you're using Windows, what Darryl.Burke said could be your problem. Try checking the package declaration in Clock2D.java and make sure the line 'package clock' (if it's there, change it to lowercase and rename the Clock directory for the reasons Darryl.Burke said). If you do rename the package & directory, make sure to change any 'package' declarations and the Main-Class line ...

43. Help me In Running JAR file    forums.oracle.com

my previous post was supposed to be hacked or a spammer did something wrong with my original text. so i repeat my question here again: Hello, I made a program in java which involves 7 java files and some pictures. Then I made a jar file through this command: jar cmf manifest.mf sample.jar . where the manifest file was like this: ...

44. Help me in Running JAR file    forums.oracle.com

45. Running jar file    forums.oracle.com

46. Jar file not running please help    forums.oracle.com

Hi all I am using java 1.5 version I created a jar file with this version .It worked properly but when i excuted this same jar in a machine which has java 1.4 version then its not working ... But my code base is running in both the java version help out how to solve this

47. running jar file as independent programme ????    forums.oracle.com

hello Im writing a java programme that will call a jar file passing some argument here is an example : main programe : has to calculate the age of person the main prgramme will call the jar file calculate.jar by providing the date of today call(calculate.jar -d "13/2/2007") so my question is how to do this ?? or what is the ...

48. running a jar file from java code    forums.oracle.com

Hi! Im trying to run a jar file from my code. I've tried Classloader, but that doesnt work because it doesnt find the images (also embedded in the 2nd jar file). WHat I would like to do is actually RUN the 2nd jar file from the first jar file. There must be a way to do this right? any ideas?

49. running java file undr jar    forums.oracle.com

Hi I have a jar file which function like this It Takes the data file from the folder and insert it into database now again next day it takes the data file(new one) and delete old data and insert new data. There is file handle.java which is need to be invoked to do all these functions Now question- 1)only deploying jar ...

50. running jar files issue    forums.oracle.com

On a Windows xp machine, I can run the jar file from command line. But unable to run by double clicking it I did check ftype jarfile on command line and I did get the correct values. I did compare this value against the value on a machine where jar file works fine. I did assoc .jar=jarfile on command line. Still ...