linux « jar « Java I/O Q&A





1. How to make Java execute jars from the current directory in Gnome?    stackoverflow.com

On Ubuntu Linux with Gnome, running my Swing application by double clicking on the jar file in Gnomes file browser leads to errors because required libraries that are dynamically loaded via ...

2. Java: Howto know where the jar is located in Linux    stackoverflow.com

In Linux, the JVM sets the working direcory equal to the homefolder from the user. In Windows is this the folder where the jar is located. How can I find where the jar ...

3. What is the proper way to package a single jar file as rpm?    stackoverflow.com

Hi I have created my jar file now i want to package my jar file as rpm(redhat package manager). I want to make my jar file as installable for linux. so What ...

4. Running a JAR file without directly calling `java`    stackoverflow.com

I am deploying a command-line tool that is written in Java that accepts command-line arguments. I have it packaged as a JAR file because it is convenient to have a ...

5. How long are resources used (file descriptor and memory) for Java temporary files (jar_cache####.tmp)?    stackoverflow.com

I"m running a Java application on a Linux system. I noticed that the application seemed to consume a lot of file handles (I get "Too many open files" after a ...

6. Is it possible to convert an exe file to a jar file?    stackoverflow.com

Is it possible to convert an exe file to a jar file? Because I just made a game which is online and in .exe file format, and I have a server running ...

7. how to redirect jar output from ubuntu command prompt to text file    stackoverflow.com

hi I created jar file and I run it using command as follows:

>>java -jar niidle.jar arguments...

it is showing correct output. But I cant see the whole output. I want to see the ...

8. In Linux, how to execute Java jar file with external jar files?    stackoverflow.com

In Linux, how to execute Java jar file with external jar files? Thanks in advance.

9. Using find to pass files to a jar    stackoverflow.com

Using 'find' I'm planning to pass all files with a specific ending as an argument to a jar-file.

find $directory -type f -name "*.in"
Somehow this is supposed to happen: java -jar MyJar-jar input.in How ...





10. How can I convert JAVA .jar file to Linux executable?    stackoverflow.com

Possible Duplicate:
How do I create executable Java program?
I need to convert .jar file to Linux executable with no extension (I want to run it ...

11. java does not exit back to prompt when running jar file fails    stackoverflow.com

when running java -jar myfile.jar on my RHEL 64 machine, if the install fails for some reason, i don't get back to prompt - thus the process doesn't exit on other RHEL ...

12. how to make a jar file always running    stackoverflow.com

i have a jar file: myServerSide.jar,
this jar takes request from client apps, processes them, each one ina thread and renders a response
i've put my jar on linux, but i want it ...

13. Executing a jar file in linux    stackoverflow.com

I have created a executable jar file in windows.when I click on that file it gets executed .I just copied the same file into Linux os and tried to do the ...

14. List contents of multiple jar files    stackoverflow.com

I am searching for a .class file inside a bunch of jars.

jar tf abc.jar 
works for one file. I tried
find -name "*.jar" | xargs jar tf
prints nothing. The only solution ...

15. How to call method in jar file with terminal?    stackoverflow.com

I have a compiled project in a jar file and I need to call a method from it.How can I do that in ubuntu terminal?





17. Jar using external file on Linux    coderanch.com

Hi! I have a problem. The situation is the following: i wrote an application which serialize on a file (dati.dat). The application has this structur: - pachage application - package gui - file dati.dat I make the jar of my application wiht Eclipse (export->runnubla jar). I put the jar e the dati.dat file in a folder on linux. When I opne ...

18. setting multiple jar file when running Java Class from Linux    coderanch.com

I am running a stand alone java class on a linux prompt, the java class has reference to 2 different classes in jar file I am running this command java -classpath /local/home/test/lib/commons-httpclient.jar:commons-logging.jar:. TestClass I am running this command from the directory where I have TestClass. But it is not finding a class which is in commons-logging.jar ANy help will really be ...

20. File transfer hanging - Jar files in linux only!    java-forums.org

Hey, Not sure whether to post this in the advanced or beginner, I've been Java coding for years but been a while since I did Client-Server and this seems like it could be a simplish issue, although it's driving me insane! Basically I have a client server file transfer program. Everything works fine in Windows, files transfer as they should. When ...

21. Linux command-line jar file execution    forums.oracle.com

Hi I have written my program in netbeans, and it involves using the 2D graphics classes. Under windows, it runs from netbeans, and i can execute the .jar file. Under linux, I can run it from netbeans, but when I try to execute it from the command line it does not work (throws a NoClassDefFoundError in main). I get the same ...

22. Launching a Jar file under Linux    forums.oracle.com

Hi, I'm interested in writing a launch script for .jar files so that the user can just execute it to run the jar file. The problem is, how do determine where the Java Runtime has been installed in the target system. If neither PATH nor JAVA_HOME variables are declared. It seems that netbeans auto magically determines the available JREs. How do ...

23. dot jar (.jar) files and linux classpath    forums.oracle.com

24. Executable JAR Files, and execution in a linux terminal    forums.oracle.com

Hi, I have a (hopefully) small problem. I developed a small application using Java, SWT and a Derby Database. The application is supposed to be a Desktop application to administer some kind of Tournament. I'm developing on Linux with Eclipse. If I run the app in Eclipse, everything runs well. But if I create an Executable JAR File I'm running into ...

25. Wrapping Jar Files in Linux Executables?    forums.oracle.com

And the arguments vary each time the user use your application ? Then you will have to write a small shell script which takes the user input, e.g. myShellScript.sh var1 var2 ... Inside the script you place the java -jar myProg call and pass the arguments to it: cd /path/to/jar java -jar myProg $1 $2 whereas $1 $2 ... holds the ...

26. how to automount jAR file in Linux!    forums.oracle.com

hello, I am create JAR file. I want to put this JAR file in CD and if an user in linux platform can ablet to locate this JAR file in /usr/bin/myjar folder and open through java -jar jarFile.jar cmd using shell script. Is it possible to uto mount and auto run that JAR file in Linux. How can find whether JRE ...