Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > LimeWire+WireShare (Cross-platform) > Technical Support > General Linux Support
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

General Linux Support For questions regarding use of LimeWire or WireShare or related questions on the Linux operating system. This includes installation questions and answers. (Check the Stickies marked in Red at top of this section.)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old May 6th, 2002
shorebreak
Guest
 
Posts: n/a
Question starting Java Programs

is there a way under linux to start java programs without a shell script but with a desktop-link? or at least so that i don't need a consol open all the time?

thank you


SuSE 8 Professional
KDE 3; Java 1.3.1
Reply With Quote
  #2 (permalink)  
Old May 8th, 2002
Apprentice
 
Join Date: December 8th, 2001
Location: Pasadena, CA
Posts: 6
jmcclure is flying high
Default

I've made some minor tweaks to the runLime.sh script, so that it can be run from a menu or desktop icon.

The changes are:

1) Addition of . /usr/local/bin/jdk1.4.env. This sets up my java environment like PATH and such.
2) Addition of cd `dirname $0`. This changes to the directory that the script is located in.
3) Comment out the J2SE_PREEMPTCLOSE lines. I don't seem to need this with JDK1.4.

Also, when you create your launch icon you may need to check the "Run in terminal" option or similar. Under Gnome that's what it's called, I don't know what it's called under KDE. I used to have to use this with Redhat 7.2 and Ximian Gnome, but it works fine with out it under Redhat 7.3.

Let me know how it works out!

Here's my modified script:

#!/bin/sh
#
# Runs LimeWire. This script must be executed in your LimeWire
# install directory.
#
# We must set the J2SE_PREEMPTCLOSE environment variable to 1 to
# work around some limitations in the JDK1.3. For more information
# see http://java.sun.com/j2se/1.3/relnotes.html#vm
#
CLASSPATH=".:collections.jar:xerces.jar:jl011.jar"
export CLASSPATH

. /usr/local/bin/jdk1.4.env
cd `dirname $0`

#J2SE_PREEMPTCLOSE=1
#export J2SE_PREEMPTCLOSE

java -jar RunLime.jar
Reply With Quote
  #3 (permalink)  
Old May 9th, 2002
shorebreak
Guest
 
Posts: n/a
Default

doesn't work for me

i'm new to linux so it might be my fault. the problem is in the shell script the desktop link works.
i just copied the shell script to my desktop and added a line to switch the folder and for 2 out of 3 java programs i have it works.

thanks!
Reply With Quote
Reply


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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
All java programs slow up my computer Jynxie FrostWire 1 November 22nd, 2006 08:33 AM
various java errors when starting limewire (linux) KrissDeValnor LimeWire Beta Archives 1 June 28th, 2005 09:58 PM
exit Java programs ReBeLLi0usPnaY Download/Upload Problems 1 January 30th, 2005 02:01 PM
You must exit all currently running Java programs? n00bieguy Windows 1 January 25th, 2005 03:07 PM
exit all java programs ginge_87 Windows 2 January 25th, 2005 03:06 PM


All times are GMT -7. The time now is 12:54 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.