If you have problem to control volume of your Zekr audio player which result with error for example with this message,
net.sf.zekr.engine.audio.PlayerException: javazoom.jlgui.basicplayer.BasicPlayerException: Gain control not supported
at net.sf.zekr.engine.audio.DefaultPlayerController.setGain(DefaultPlayerController.java:193)
at net.sf.zekr.engine.audio.DefaultPlayerController.setVolume(DefaultPlayerController.java:249)
at net.sf.zekr.engine.audio.ui.AudioPlayerForm$20.mouseUp(AudioPlayerForm.java:831)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3562)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3186)
at net.sf.zekr.ui.BaseForm.loopEver(BaseForm.java:36)
at net.sf.zekr.ZekrMain.startZekr(ZekrMain.java:63)
at net.sf.zekr.ZekrMain.main(ZekrMain.java:94)
Caused by: javazoom.jlgui.basicplayer.BasicPlayerException: Gain control not supported
at javazoom.jlgui.basicplayer.BasicPlayer.setGain(Unknown Source)
at net.sf.zekr.engine.audio.DefaultPlayerController.setGain(DefaultPlayerController.java:191)
... 10 more
at net.sf.zekr.engine.audio.DefaultPlayerController.setGain(DefaultPlayerController.java:193)
at net.sf.zekr.engine.audio.DefaultPlayerController.setVolume(DefaultPlayerController.java:249)
at net.sf.zekr.engine.audio.ui.AudioPlayerForm$20.mouseUp(AudioPlayerForm.java:831)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3562)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3186)
at net.sf.zekr.ui.BaseForm.loopEver(BaseForm.java:36)
at net.sf.zekr.ZekrMain.startZekr(ZekrMain.java:63)
at net.sf.zekr.ZekrMain.main(ZekrMain.java:94)
Caused by: javazoom.jlgui.basicplayer.BasicPlayerException: Gain control not supported
at javazoom.jlgui.basicplayer.BasicPlayer.setGain(Unknown Source)
at net.sf.zekr.engine.audio.DefaultPlayerController.setGain(DefaultPlayerController.java:191)
... 10 more
Screenshot of the error message,
In this case also, you will unable to close your Zekr normally. It will result with force quit require.
To clear this problem, we need to install Oracle JDK 7.
To install please follow this step,
First of all add this repo,
sudo add-apt-repository ppa:webupd8team/java
then update,
sudo apt-get update
then install java,
sudo apt-get install oracle-java7-installer
after completed you can check java version using this command,
java -version
First of all add this repo,
sudo add-apt-repository ppa:webupd8team/java
then update,
sudo apt-get update
then install java,
sudo apt-get install oracle-java7-installer
after completed you can check java version using this command,
java -version
the latest version for now is,
java version "1.7.0_21"
I hope now you can control you Zekr audio player volume up or down without error.
No comments:
Post a Comment