Please i need help with sound application! please?

hey there people heres the deal I need to complete this before 5 today but im completely stumped...we have to make a sound file player with a swing interface I have it playing(kind of!) but where now...I would be forever in your debt as my masters degree hangs in the balance! de de duhhhh! cheers
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.io.*;
import javax.swing.event.*;
import java.io.File;
import java.io.IOException;
import javax.sound.sampled.*;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import javax.sound.sampled.DataLine;
import javax.sound.sampled.LineEvent;
import javax.sound.sampled.LineListener;
import javax.sound.sampled.LineUnavailableException;
public class AudioPlayer extends JFrame implements ActionListener, ChangeListener{
boolean playing;
boolean looping;
String filename = File.separator+"tmp";
File selFile;
Clip clip;
JFileChooser fc = new JFileChooser();
JButton btnOpen = new JButton("Open");
JButton btnPlay = new JButton("Play");
JButton btnStop = new JButton("Stop");
JButton btnPause = new JButton("Pause");
JButton btnLoop = new JButton("Loop");
JSlider volume = new JSlider(SwingConstants.HORIZONTAL,0,100,0);
JSlider panning = new JSlider(SwingConstants.HORIZONTAL,0,100,0);
public AudioPlayer(){
Container contentPane = getContentPane();
contentPane.setLayout(new FlowLayout());
contentPane.add(btnOpen);btnPlay.addActionListener(this);
contentPane.add(btnPlay);btnPlay.addActionListener(this);
contentPane.add(btnStop);btnStop.addActionListener(this);
contentPane.add(btnPause);btnPause.addActionListener(this);
contentPane.add(btnLoop);btnLoop.addActionListener(this);
// Show open dialog; this method does not return until the dialog is closed
fc.showOpenDialog(this);
selFile = fc.getSelectedFile();
volume.addChangeListener(this);
panning.addChangeListener(this);
volume.putClientProperty("JSlider.isFilled", Boolean.TRUE);
volume.setPaintTicks(true);volume.setPaintLabels(true);
volume.setMajorTickSpacing(20);volume.setMinorTickSpacing(10);
contentPane.add(volume);
panning.putClientProperty("JSlider.isFilled", Boolean.TRUE);
panning.setPaintTicks(true);panning.setPaintLabels(true);
panning.setMajorTickSpacing(20);panning.setMinorTickSpacing(10);
contentPane.add(panning);
addWindowListener(
new WindowAdapter () {
public void windowClosing(WindowEvent e){
setVisible(false);
public void actionPerformed(ActionEvent e){
int returnVal = JFileChooser.APPROVE_OPTION;
//Handle open file action.
if (e.getSource() == btnOpen)
System.out.println("FA1");
returnVal = fc.showOpenDialog(AudioPlayer.this);
if (returnVal == JFileChooser.APPROVE_OPTION)
{ selFile = fc.getSelectedFile();
//This is where a real application would open the file.
else
if(e.getSource() == btnPlay)
playAudio();
public void stateChanged(ChangeEvent e)
public static void main(String[] args)
AudioPlayer audioPlayer = new AudioPlayer();
audioPlayer.setSize(400,400);
audioPlayer.show();
public void playAudio ()
playing = true;
AudioInputStream audiosource = null;
try
audiosource = AudioSystem.getAudioInputStream(selFile);
System.out.println("here");
//System.out.println(audiosource.getFormat());
DataLine.Info dataLineInfo = new DataLine.Info(Clip.class,audiosource.getFormat());
clip = (Clip)AudioSystem.getLine(dataLineInfo);
clip.open(audiosource);
catch (UnsupportedAudioFileException e)
catch (LineUnavailableException e)
catch (IOException e)
//catch (Exception e) {}
if (looping)
clip.loop(clip.LOOP_CONTINUOUSLY);
else
clip.loop(0);
playing = false;
}

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.io.*;
import javax.swing.event.*;
import javax.sound.sampled.*;
* Description of the Class
*@author rsmazara
*@created 28 February 2003
public class AudioPlayer extends JFrame implements ActionListener, ChangeListener {
File selFile;
JFileChooser fc = new JFileChooser();
JButton btnOpen = new JButton( "Open" );
JButton btnPlay = new JButton( "Play >" );
JButton btnStop = new JButton( "Stop" );
JButton btnPause = new JButton( "Pause ||" );
JCheckBox btnLoop = new JCheckBox( "Loop" );
JSlider volume = new JSlider( SwingConstants.HORIZONTAL, 0, 100, 0 );
JSlider panning = new JSlider( SwingConstants.HORIZONTAL, 0, 100, 0 );
JLabel label = new JLabel( " " );
public AudioPlayer() {
Container contentPane = getContentPane();
contentPane.setLayout( new FlowLayout() );
btnOpen.addActionListener( this );
contentPane.add( btnOpen );
btnPlay.addActionListener( this );
contentPane.add( btnPlay );
btnPlay.addActionListener( this );
contentPane.add( btnStop );
btnStop.addActionListener( this );
contentPane.add( btnPause );
btnPause.addActionListener( this );
contentPane.add( btnLoop );
btnLoop.addActionListener( this );
btnPlay.setEnabled( false );
btnStop.setEnabled( false );
btnPause.setEnabled( false );
// Show open dialog; this method does not return until the dialog is closed
// fc.showOpenDialog( this );
// selFile = fc.getSelectedFile();
volume.addChangeListener( this );
panning.addChangeListener( this );
volume.putClientProperty( "JSlider.isFilled", Boolean.TRUE );
volume.setPaintTicks( true );
volume.setPaintLabels( true );
volume.setMajorTickSpacing( 20 );
volume.setMinorTickSpacing( 10 );
contentPane.add( volume );
panning.putClientProperty( "JSlider.isFilled", Boolean.TRUE );
panning.setPaintTicks( true );
panning.setPaintLabels( true );
panning.setMajorTickSpacing( 20 );
panning.setMinorTickSpacing( 10 );
contentPane.add( panning );
contentPane.add( label );
addWindowListener(
new WindowAdapter() {
public void windowClosing( WindowEvent e ) {
setVisible( false );
System.exit( -100 );
public void actionPerformed( ActionEvent e ) {
int returnVal = JFileChooser.APPROVE_OPTION;
//Handle open file action.
System.out.println( e.getActionCommand() );
///open
if ( e.getSource() == btnOpen ) {
System.out.println( "FA1" );
returnVal = fc.showOpenDialog( AudioPlayer.this );
if ( returnVal == JFileChooser.APPROVE_OPTION ) {
selFile = fc.getSelectedFile();
player = new Player( selFile );
label.setText( "File loaded : " + selFile.getAbsolutePath() );
btnPlay.setEnabled( true );
btnStop.setEnabled( false );
btnPause.setEnabled( false );
//This is where a real application would open the file.
} else {
//play
if ( e.getSource() == btnPlay ) {
player.go( btnLoop.isSelected() );
btnPlay.setEnabled( false );
btnStop.setEnabled( true );
btnPause.setEnabled( true );
// playAudio();
// pause
if ( e.getSource() == btnPause ) {
player.pause();
btnPlay.setEnabled( true );
btnStop.setEnabled( true );
btnPause.setEnabled( false );
if ( e.getSource() == btnStop ) {
player.finish();
btnPlay.setEnabled( true );
btnStop.setEnabled( false );
btnPause.setEnabled( false );
public void stateChanged( ChangeEvent e ) {
private Player player = null;
public static void main( String[] args ) {
AudioPlayer audioPlayer = new AudioPlayer();
audioPlayer.setSize( 400, 400 );
audioPlayer.show();
* Description of the Class
*@author rsmazara
*@created 28 February 2003
class Player {
Clip clip;
private java.io.File selectedFile = null;
private boolean looping = false;
public Player( File file ) {
selectedFile = file;
AudioInputStream audiosource = null;
try {
audiosource = AudioSystem.getAudioInputStream( selectedFile );
System.out.println( "here" );
//System.out.println(audiosource.getFormat());
DataLine.Info dataLineInfo = new DataLine.Info( Clip.class, audiosource.getFormat() );
clip = ( Clip ) AudioSystem.getLine( dataLineInfo );
clip.open( audiosource );
} catch ( UnsupportedAudioFileException e1 ) {
e1.printStackTrace();
} catch ( LineUnavailableException e2 ) {
e2.printStackTrace();
} catch ( IOException e3 ) {
e3.printStackTrace();
private boolean work = false;
public void go( boolean loop ) {
looping = loop;
playAudio();
public void finish() {
clip.stop();
public boolean isWorking() {
return clip.isRunning();
long pausePosition = ( long ) 0;
public void pause() {
pausePosition = clip.getMicrosecondPosition();
clip.stop();
public void restart() {
clip.setMicrosecondPosition( pausePosition );
playAudio();
public void loop( boolean loop ) {
looping = loop;
private void playAudio() {
if ( looping ) {
clip.loop( clip.LOOP_CONTINUOUSLY );
} else {
clip.loop( 0 );

Similar Messages

  • Please i need help with switch from the us store to malaysian store how i can switch

    Please i need help with switch from the us store to malaysian store how i can switch

    Click here and follow the instructions to change the iTunes Store country.
    (82303)

  • Need help with Sound Methods

    Hi, I am new to java and need help with sound methods.
    q: create a new method that will halve the volume of the positive values and double the volume of the negative values.
    Message was edited by:
    Apaula30

    duplicate message #2

  • Please I need help in upgrading applications

    Please I need help in upgrading my pdf-notes for ipad. it seemed like somebody hijacked my Apple ID, I had since solve the problem with Apple, I still have my original email address but I was unable to upgrade all applications I bought before my username was hijacked and pdf-notes is one of the applications. kindly advice me on what to do to upgrade.
    Thanks. Jimmy

    Okay Demo.  My theory is that accessing iCloud if apps were backed up to it can be redownload end then updated. I am thinking that with the new apple ID the iCloud account may only recognize the high jacked ID. I don't know if I made it clearer but I can do some digging. I don't like to see people using Apple devices having a tuff time. Not cool.

  • Please I need help with swf folders.

    Hi everybody,
    I install adobe flash and when i surf on the internet it is
    working. But I have a lot of swf flash folders stored in my disk c.
    When I go to open them It appears like adobe flash is not install
    in my disk to be able to open these files. I only can open this
    files with firefox or microsoft explorer. Adobe flash is only
    installed in my system and as i told you i am able to see all the
    flash folders which i find on the internet when I enter to any
    website with flash adobe folders. I installed and unistalled adobe
    flash several times. But this is not resolved.
    Please I need help.
    Many thanks

    Click here and follow the instructions to change the iTunes Store country.
    (82303)

  • I would need help with the following please: I need to save some of my email on a disk. I was going to Print, then Save PDF but then I am stuck. Help please. Thanks. Elisabeth

    I would need help with saving some eamil messages to a disk to unclutter my email. How can I do this please?
    Thanks.
    Elisabeth

    Open the email and then from the File menu select Save As Rich Text Format. That'll save it to open in TextEdit. If you want a pdf then open the email and do command-p (Print) and then from the PDF drop down box lower left corner select Save as PDF.

  • Need help with Portal Themes -- Please help

    I need help with Portal Themes.  I have read every document I can find but I am having no luck.  All I want to do is change the colors for the Exceptions on one of my queries.  I have created my own Portal Theme where I have changed the colors but I do not know how to assign my newly-created Portal Theme to my query.  Can someone please give me the detailed steps on how to do this? Please help because this is driving me crazy.
    Thanks.
    Ryan

    Hi,
    Refer
    Exceptions - How to change the colors
    This may help.
    Thanks,
    JituK

  • I need help with this script please ASAP

    So I need this to work properly, but when ran and the correct answer is chosen the app quits but when the wrong answer is chosen the app goes on to the next question. I need help with this ASAP, it is due tommorow. Thank you so much for the help if you can.
    The script (Sorry if it's a bit long):
    #------------Startup-------------
    display dialog "Social Studies Exchange Trviva Game by Justin Parzik" buttons {"Take the Quiz", "Cyaaaa"} default button 1
    set Lolz to (button returned of the result)
    if Lolz is "Cyaaaa" then
    killapp()
    else if Lolz is "Take the Quiz" then
              do shell script "say -v samantha Ok starting in 3…2…1…GO!"
    #------------Question 1-----------
              display dialog "Around age 11, many boys left their fathers to become…" buttons {"Scholars", "Warriors", "Apprentices"}
              set A1 to (button returned of the result)
              if A1 is "Apprentices" then
                        do shell script "say -v samantha Correct Answer"
              else
                        do shell script "say -v samantha Wrong Answer"
      #----------Question 2--------
                        display dialog "Most children were taught
    to read so that they could understand the…" buttons {"Music of Mozart", "Bible", "art of cooking"}
                        set A2 to (button returned of the result)
                        if A2 is "Bible" then
                                  do shell script "say -v samantha Correct Answer"
                        else
                                  do shell script "say -v samantha Wrong Answer"
      #------------Question 3---------
                                  display dialog "In the 1730s and 1740s, a religious movement called the_______swept through the colonies." buttons {"Glorius Revolution", "Great Awakening", "The Enlightenment"}
                                  set A3 to (button returned of the result)
                                  if A3 is "Great Awakening" then
                                            do shell script "say -v samantha Correct Answer"
                                  else
                                            do shell script "say -v samantha Wrong Answer"
      #-----------Question 4--------
                                            display dialog "_______ was
    a famous American Enlightenment figure." buttons {"Ben Franklin", "George Washington", "Jesus"}
                                            set A4 to (button returned of the result)
                                            if A4 is "Ben Franklin" then
                                                      do shell script "say -v samantha Correct Answer"
                                            else
                                                      do shell script "say -v samantha Wrong Answer"
      #----------Question 5-------
                                                      display dialog "______ ownership gave colonists political rights as well as prosperity." buttons {"Land", "Dog", "Slave"}
                                                      set A5 to (button returned of the result)
                                                      if A5 is "Land" then
                                                                do shell script "say -v samantha Correct Answer"
                                                      else
                                                                do shell script "say -v samantha Wrong Answer"
      #---------Question 6--------
                                                                display dialog "The first step toward guaranteeing these rights came in 1215. That
    year, a group of English noblemen forced King John to accept the…" buttons {"Declaration of Independence", "Magna Carta", "Constitution"}
                                                                set A6 to (button returned of the result)
                                                                if A6 is "Magna Carta" then
                                                                          do shell script "say -v samantha Correct Answer"
                                                                else
                                                                          do shell script "say -v samantha Wrong Answer"
      #----------Question 7--------
                                                                          display dialog "England's cheif lawmaking body was" buttons {"the Senate", "Parliament", "King George"}
                                                                          set A7 to (button returned of the result)
                                                                          if A7 is "Parliament" then
                                                                                    do shell script "say -v samantha Correct Answer"
                                                                          else
                                                                                    do shell script "say -v samantha Wrong Answer"
      #--------Question 8-----
                                                                                    display dialog "Pariliament decided to overthrow _______ for not respecting their rights" buttons {"King James II", "King George", "King Elizabeth"}
                                                                                    set A8 to (button returned of the result)
                                                                                    if A8 is "King James II" then
                                                                                              do shell script "say -v samantha Correct Answer"
                                                                                    else
                                                                                              do shell script "say -v samantha Wrong Answer"
      #--------Question 9------
                                                                                              display dialog "Parliament named ___ and ___ as England's new monarchs in something called ____." buttons {"William/Mary/Glorius Revolution", "Adam/Eve/Great Awakening", "Johhny/Mr.Laphalm/Burning of the hand ceremony"}
                                                                                              set A9 to (button returned of the result)
                                                                                              if A9 is "William/Mary/Glorius Revolution" then
                                                                                                        do shell script "say -v samantha Correct Answer"
                                                                                              else
                                                                                                        do shell script "say -v samantha Wrong Answer"
      #---------Question 10-----
                                                                                                        display dialog "After accepting the throne William and Mary agreed in 1689 to uphold the English Bill of _____." buttons {"Money", "Colonies", "Rights"}
                                                                                                        set A10 to (button returned of the result)
                                                                                                        if A10 is "Rights" then
                                                                                                                  do shell script "say -v samantha Correct Answer"
                                                                                                        else
                                                                                                                  do shell script "say -v samantha Wrong Answer"
      #---------Question 11------
                                                                                                                  display dialog "By the late 1600s French explorers had claimed the ___ River Valey" buttons {"Mississippi", "Ohio", "Hudson"}
                                                                                                                  set A11 to (button returned of the result)
                                                                                                                  if A11 is "Ohio" then
                                                                                                                            do shell script "say -v samantha Correct Answer"
                                                                                                                  else
                                                                                                                            do shell script "say -v samantha Wrong Answer"
      #------Question 12---------
                                                                                                                            display dialog "______ was sent to ask the French to leave 'English Land'." buttons {"Johhny Tremain", "George Washington", "Paul Revere"}
                                                                                                                            set A12 to (button returned of the result)
                                                                                                                            if A12 is "George Washington" then
                                                                                                                                      do shell script "say -v samantha Correct Answer"
                                                                                                                            else
                                                                                                                                      do shell script "say -v samantha Wrong Answer"
      #---------Question 13-------
                                                                                                                                      display dialog "_____ proposed the Albany Plan of Union" buttons {"George Washingon", "Ben Franklin", "John Hancock"}
                                                                                                                                      set A13 to (button returned of the result)
                                                                                                                                      if A13 is "Ben Franklin" then
                                                                                                                                                do shell script "say -v samantha Correct Answer"
                                                                                                                                      else
                                                                                                                                                do shell script "say -v samantha Wrong Answer"
      #--------Question 14------
                                                                                                                                                display dialog "The __________ declared that England owned all of North America east of the Mississippi" buttons {"Proclomation of England", "Treaty of Paris", "Pontiac Treaty"}
                                                                                                                                                set A14 to (button returned of the result)
                                                                                                                                                if A14 is "" then
                                                                                                                                                          do shell script "say -v samantha Correct Answer"
                                                                                                                                                else
                                                                                                                                                          do shell script "say -v samantha Wrong Answer"
      #-------Question 15-------
                                                                                                                                                          display dialog "Braddock was sent to New England so he could ______" buttons {"Command an attack against French", "Scalp the French", "Kill the colonists"}
                                                                                                                                                          set A15 to (button returned of the result)
                                                                                                                                                          if A15 is "Command an attack against French" then
                                                                                                                                                                    do shell script "say -v samantha Correct Answer"
                                                                                                                                                          else
                                                                                                                                                                    do shell script "say -v samantha Wrong Answer"
      #------TheLolQuestion-----
                                                                                                                                                                    display dialog "____ is the name of the teacher who runs this class." buttons {"Mr.White", "Mr.John", "Paul Revere"} default button 1
                                                                                                                                                                    set LOOL to (button returned of the result)
                                                                                                                                                                    if LOOL is "Mr.White" then
                                                                                                                                                                              do shell script "say -v samantha Congratulations…you…have…common…sense"
                                                                                                                                                                    else
                                                                                                                                                                              do shell script "say -v alex Do…you…have…eyes?"
                                                                                                                                                                              #------END------
                                                                                                                                                                              display dialog "I hope you enjoyed the quiz!" buttons {"I did!", "It was horrible"}
                                                                                                                                                                              set endmenu to (button returned of the result)
                                                                                                                                                                              if endmenu is "I did!" then
                                                                                                                                                                                        do shell script "say -v samantha Your awesome"
                                                                                                                                                                              else
                                                                                                                                                                                        do shell script "say -v alex Go outside and run a lap"
                                                                                                                                                                              end if
                                                                                                                                                                    end if
                                                                                                                                                          end if
                                                                                                                                                end if
                                                                                                                                      end if
                                                                                                                            end if
                                                                                                                  end if
                                                                                                        end if
                                                                                              end if
                                                                                    end if
                                                                          end if
                                                                end if
                                                      end if
                                            end if
                                  end if
                        end if
              end if
    end if

    Use code such as:
    display dialog "Around age 11, many boys left their fathers to become…" buttons {"Scholars", "Warriors", "Apprentices"}
    set A1 to (button returned of the result)
    if A1 is "Apprentices" then
    do shell script "say -v samantha Correct Answer"
    else
    do shell script "say -v samantha Wrong Answer"
    return
    end if
    #----------Question 2--------
    display dialog "Most children were taught to read so that they could understand the…" buttons {"Music of Mozart", "Bible", "art of cooking"}
    set A2 to (button returned of the result)
    if A2 is "Bible" then
    do shell script "say -v samantha Correct Answer"
    else
    do shell script "say -v samantha Wrong Answer"
    return
    end if
    (90444)

  • Please I Need Help with nps

    Hi
    Please I need urgent Help !
    i make a backup for ( note + calendar ) my N70 Music With nokia pc suite V 6.83.14.1
    then  i Format my Mobile , But when i try to Restore The Backup File  i was made it, the computer Show me Only The calendar without the Note ( but the backup  file include both of note and calendar ) ,I mean i can only restore my calendar!!!!!
     please what i do to restore my Note??
    the Backup file is (nbu) format .
    Thanx A lot

    please ??? !!!

  • PLEASE I NEED HELP WITH MY 6800 GT IT DRIVING ME NUTS

    Please can anyone help i have a 6800 gt graphics card and it keeps crashing my pc every time i play a graphically intense game i get no error reports i have tried unistalling the driver and reistalling but it makes no difference i have checked the temp of the graphics card which runs about 60'c while playing and 50'c in idle the cpu temp is 40'c in idle and goes upto around 60 to 65'c when playing games so i cant see it being a heat problem please can anyone help or can anyone who has had this problem please tell me how they fixed it thanks for ur help
    cpu 3.0ghz p4
    mb=abit is7.es
    1.5gb of ram
    os=winxp pro sp2
    psu=450w

    Also please test RAM modules with Memtest found here Try each RAM module at a time and play game. If it still crahes I'd rule out memory competely. I don't think it very likey to be the problem though, that would usually restart the system.
    Could be a power supply problem, most likely.

  • Need help with case structures- please help :)

    Hey all.
    I'm currently trying to program a infrared furnace. I'm setting a temperature, subtracted my set temperature from the actual temperature (thermocouple hooked up to SCB-68), and voltage is being sent to the controller of the furnace accordingly. However, I need to hold the set temperature for a certain amount of time. I need help programming this: when the VI reads the set temperature from the thermocouple, it results in a timer running down. When the timer runs down to 0, the While Loop ends. I'm thinking case structures is most appropriate, but if you have a better suggestion, please let me know.
    Thanks

    You should probably implement a state machine.
    The state machine would keep track of the temperature and making ajustments on a timely basis.
    There is a template of a state machine is you select under the File menu > New > From Template.
    You can also look under Help > Find Example > and do a search for state machine.
    There are lots of state machine examples on this forum, some of which may be quite useful.
    RayR

  • NEED HELP with Sound Blaster 5.1 digital LIVE! IM FED UP WITH THIS PEICE OF JUNK SOUND C

    yes i installed the Sound Blaster 5. digital LIVE! into my system and i got a new updated installation cd from creative and everything .. now heres the problem everytime i try to do an upgrade or download stuff from creative i always get an error message sayin MY SOUND CARD IS NOT INSTALLED .. but everything on my computer says it is installed and working properly .. so what the hell is going on ??? im a first time buyer of creative products and i purchased this from word of mouth on how good it was and i tell you what this sound card is a peice of **bleep** ... i have never in my life had such a problem installing something .. well i cant even use diagnostics cause i get the same message " MY SOUND CARD IS NOT INSTALLED ... i have tried uninstalling everything and so for and still nuthing .. i get sound through it but i cannot access any of the features from the cd or upgrade any of the drivers or anything .. SOOOOOOOOOOOOOOOO WHAT AM I SUSPOSED TO DO ?? IM ALSO GOING AS FAR AS SENDING THIS BACK TO CREATIVE FOR A REPLACEMENT CAUSE THIS CARD HAS TO BE DEFECTIVE .........ANYONE WITH SOME ANSWERS PLEASE LET ME KNOW ?

    ok i found my directx program and opened it and did sound test and other tests and it says theres no problems found .
    so this leads me back to my problem i stll get the error message saying that MY SOUND CARD CANNOT BE DETECTED ON MY SYSTEM . PLEASE MAKE SURE YOU SOUND CARD IS PROPERLY INSTALLED ...
    i went to creative to do the autoupdate install so it would auto check my system and i get a error message saying theres components that are corrupted and it closes and does nuthing ..
    and everytime i try to do an update i get the no sound card error message so im back to square ,
    i have done everything i can possibly think of and also everything the techs told me to do nd this **bleep** still dont work and i still cant use any of the features that came on the disc (i.e.) diagnostics and others etc.etc.etc.
    my only conclusion is i have a deffecti've sound card ..........unless someone can think of a miracle fix i dont see anything else it could be
    Message Edited by theviper on -06-2005 :00 AM

  • HELPP PLEASE i need help solving this algorithm please!!

    Read the following algorithm for the recursive procedure called Mystery.
    MYSTERY(soFar, toGo)
    length = LEN(toGo)
    IF length = 1 THEN
    PRINT soFar & toGo
    ELSE
    FOR i = 1 to length
    MYSTERY(soFar & MID$ (toGo, i, 1),LEFT$(toGo, i � 1)
    & RIGHT$(toGo, length � i))
    NEXT i
    ENDIF
    END of procedure
    Where:
    LEN(aSTRING) returns the number of characters in the string held in aString,
    MID$(aString, n,m) returns m characters of aString starting at the nth,
    LEFT$(aString, n) returns the first n characters of aString,
    RIGHT$(aString, n) returns the last n characters of aString,
    & joins two strings together (concatenation).
    (a) Give the output if the procedure is called by
    MYSTERY('' '', ''RED'')
    (b) The function is called with
    MYSTERY('' '', ''AB'')
    Write down all the instructions, including procedure calls, in the order in which they are
    executed. You must show the values of the variables in each instruction.

    I'd to ask your tutor or classmates for help with homework.
    I don't see any relation with Java by the way.

  • Please need Help with web application deployment in Jdeveloper 12c

    Hi,
    I am desperate for help guys. am trying to deploy a web application in weblogic server, but nothing works!!
    I created a project in jdeveloper and created a jsp page inside the project, all what i want is to run that page!
    I followed the instruction here: Deploying Fusion Web Applications , I don't really know if i did it right or wrong, the document is too detailed and not understood clearly.
    I am a newbie oracle user, and trying to build jsp web application connected to oracle database. application deployment fails it says: cannot run application error deploying IntegratedWeblogic..
    please could you tell me the steps of application deployment in Jdeveloper 12c?
    what deployment profiles I need to create (ear, war , mar)?
    what deployment descriptor I need for my app to work?
    please guys I am newbie to oracle, if you could give me simplified answers and straight instructions it will be appreciated .
    thank you

    hi Timo,
    I am building a local web application, meaning the server is internal and will not connect to the web, only to local pcs via network. the application will insert/select data from the database server. My company wants to embed oracle technology on the datatabse and that what am trying to. I am not that expert in java and oracle in general, my main knowledge are in php, html and mysql programming. through my long internet research a lot has recommended jsp with html to be a good choice.
    At beginning I played around with ADF faces, I found it annoying because I prefer coding than using drag and drop interfaces, which always create unwanted results.
    Also am not that professional java programmer, i started learning jsp and found it easier.
    What I am thinking of is to make a web based application that works in browsers (like php), this application has forms to insert data, and also has forms to output data for printing. that's all. I tried to make it in php, but through my little knowledge and internet researches it seems php does not work with oracle and java is the recommended choice (or it works with php but too complicated to make it)
    any recommendation will be much appreciated
    thank you

  • This message always appears: [JavaScript Application] "Error: missing } after function body" Please, i need help with this.

    A window appears with this message : [JavaScript Applicaction] Error: missing } after function body.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

Maybe you are looking for