Java in Gentoo: Difference between revisions

From Elvanör's Technical Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 4: Line 4:


* If a package is SLOTed, the jar go to /usr/share/package-name-SLOT/package-name.jar. Note that in the JAR there should not be any version number. Beware that some old/badly written ebuilds can forget to specify a SLOT, thus, the jar end in /usr/share/package-name/package-name.jar. This can be confusing when using java-config -p which report the location of the JAR (since it may mask the fact that another version of the package exist).
* If a package is SLOTed, the jar go to /usr/share/package-name-SLOT/package-name.jar. Note that in the JAR there should not be any version number. Beware that some old/badly written ebuilds can forget to specify a SLOT, thus, the jar end in /usr/share/package-name/package-name.jar. This can be confusing when using java-config -p which report the location of the JAR (since it may mask the fact that another version of the package exist).
== Classpath ==
* The java command on Gentoo honors the CLASSPATH variable. So often the best way to specify the classpath is via this variable.

Revision as of 14:31, 30 July 2008

Libraries (JAR) locations

  • Java packages are VERY often SLOTed.
  • If a package is SLOTed, the jar go to /usr/share/package-name-SLOT/package-name.jar. Note that in the JAR there should not be any version number. Beware that some old/badly written ebuilds can forget to specify a SLOT, thus, the jar end in /usr/share/package-name/package-name.jar. This can be confusing when using java-config -p which report the location of the JAR (since it may mask the fact that another version of the package exist).

Classpath

  • The java command on Gentoo honors the CLASSPATH variable. So often the best way to specify the classpath is via this variable.