LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing Java2 RE from .bin (https://www.linuxquestions.org/questions/linux-newbie-8/installing-java2-re-from-bin-33091/)

Thymox 10-18-2002 08:17 AM

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

MasterC 10-18-2002 11:20 AM

:) Thymox, look who was helping him :D Anytime you see my name attached to something, it can only lead to problems ;)

Yes, the script would looks something like:

#!/bin/bash
#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?

Cool

GT I.N.C 10-18-2002 06:15 PM

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..

Garry :D

neo77777 10-18-2002 06:36 PM

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!

GT I.N.C 10-24-2002 01:14 AM

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'

Garry :D

def1014 12-18-2002 01:09 PM

Wouldn't this make the "/usr/local/bin/java/bin" your only entry in the PATH?

FreakboY 12-23-2002 11:16 PM

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/libpreemptive_close.so: symbol __libc_sendto, version GLIBC_2.0 not defined in file libc.so.6 with link time reference


****************************************************************************
THIS IS WHY I THINK JAVA IS INSTALLED:
****************************************************************************


[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
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
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!

thanx!


All times are GMT -5. The time now is 06:48 AM.