Installing Java Software
Can anyone help me with installing java software from sourcecode. I see a lot of nice programs I would like to download but I pass them by because I can't seem to get the hang of Java installs. I have installed the latest version of Java from their websit so shouldn't I have everything I need to do an install.
which programs are you trying to install
If you let us know how exactly you setup java, which apps you tried to install and where exactly you experienced difficulties, we maybe able to help.
I've been trying to install a program (one of many java based programs) called SnortKonsole and when I run a java <filename> I get this
[root@localhost SnortKonsole-0.1]# java SnortKonsole-0.1.jar
Exception in thread "main" java.lang.NoClassDefFoundError: SnortKonsole-0/1/jar
Caused by: java.lang.ClassNotFoundException: SnortKonsole-0.1.jar
at java.net.URLClassLoader$1.run(URLClassLoader.java: 220)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:208)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 23)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 68)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:336)
Error: Could not find the main class.
Error: A JNI error has occurred, please check your installation and try again
By the way, I am running Mandriva 2008.1
Also this is all I know about what I have installed for java.
[root@localhost SnortKonsole-0.1]# java -version
openjdk version "1.7.0-internal"
OpenJDK Runtime Environment (build 1.7.0-internal-b24)
OpenJDK Client VM (build 1.7.0-b24, mixed mode)
That doesn't mean much to me but I hope it helps you guys.
if i'm not mistaken i think you run a java app with the command java -jar app-name.jar
Thanks, that worked to get the program running. Now I know.