Mailinglist Archive: opensuse-factory (487 mails)

< Previous Next >
Re: [opensuse-factory] Setting classpath
  • From: Sid Boyce <sboyce@xxxxxxxxxxxxxxxx>
  • Date: Thu, 13 May 2010 12:19:13 +0100
  • Message-id: <4BEBE031.2050207@xxxxxxxxxxxxxxxx>
On 13/05/10 11:01, Bernhard Walle wrote:
Hi!

Please reply to the list, not as personal mail.

Apologies, don't know what happened, I intended it to go to the list. I
know it's shell dependent. I did ". ~/.bashrc" followed by "echo
$CLASSPATH" in the same shell and it just returned the prompt. Only
after the reboot did it report the CLASSPATH and as expected on all tabs
in konsole.
I shall watch out for this in future in case the tools are not working
properly - e.g:- a couple of us have had a similar problem with a USB
device in Ubuntu and Kubuntu 10.04 that was only cured by a reboot -
very unusual as udevadm indicated everything was OK.
Regards
Sid.

Am 13.05.2010 10:08, schrieb Sid Boyce:
On 13/05/10 07:05, Bernhard Walle wrote:
Am 13.05.10 05:48, schrieb Ken Schneider - openSUSE:
On 05/12/2010 10:00 PM, Sid Boyce pecked at the keyboard and wrote:
I have the following in ~/.bashrc and wonder if it's correct. "echo
$CLASSPATH" only returns the prompt.
export
PATH=$PATH:/usr/local/mybin:/usr/local/bin:/usr/lib64/jvm/java-1.6.0-sun-1.6.0/jre/bin:/opt/netbeans/bin:/opt/arm-2009q3/bin

export JAVA_HOME="/usr/lib64/jvm/java-1.6.0-sun-1.6.0"
export CLASSPATH=/usr/lib64/jvm/java-1.6.0-sun-1.6.0
Regards
Sid.

Perhaps you need the quotes like you do with the JAVA_HOME variable

No.

I expected "source ~/.bashrc" to have set it up on the fly, but I had to
do a reboot for it to take effect - that's very odd in the Linux/Unix
world.

It works only in the shell in which you sourced the .bashrc. And all
processes (including terminals and shells) that inherit from that shell.

One other thing I noticed, there is no classes.zip file, perhaps not
needed in the current versions of java?

Did you check the -devel package? The -devel package is the JDK, the
other is only the JRE. AFAIR the classes.zip is only part of the JDK,
isn't it?



Regards,
Bernhard



--
Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot
Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support
Specialist, Cricket Coach
Microsoft Windows Free Zone - Linux used for all Computing Tasks

--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >
This Thread