Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-18-2002, 08:17 AM   #46
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57

You could create a nice, short little script that passes all the parameters for you. If you're running KDE or Gnome, you could also just create a 'link' to it on your desktop with all the lovely parameters in that.

And how on earth did you get into such trouble installing J2RE? I did something that I don't normally do... I went and got the J2RE-something.rpm.bin. Ran it and it self-expanded to an RPM file. Installed the RPM file and all is well! 0.02
Old 10-18-2002, 11:20 AM   #47
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Thymox, look who was helping him Anytime you see my name attached to something, it can only lead to problems

Yes, the script would looks something like:

#This is for the JPhotoBrush java program:
cd /to/your/directory/with/JPhotoBrush.jar
java -jar JPhotoBrush.jar
#end script

And copy and paste that into any text editor, edit the path to your program, save the file as JPhotoBrush (or whatever you want) and then:
chmod +x JPhotoBrush
And now you can move that wherever you want, and if you put it in your PATH (maybe in /usr/bin) then you can execute it my just typing JPhotoBrush

I am no bash expert, but I think that's right. Check around first, or ask someone to take a look at it.

Glad you got it working btw, how do you like the program?

Old 10-18-2002, 06:15 PM   #48
Registered: May 2002
Location: Australia, Sydney, St.Clair
Distribution: Rh 7.3
Posts: 836

Original Poster
Rep: Reputation: 30
Thanks alot MasterC....

Yeh the program is ok..i really like the blend effect it's got with it hehehe i don't know how to do that in Gimp..

Old 10-18-2002, 06:36 PM   #49
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
For future reference if you need more stuff to do with java -jar just create an alias jjar='java -jar' for instance, you know where to put it right? ~/.bashrc is a good place for aliases, then whenever there is a jar archive to be delt with java -jar just type in console jjar archive.jar and volia!
Old 10-24-2002, 01:14 AM   #50
Registered: May 2002
Location: Australia, Sydney, St.Clair
Distribution: Rh 7.3
Posts: 836

Original Poster
Rep: Reputation: 30
ok cool, but yeh another question,when i made that script and put it in profile.d that should make it work for ALL users right? what happens if i want root and other users to run Java? and that program...cause it only runs for 'gt'

Old 12-18-2002, 01:09 PM   #51
Registered: Apr 2002
Distribution: Red Hat 6.1,7.2,7.3 Mandrake 8.1,8.2
Posts: 48

Rep: Reputation: 15
Wouldn't this make the "/usr/local/bin/java/bin" your only entry in the PATH?
Old 12-23-2002, 11:16 PM   #52
Registered: Jun 2002
Location: TX, USA
Distribution: Slackware
Posts: 381

Rep: Reputation: 31
Hi everyone!

i've been reading this thread... i want to install
java on my system too!... i have follow step-by-step
your instructions MasterC... all i want to do is install
java so i can run LimeWire.I'm pretty shure i have
java installed... but somehow limewire won't run!
i get these err msgs:

[me@localhost me]$ java limewire
Exception in thread "main" java.lang.NoClassDefFoundError: limewire

[me@localhost me]$ limewire
/usr/java/jre1.3.1_06/bin/i386/native_threads/java: relocation error: /usr/java/jre1.3.1_06/lib/i386/ symbol __libc_sendto, version GLIBC_2.0 not defined in file with link time reference


[me@localhost me]$ java
Usage: java [-options] class [args...]
(to execute a class)
or java -jar [-options] jarfile [args...]
(to execute a jar file)

where options include:
-client to select the "client" VM
-hotspot is a synonym for the "hotspot" VM [deprecated]
-server to select the "server" VM
-classic to select the "classic" VM
If present, the option to select the VM must be first.
The default VM is -client.

-cp -classpath <directories and zip/jar files separated by :>
set search path for application classes and resources
set a system property
enable verbose output
-version print product version and exit
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options

i really don't know what the problem is... any help would be appreciated!



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 08:30 PM
Java2 SDK doesn't work? ganninu Debian 7 09-13-2005 05:32 PM
Having trouble installing java2 runtime anc6802 Linux - Newbie 1 03-10-2005 12:35 PM
mozilla 1.4.1 no sound with java2 eeverde Linux - Newbie 1 08-07-2004 02:30 AM
Newbie needs help Installing j2sdk-1_4_2-nb_3_5_1-bin-linux.bin bendoku Linux - Newbie 5 10-11-2003 09:27 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:55 AM.

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