LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Linux mint 9. How do I activate sounds from a .jar folder? (http://www.linuxquestions.org/questions/linux-software-2/linux-mint-9-how-do-i-activate-sounds-from-a-jar-folder-832302/)

Robert67 09-15-2010 07:50 AM

Linux mint 9. How do I activate sounds from a .jar folder?
 
Hello to everyone, I hope someone can help me with my small problem. I have been using Linux Mint 9 for one week and I am very happy with it. However I am having problems with a .jar folder. I downloaded Wordbiz, the scrabble software and I made the relevant file executable and opened it with Sun Java 6. The software opened perfectly and operates well apart from the sounds. There is a folder containing the sound files and I don't have a clue how to incorporate those files into the software, in other words I want the software to have sounds. Can anyone help me please? The sounds are quite important as they are alerts. Thanks in advance.

tredegar 09-15-2010 11:28 AM

I suspect there is nothing wrong with your sound files.

Can other programs make sounds?

Have you tried opening up your soundmixer (often alsamixer, in a terminal, but I have not tried Mint), and turning up all the volume sliders?

Welcome to LQ!

Robert67 09-15-2010 01:01 PM

Quote:

Originally Posted by tredegar (Post 4098398)
I suspect there is nothing wrong with your sound files.

Can other programs make sounds?

Have you tried opening up your soundmixer (often alsamixer, in a terminal, but I have not tried Mint), and turning up all the volume sliders?

Welcome to LQ!



My sound equipment is working perfectly and all other installed programs make sounds. The Wordbiz folder comes with an executable file and a sounds file, the .jar executional file opens the software but I need to know how to incorporate the sounds as they're in a separate folder. Thanks.

John VV 09-15-2010 01:25 PM

is there a start up script to set the system paths ??
most of the time there is because the files in the jar are NOT in the system path
( i looked at the file -- add the location the your $PATH
but look for something that is new and current

a link to the program you installed would help

if it is this very old thing
http://www.isc.ro/
http://www.isc.ro/linux/download.html
the newest file i can find in it is from April 2005
and almost all of the jar is from 2002

have you tried installing a java install from 2005
it might work on the 5 year old jvm

it runs ? maybe -- i am not registered at the site so ...

Quote:

NOTE: If the program doesn't start when you try to run it you will need to install Microsoft Java VM.
that dates the program MS gave up that battle a few years ago and has people install sun's and NOT MS's version
also that download page was last updated on " Mon 18 Apr 2005 03:03:46 AM EDT"
5 years ago

Robert67 09-16-2010 06:57 AM

Quote:

Originally Posted by John VV (Post 4098516)
is there a start up script to set the system paths ??
most of the time there is because the files in the jar are NOT in the system path
( i looked at the file -- add the location the your $PATH
but look for something that is new and current

a link to the program you installed would help

if it is this very old thing
http://www.isc.ro/
http://www.isc.ro/linux/download.html
the newest file i can find in it is from April 2005
and almost all of the jar is from 2002

have you tried installing a java install from 2005
it might work on the 5 year old jvm

it runs ? maybe -- i am not registered at the site so ...


that dates the program MS gave up that battle a few years ago and has people install sun's and NOT MS's version
also that download page was last updated on " Mon 18 Apr 2005 03:03:46 AM EDT"
5 years ago


Sorry I'm not sure what you mean by a system path and start up script, I've been using MS until a week ago so I'm very new to manual installation. Basically I just downloaded the Linux version of Wordbiz, executed the relevant file and opened it with Sun Java 6. I need to find how to associate the sounds folder with the executable file, there must be a way. I also downloaded the MS version and installed it in Wine but it wouldn't recognise Java on my system therefore it wouldn't open with Wine. Thanks for trying to help, I appreciate it.

MTK358 09-16-2010 07:09 AM

The system path is where all the executables are. When you type a command at the terminal it is searched for in the system path is you don't explicitly provide one. To see it, type "echo $PATH" at a terminal.

A startup script is a shell script run at startup. A shell script is kind of like a DOS batch file, except for the Unix shell (it's far more powerful).

John VV 09-16-2010 07:38 AM

what i was saying was

do you 100% NEED this very program

it is very old in linux terms and has not been updated in 5 years and may not work correctly in a current operating system ( OS )
the java it runs on is there fore 5 years out of date

did this java program ever run on MS windows 7 or vista or xp for you

do not even bother running any java JVM program in wine


java programs are MEANT TO RUN ON ANY AND ALL OS's they are os independent
-- rant --
except for old MS only java programs built with the MS ONLY tools made by MS for MS only
-- end rant --

you might want to do some reading on linux and some of the basics, you did not learn MS windows in 1 week
a good free online book , a bit old but the basics have not changed
http://rute.2038bug.com/rute.html.gz

a very good online tutorial
http://www.linux.org/lessons/
http://www.linux.org/lessons/beginner/index.html
some good how to's and information
http://www.tldp.org/index.html

MTK358 09-16-2010 07:40 AM

Just found out about this:

http://labor-liber.org/en/gnu-linux/introduction/

Robert67 09-18-2010 10:04 AM

Thanks
 
Thanks everyone for your help, much appreciated. I'll just use the software without sounds. Thanks again.

sbuttgereit 11-21-2010 01:54 PM

This fixes the problem for me using Ubuntu 10.10, should work elsewhere.
 
Hi--

Basically, the problem that you are seeing is due to 'paths'. The sound files are not in the JAR file that you execute, they are in the WordBiz/sound directory. The instructions on the ISC site, therefore, must be read very literally. From the command line, you must change directory to the WordBiz directory (i.e.: cd /<path to WordBiz>/WordBiz) and then type: java -jar wordbiz.jar. If you do that, then you will have sound.

So I don't have to do that each time I wrote a small script that I called "start.sh" and I put it in the WordBiz directory alongside the wordbiz.jar file. That script does the necessary steps for me and allowed me to add an application launcher to the Gnome panel. The script was just 3 lines:
-----------------------
#!/bin/bash
cd <path to WordBiz>/WordBiz
java -jar wordbiz.jar
-----------------------

Make the script executable and run it... next thing you know you not only have the game, but with sounds as well.

Cheers,
SCB


All times are GMT -5. The time now is 05:29 AM.