[ILUG] Setting classpath for java media framework

Marek m.mcgann at sussex.ac.uk
Fri Mar 4 16:49:30 GMT 2005


Hi,

Just installed the java media framework to get the media player and embedding 
working with OOo 2.0bc. I can't get anything to play in OpenOffice, nor get 
the "jmstudio" executable to run from the command line (in the jmf bin 
directory), I get an error as follows:

Exception in thread "main" java.lang.NoClassDefFoundError: //jmstudio

>From Googling, it seems I haven't got my classpath variable set correctly, but 
I've tried a dozen or more versions of what's below in my .bash_profile and 
nothing seems to make any difference whatsoever.

>From .bash_profile:

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
export JAVAHOME=/usr/java/jre1.5.0_01/bin
export JMFHOME=/usr/local/JMF-2.1.1e
export CLASSPATH=/usr/java/jre1.5.0_01/lib:/usr/java/j2sdk1.4.2_07/lib:
$JMFHOME/lib/jmf.jar:$JMFHOME/lib/sound.jar:.:
export 
LD_LIBRARY_PATH=$JMFHOME/lib:/usr/java/jre1.5.0_01/lib:/usr/java/j2sdk1.4.2_07/lib:


Any help would be great.

M.



More information about the ILUG mailing list