LinuxQuestions.org
Visit Jeremy's Blog.
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 08-24-2004, 04:46 AM   #1
Moebius
Member
 
Registered: Dec 2002
Location: Milwaukee, WI
Distribution: Ubuntu, Kubuntu, Debian, CentOS
Posts: 216

Rep: Reputation: 30
how to set current VM?


I downloaded Java 1.5 beta from SUN, and they provide instuctions on how to extract the bin files, but not how to set it up for use. OK so I have all these extracted files sitting there, now how do I get my Java apps to run? Do I have to set a JVM whatever that is?

I'm using Gentoo and I tried blackdown 1.4.2 jre and jdk but they aren't working (see big http://bugs.gentoo.org/show_bug.cgi?id=54242)

so I removed those and now I want to use the 1.5 from sun.

Code:
zac@moebius ~ $ azureus
Attempting to start Azureus...
/usr/bin/azureus: line 54: java: command not found
If you recieved an error about a missing java class, you need to setup
your classpath correctly.
This should do the trick (as root):
java-config --add-system-classpath=junit,log4j,commons-cli,systray4j
env-update && source /etc/profile

root@moebius /home/zac # java-config --add-system-classpath=junit,log4j,commons-cli,systray4j
Error reading classpath file [Errno 2] No such file or directory: '/etc/env.d/21java-classpath'
Thanks guys,

Frustrated,
Moebius
 
Old 08-24-2004, 07:44 AM   #2
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
It looks like java is not in your PATH. Check the output of "which java" for the directory where your java resides. If you don't find it, use the search function on this site for how to set the PATH to include java. It's a common question.
 
Old 08-24-2004, 07:51 AM   #3
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Gentoo provides a Java configuration tool called java-config, and you can install the Sun J2SE SDK easily using Portage/emerge: Copy the bin file you downloaded to /usr/portage/distfiles (it cannot be downloaded automatically for license reasons) and then run emerge sync to update your portage cache. cd to /usr/portage/dev-java/sun-jdk and look what's there. You will most likely see sun-jdk-1.5.0_beta2.ebuild. Emerge it using ACCEPT_KEYWORDS='~x86' emerge
sun-jdk-1.5.0_beta2.ebuild
and let it do its stuff.

When done, use java-config to set the system VM and user VM:
java-config -L to list the available VM's (as installed through portage)
java-config -S sun-jdk-1.5.0-beta (or whatever it's called - refer to the listing in the output of the above command) to set the system VM
java-config -s sun-jdk-1.5.0-beta (this still has to be a valid VM name) to set the user VM

When done, run env-update, followed by source /etc/profile to let the changes take effect.


Håkan

Last edited by hw-tph; 08-24-2004 at 07:56 AM.
 
  


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
Cannot set LD_LIBRARY_PATH in .cshrc (able to set other env variables) senthilpr_in Linux - Newbie 4 02-26-2007 12:46 PM
Set the Xterm title to reflect the current time ! Bonch Linux - Newbie 11 10-25-2004 04:50 PM
How do i find all the set UID/GID file on my current system Linux_interest Linux - Newbie 1 09-13-2004 10:09 AM
current Slack-Current giving troubles? r_jensen11 Slackware 5 02-02-2004 05:08 PM
Staying Current (with current) hjles Slackware 1 01-21-2003 07:03 PM

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

All times are GMT -5. The time now is 08:17 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