Summary: | Wrong CLASSPATH of sun sdk1.4.0 stops me from running java apps | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Miguel Sousa Filipe <miguel.filipe> |
Component: | New packages | Assignee: | Karl Trygve Kalleberg (RETIRED) <karltk> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 1.0 | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Miguel Sousa Filipe
2002-05-13 13:29:20 UTC
The reason this happens is that the default CLASSPATH does not have . in it, thus CLASSPATH=/opt/sun-jdk-1.4.0/lib/rt.jar:. I do not think adding this to the default CLASSPATH is such a good idea, as it might result in unintended side-effects for various tools, especially if the "." moves leftwards in the path-list. You should configure your user's CLASSPATH in .bashrc or .zshrc or .tcshrc or whatever by doing something like: export CLASSPATH=${CLASSPATH}:. after you have sourced /env/profile Please note that if you you use the preferred setup, with --set-user-classpath, then source $HOME/.gentoo/java-env, this will not be an issue. I will update the Java Guide to reflect this. |