Skip navigation.
Home
Now Shipping Version 7.0

JAVA command no longer works after upgrading to latest version


Posts: 40

I installed the latest version of JAVA via synaptic and suddenly the command "JAVA" no longer can be invoked from a terminal window, thus not allowing me to run any java apps I need to run that way. Up until this point it worked normally.

I then downloaded the JRE directly from SUN and installed it...No Joy.
I then downloaded the JDK directly from SUN and installed it...NO Joy.

Is this something in the Path I need to re-set? how can I fix this?

Thanks in Advance.

drlizau's picture

java path

java path usually contains the version number because its part of the directory structure
try which java to get a path
then add to your PATH (and perhaps remove the old entry)

The command which java has

The command which java has no effect.

How does one edit the path settings? What file is this stored in?

Jon Du Quesne's picture

It's Not Installed

grasshopper, if "which java" does not return any response, then java is not installed on your system. "which somecommand" returns full path information on any part of somecommand that it can find. So you may need to try to uninstall whatever you have and perform a re-install of java. I cannot help you with that, but I'm sure drlizau will give you good directions Smiling

Jon

In /dev/null, no one can hear you type...

T Case's picture

Not completely true

Which java will find the path to java if the links in /usr/bin are correct. I had to change this in mepis 7.0 when I needed java 5 but the links pointed to java 6 by a VERY circuitous route.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.