LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-13-2009, 04:19 AM   #1
Pharkdefyno
LQ Newbie
 
Registered: Nov 2006
Location: Australia
Distribution: Mandriva
Posts: 6

Rep: Reputation: 0
Creating a Symbolic link to a Java app (JBidWatcher)


Hi all,

I downloaded the latest version of JBidWatcher and I run it with the following command...

Code:
java -Xmx512m -jar JBidwatcher-2.0.1.jar
How do I create a link on the desktop or on a panel to execute that command? I can only imagine this is pretty easy but I am not getting it.

Thanks
 
Old 05-13-2009, 05:28 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Create a script that contains that command line, and then run that - most recent KDE versions will be able to.

I often start Java apps that way.

I. e. create a file called "startbidwatch.sh" in a terminal emulator and make its contents to be

Code:
java -Xmx512m -jar JBidwatcher-2.0.1.jar
Make sure that the "java" executable is in your path when you are in KDE, otherwise you might need to provide the full path to it if the icon you create for it does not work.

In KDE, on the desktop, right-click and select "Create New" and "Link to application". Click on the Application tab, click on Browse and browse to the script.

This should do it! The resulting icon should be clickable and it should start the Java app for you.

Last edited by rylan76; 05-13-2009 at 05:32 AM.
 
Old 05-13-2009, 06:32 AM   #3
Pharkdefyno
LQ Newbie
 
Registered: Nov 2006
Location: Australia
Distribution: Mandriva
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks, will give it a crack and let you know.
 
Old 05-13-2009, 06:56 AM   #4
Pharkdefyno
LQ Newbie
 
Registered: Nov 2006
Location: Australia
Distribution: Mandriva
Posts: 6

Original Poster
Rep: Reputation: 0
Sweet as, thanks. Funny I have not had the need to use scripts like this before, seems like a useful thing to do lol.

So I created the .sh file and pasted the following in it

Code:
java -Xmx512m -jar JBidwatcher-2.0.1.jar
Then I did the chmod +x to make it executable and it's all sweet. I will create the link etc now, but it all works fine.

Not sure what -Xmx512m is all about, seems to launch without that anyway.

Cheers mate.
 
Old 05-13-2009, 07:28 AM   #5
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Sure, no problem!

Quote:
Not sure what -Xmx512m is all about, seems to launch without that anyway.
I think this tells the JVM that it may use a maximum physical memory amount of 512MB before starting to virtualise to disk, if the Java application requires huge amounts of RAM. Since Java tends to be much slower than a "real" binary, increasing this might increase performance somewhat - since virtuailising memory can slow the JVM down - so something already slow gets even slower if it has to page to disk all the time.
 
Old 05-18-2009, 06:50 AM   #6
Pharkdefyno
LQ Newbie
 
Registered: Nov 2006
Location: Australia
Distribution: Mandriva
Posts: 6

Original Poster
Rep: Reputation: 0
I see, I will keep an eye on it and play around with it a bit. It does not seem to hog too much Ram at the moment, goes up about 8% (of 1 gig).

Thanks for the info!

Cheers.
 
  


Reply

Tags
link, symbolic



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make install problems: ln: creating symbolic link Jane2008 Linux - Newbie 2 11-07-2008 09:19 AM
Can I recover from creating a symbolic link with the same name as an existing folder? serutan Linux - Newbie 3 10-07-2007 04:20 AM
make install-init creating wrong symbolic link ServerStorm Linux - Software 1 01-18-2005 02:32 PM
Creating new symbolic link to libstdc kills KDE DavidLock Linux - Newbie 2 05-21-2004 03:31 AM
creating symbolic link for samba woonaks Linux - General 2 10-22-2003 10:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration