Results 1 to 20 of 25
- 09-14-2008, 04:35 PM #1
Executing a jar double-click style in Linux
here a way i tried(worked in Fedora 6):
Step 1 : Right Click the jar file choose Properties->Open with->click
Add->use a custom command->browse (now searc for the dir
containing jre(Java Runtime Enviornment) folder ). on my machine
its in 'usr -> local -> jdk1.6.0_07 -> jre-'(Wherever jre folder is
located) open the lib folder (in jre only) add choose 'jexec' and
click open and add it.
Step 2 : Now it will be seen selected in the Properties window (if not select
Step 3: Click the Permission tab in the Properties window and select the
Check box "Allow Executing this file as Program."
- 09-14-2008, 05:53 PM #2
And what is your question,please?
- 09-15-2008, 04:05 AM #3
- 09-16-2008, 05:36 PM #4
- 09-17-2008, 04:17 AM #5
- 09-23-2008, 05:28 PM #6
- 09-23-2008, 05:42 PM #7Linux doesn't directly executes jars. it unzips(unjars) it and show you the class files inside.
It probably depends on the version of Linux and on how the JDK was installed.
- 09-24-2008, 10:13 AM #8
- 09-24-2008, 11:10 AM #9
For all guys,Java libraries on Linux machines can be found either in /usr/java folder or in /usr/lib/jvm (on Suse it is in /usr/local,but it is not its destination,because most of the java applications search java in the folders which i pointed here).
Enter one of these folders and watch what is there,it should be either jdk or jre installed (sometimes java-sun),enter one those folders and you will see some folders and files,and then enter the bin folder and you will find binary file called "java",that is what opens all java files,for JNLP files use javaws.
If the file doesn't open with the double click on Linux system it means that JAVA_HOME or JRE_HOME is not exported on run.
- 09-24-2008, 12:20 PM #10
- 09-26-2008, 05:11 PM #11
Well I stand corrected.I guess it does execute on double cilck on some versions of Linux. But does anyone use Fedora .
Because on Fedora 6 I've ecountered this problem.Will try Knoppix sometime and see.
- 09-26-2008, 09:20 PM #12
Man,jar files can be opened in Fedora also by double click,you just need to configure the path to java for opening such files with such extension,and that's all folks.
- 09-27-2008, 04:23 AM #13
- 09-27-2008, 10:20 AM #14
First of all try in console if the command
java -jar *.jar
If it works ,open java file with... and dialog window in use custom command text field put this command:
java -jar %fJava Code:
/usr/lib/jvm/jre-1.5.0-sun/bin/java -jar %f
Which Fedora do you use with KDE or GNOME?
Last edited by serjant; 09-27-2008 at 10:25 AM.
- 09-27-2008, 04:42 PM #15
Aright will try that that.Thanks
- 09-27-2008, 05:57 PM #16
java -jar *.jar------------works
usr/local/jdk1.6.0_07/jre/bin/java -jar %f-------doesnt work
(This command executes but doesnt make it executable)
I'm using Fedora 6.
Will i have do to this every time i need to open a different file .Or just once and its gets appilied to all jar files.
The way i've mentioned at the start of this post has to be configured once and thats it.all the jar file become executable(IN FEDORA)
- 09-27-2008, 09:54 PM #17
It makes once such files executable on your system.Sign the checkbox checked under the command field
- 09-27-2008, 10:51 PM #18
- 09-28-2008, 08:49 AM #19
it does work that way. Thanks serjant for the screen shot.
- 10-01-2008, 08:26 PM #20Senior Member
- Join Date
- Sep 2008
- Rep Power
- By Eranga in forum Advanced JavaReplies: 6Last Post: 04-08-2009, 04:05 AM
- By 82rathi.angara in forum New To JavaReplies: 21Last Post: 08-01-2008, 11:13 AM
- By jimm1 in forum Advanced JavaReplies: 0Last Post: 01-31-2008, 09:41 PM
- By dinesh kaushik in forum AWT / SwingReplies: 2Last Post: 11-21-2007, 05:02 PM
- By jkhoa in forum AWT / SwingReplies: 2Last Post: 08-10-2007, 12:36 AM