NoClassDefFoundError: javax.media.Format

G

glchin

I built a Java app using NetBeans on Windows, but get the above
exception when attempting to start my app.jar on Linux. I know the
problem is caused by the IBM JVM not finding jmf.jar but I don't have
the solution.

Using the Library Manager in NetBeans on Windows, the classpath is set
to ....\artifacts\libs\jmf\jmf.jar . Is this path embedded in my
app.jar file? If it is, I cannot simulate it on Linux because the
classpath contains a drive C:\ ...
 
A

Andrew T.

I built a Java app using NetBeans on Windows, but get the above
exception when attempting to start my app.jar on Linux.

Can you run the application on Windows ..without using NetBeans?
..I know the
problem is caused by the IBM JVM not finding jmf.jar but I don't have
the solution.

Is JMF installed on the Linux PC?

Andrew T.
 
G

glchin

The app runs fine on Windows using java -jar App.jar in a console
window.

Yes, JMF is installed on the Linux PC. I tried setting the CLASSPATH
env variable, but to no avail.
 
A

Andrew T.

(e-mail address removed) wrote:

Please post in-line, as I do below..
Yes, JMF is installed on the Linux PC. I tried setting the CLASSPATH
env variable, but to no avail.

Sun recommends you do not add jar's to an environment
variable, but at run-time (AFAIR - JMF breaks from that slightly).

Try adding the jmf.jar to the classpath at the moment you're
running your application from the command line.

Note that there are one or two more things we can check
here on c.l.j.p, but that JMF also has its own dedicated forum
here.. <http://forum.java.sun.com/forum.jspa?forumID=28>

Andrew T.
 
G

glchin

I found the solution in a Sun developer forum; thanks to Andrew for
pointing it out.

Copy jar files from:
-rw-rw-rw- 1 root root 1814984 May 1 2003 /JMF-2.1.1e/lib/jmf.jar
-rw-rw-rw- 1 root root 35882 May 1 2003
/JMF-2.1.1e/lib/mediaplayer.jar
-rw-rw-rw- 1 root root 57246 May 1 2003
/JMF-2.1.1e/lib/multiplayer.jar

To:
-rw-r--r-- 1 root root 1814984 Jul 10 11:29
/opt/ibm/java2-i386-50/jre/lib/ext/jmf.jar
-rw-r--r-- 1 root root 35882 Jul 10 11:29
/opt/ibm/java2-i386-50/jre/lib/ext/mediaplayer.jar
-rw-r--r-- 1 root root 57246 Jul 10 11:29
/opt/ibm/java2-i386-50/jre/lib/ext/multiplayer.jar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top