Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

NoClassDefFoundError: javax.media.Format

Thread view: 
glchin@hotmail.com - 09 Jul 2006 21:29 GMT
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:\ ...
Andrew T. - 10 Jul 2006 04:48 GMT
> 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.
glchin@hotmail.com - 10 Jul 2006 14:52 GMT
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.

> > I built a Java app using NetBeans on Windows, but get the above
> > exception when attempting to start my  app.jar  on Linux.
[quoted text clipped - 8 lines]
>
> Andrew T.
Andrew T. - 10 Jul 2006 15:14 GMT
Please post in-line, as I do below..

> > > I built a Java app ... 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.
> >
> > Is JMF installed on the Linux PC?

> 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.
glchin@hotmail.com - 10 Jul 2006 17:04 GMT
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

> Please post in-line, as I do below..
>
[quoted text clipped - 21 lines]
>
> Andrew T.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.