From: Mark Hobley on
I am using Debian (testing) and I would like to use a couple of applications
that have been written in Java.

I have installed the jamvm virtual machine using:

apt-get install jamvm

Should I now be able to run .jar files by using the jamvm command followed by
the name of the .jar file, or is there something else that I have to do that I
have overlooked?

I tried this quickly with a Java program that I downloaded (in this case
metis.jar), but this just gave the following output and exited:

jamvm metis.jar

Exception in thread "main" java.lang.NoClassDefFoundError: metis/jar
<<No stacktrace available>>
Caused by: java.lang.ClassNotFoundException: metis.jar not found in java.lang.ClassLoader$1{urls=[file:/volumes/vol3a/build/metis/./], parent=null}
at java.net.URLClassLoader.findClass(URLClassLoader.java:531)
at java.lang.ClassLoader.loadClass(ClassLoader.java:341)
at java.lang.ClassLoader$1.loadClass(ClassLoader.java:1112)
at java.lang.ClassLoader.loadClass(ClassLoader.java:293)

What did I do wrong?

Mark.

--
Mark Hobley
Linux User: #370818 http://markhobley.yi.org/

From: Mumia W. on
On 02/21/2010 02:08 PM, Mark Hobley wrote:
> [...]
> jamvm metis.jar
>
> Exception in thread "main" java.lang.NoClassDefFoundError: metis/jar
> <<No stacktrace available>>
> Caused by: java.lang.ClassNotFoundException: metis.jar not found in java.lang.ClassLoader$1{urls=[file:/volumes/vol3a/build/metis/./], parent=null}
> at java.net.URLClassLoader.findClass(URLClassLoader.java:531)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:341)
> at java.lang.ClassLoader$1.loadClass(ClassLoader.java:1112)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:293)
>
> What did I do wrong?
>
> Mark.
>

Try "jamvm -jar metis.jar"

From: Mark Hobley on
Mumia W. <paduille.4061.mumia.w+nospam(a)earthlink.net> wrote:

> Try "jamvm -jar metis.jar"

Ok. That gives messages as follows:

java.lang.reflect.InvocationTargetException
at java.lang.reflect.VMMethod.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:327)
at jamvm.java.lang.JarLauncher.main(JarLauncher.java:50)
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/PatternLayout
at metis.MetisMain.main(MetisMain.java:56)
at java.lang.reflect.VMMethod.invoke(Native Method)
...2 more
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.PatternLayout not found in java.lang.ClassLoader$1{urls=[file:/volumes/vol3a/build/metis/metis.jar], parent=null}
at java.net.URLClassLoader.findClass(URLClassLoader.java:531)
at java.lang.ClassLoader.loadClass(ClassLoader.java:341)
at java.lang.ClassLoader$1.loadClass(ClassLoader.java:1112)
at java.lang.ClassLoader.loadClass(ClassLoader.java:293)
at metis.MetisMain.main(MetisMain.java:56)
...3 more



--
Mark Hobley
Linux User: #370818 http://markhobley.yi.org/

From: Mumia W. on
On 02/24/2010 04:08 PM, Mark Hobley wrote:
> Mumia W. <paduille.4061.mumia.w+nospam(a)earthlink.net> wrote:
>
>> Try "jamvm -jar metis.jar"
>
> Ok. That gives messages as follows:
>
> java.lang.reflect.InvocationTargetException
> at java.lang.reflect.VMMethod.invoke(Native Method)
> at java.lang.reflect.Method.invoke(Method.java:327)
> at jamvm.java.lang.JarLauncher.main(JarLauncher.java:50)
> Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/PatternLayout
> at metis.MetisMain.main(MetisMain.java:56)
> at java.lang.reflect.VMMethod.invoke(Native Method)
> ...2 more
> Caused by: java.lang.ClassNotFoundException: org.apache.log4j.PatternLayout not found in java.lang.ClassLoader$1{urls=[file:/volumes/vol3a/build/metis/metis.jar], parent=null}
> at java.net.URLClassLoader.findClass(URLClassLoader.java:531)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:341)
> at java.lang.ClassLoader$1.loadClass(ClassLoader.java:1112)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:293)
> at metis.MetisMain.main(MetisMain.java:56)
> ...3 more
>
>
>

Evidently log4j (log for java) can't be found. Install it and make sure
its directory name (or .jar file) is in the CLASSPATH. However, I don't
think that this is the way that metis was meant to be started. Look at
the documentation for that; there should be a startup script or
procedure somewhere.

From: Mark Hobley on
Mumia W. <paduille.4061.mumia.w+nospam(a)earthlink.net> wrote:
> Evidently log4j (log for java) can't be found. Install it and make sure
> its directory name (or .jar file) is in the CLASSPATH. However, I don't
> think that this is the way that metis was meant to be started. Look at
> the documentation for that; there should be a startup script or
> procedure somewhere.

There is a startup script, but I suspect that this is trying to do something
with a Java enabled browser. My browser is not Java enabled, and I don't wish
it to be so.

#!/bin/sh
if [ -z $MOZILLA_FIVE_HOME ]; then
echo "You may need to set the environment variable MOZILLA_FIVE_HOME first!"
echo "Please read the README file for details."
fi

java -Djava.library.path=lib -jar metis.jar

Here I guess that MOZILLA_FIVE_HOME is something to do with a web browser.
Does anyone know what purpose that serves? I don't want to run a browser for
that application.


Mark.

--
Mark Hobley
Linux User: #370818 http://markhobley.yi.org/