LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 11-12-2005, 04:07 AM   #1
antares7364
LQ Newbie
 
Registered: Nov 2005
Posts: 4

Rep: Reputation: 0
Question Help ! How to launch/install Java on a dedicated server under Linux


Hello,

I have a Linux account on a dedicated server running under Linux. I can access to the SSH command-line.
I'd like to run a Java application (a single .class file), but when I type "java javaTest.class", it saids me that java is an unknown command, so I think this means that Java is not installed ?
Do you know how to install Sun Java on this server ? Can a non-root user do this, or do I have to ask to the root ?
I'm newbie in Linux, and my domain is web-design and programming

Thank you !
Olivier (excuse my bad english ^^)
 
Old 11-12-2005, 05:10 AM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 48
What distro is this? Check to see if there is anything under "/usr/java/...". It is best if you install it as root; as then you can install it into a standard system location and stuff.

You can download Sun's Java from here. Go to either JDK or JRE, accept the license agreement, and get the Linux .bin file. You can install as non-root if you install it to somewhere in your home directory; it will take a lot of space, so be careful if you have a quota.
 
Old 11-12-2005, 05:25 AM   #3
antares7364
LQ Newbie
 
Registered: Nov 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Hello,

Thank you very much for your (quick !) answer
The distro name is : Red Hat Linux release 7.2 (Enigma)
There is not /usr/java/ directory.
So I'll try to install Java in my home directory, because my "administrator" (a friend) is quite busy, and ... is almost more a newbie than me

Thank you again,
Olivier
 
Old 11-12-2005, 06:29 AM   #4
antares7364
LQ Newbie
 
Registered: Nov 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Hello,

I successfully got and installed JRE, thank you for your precious help
I still have a problem : when I try to load java, I always get an error :

bash-2.05$ ./java ../../javaTest -classpath ../lib/rt.jar
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

Maybe a problem of classpath ?

Olivier
 
Old 11-14-2005, 12:45 PM   #5
antares7364
LQ Newbie
 
Registered: Nov 2005
Posts: 4

Original Poster
Rep: Reputation: 0
I downloaded the JDK v1.5, with JRE inside, and it works fine !
 
  


Reply


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
HLDS linux dedicated server help installation. RHLinuxGUY Linux - Games 35 07-21-2007 04:46 PM
CounterStrike Dedicated server problem LINUX MajSlayer420 Linux - Networking 4 05-26-2005 03:25 PM
Dedicated server RealVNC install psychodreams Red Hat 0 04-03-2004 09:15 AM
Help how to install Remote Serious Sam 1 Dedicated Server Gerg Linux - Software 0 03-21-2003 04:34 PM
Half-Life Dedicated Server on Linux jeucken Linux - Networking 10 07-31-2002 06:02 PM


All times are GMT -5. The time now is 07:13 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration