LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-14-2004, 03:20 AM   #1
a2b2c2d
LQ Newbie
 
Registered: Jul 2002
Posts: 4

Rep: Reputation: 0
Trouble with Java


Hello,
I am trying to run a java program via shell and I get the following message (even just typing java gives me this):

libgcj-java-placeholder.sh

This script is a placeholder for the /usr/bin/java and /usr/bin/javac
master links required by jpackage.org conventions. libgcj's
rmiregistry, rmic and jar tools are now slave symlinks to these
masters, and are managed by the alternatives(8) system.

This change was necessary because the rmiregistry, rmic and jar tools
installed by previous versions of libgcj conflicted with symlinks
installed by jpackage.org JVM packages.



How can I get my java program to run? Thanks in advance


Red Hat Enterprise Linux ES release 3
WHM 9.7.2 cPanel 9.7.7-R15
 
Old 09-15-2004, 07:52 AM   #2
cadj
Member
 
Registered: Aug 2003
Location: Melbourne Australia
Distribution: Debian Stretch
Posts: 374

Rep: Reputation: 32
to use java i often just download the j2se from sun and extract it into /opt
then i add the path /opt/j2re/bin

to run my programs its just

java myprogram
 
Old 10-04-2004, 08:58 PM   #3
Vampyric
LQ Newbie
 
Registered: Mar 2003
Posts: 27

Rep: Reputation: 15
Hmm

Been using java for a while, never saw that one before.

cadj is right, just go to http://java.sun.com and download the lastest J2SE JRE (java runtime environment).

Use the self extractor to extract it where ever you like, and I usually like to make some symlinks to anything I use frequently.

so...
download it
chmod +x java<rest of filename>.bin
./java<rest of filename>.bin
If needbe move the extracted folder where ever you like

ln -sf [path to java executable in extracted folder] /usr/bin/java
( example of my setup: ln -sf /usr/local/java/j2sdk1.4.2_05/jre/bin/java /usr/bin/java )

java program_name

Most definitely works that way
 
  


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
Trouble installing Java The Stranger SUSE / openSUSE 17 06-18-2005 10:58 AM
Having trouble with Java KezzerDrix Mandriva 12 03-30-2005 09:06 AM
Help! Having Trouble Downloading Java Dooley Mandriva 3 12-06-2004 02:23 PM
Trouble w/java raysr Linux - Newbie 7 01-10-2004 02:24 PM
Trouble with Java Plugin Gerardoj Linux - Software 6 10-10-2003 08:16 AM

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

All times are GMT -5. The time now is 10:35 PM.

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