Input the Scala
/root @ localhost ~ # source/etc/profile
/root @ localhost ~ # scala
The Exception in the thread "main" Java. Lang. NoClassDefFoundError: scala. View the NSC. MainGenericRunner
At the gnu. Java. Lang. MainThread. Run (libgcj. So. 7 rh)
Under Caused by: Java. Lang. ClassNotFoundException: scala. View the NSC.. MainGenericRunner not found in the gnu GCJ. Runtime. SystemClassLoader {urls=[], the parent=gnu GCJ. Runtime. ExtensionClassLoader {urls=[], the parent=null}}
The at java.net.URLClassLoader.findClass (libgcj. So. 7 rh)
.... At the gnu GCJ runtime SystemClassLoader findClass (libgcj. So. 7 rh)
The at Java. Lang. This loadClass (libgcj. So. 7 rh)
The at Java. Lang. This loadClass (libgcj. So. 7 rh)
At the gnu. Java. Lang. MainThread. Run (libgcj. So. 7 rh)
This how to solve ahhh
Scala environment variable Settings:
Export SCALA_HOME=/usr/scala - 2.11.8
The export PATH=$PATH: $SCALA_HOME/bin: $PATH
Java version:
/root @ localhost ~ # Java - version
Java version 1.4.2 "
Gij (GNU libgcj) version 4.1.2 20070626 (Red Hat 4.1.2-14)
Copyright (C) 2006 Free Software Foundation, Inc.,
This is free software; See the source for copying the conditions. There is NO
The giant; Not even for MERCHANTABILITY or FITNESS for A PARTICULAR PURPOSE.
CodePudding user response:
Is a less libgcj - devel packages??