|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
It tells me that com.ms.win32 does not exist.
import java.com.ms.win32.*; import java.io.*; import javax.swing.JOptionPane; publicclass Cdopener { privatestatic String OPEN="set cdaudio door open"; privatestatic String CLOSE="set cdaudio door open"; privatestaticfinalint MAX_ERROR_SIZE=64; privatestatic StringBuffer sbreturn= new StringBuffer(MAX_ERROR_SIZE); publicstaticvoid main(String[]args) { String output; String[]buttons={"Yes","A Little","No","Hell No"}; output="Are you afraid of Ghosts?"; JOptionPane.showOptionDialog(null, output,"Ghosts",JOptionPane.PLAIN_MESSAGE,0,null,buttons,buttons[2]); output="What about know?"; JOptionPane.showMessageDialog(null,output,"Ghosts",JOptionPane.INFORMATION_MESSAGE); System.exit(0); } publicstaticvoid open() { Windows Media Player.mciSendString(OPEN,sbreturn,127,0); } publicstaticvoid close() { Winmp.mciSendString(CLOSE,sbreturn,127,0); }} |
|
#2
|
||||
|
||||
|
Have you verified that it exists in your class path? Could be as simple as moving a library into the right place.
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > Could anybody tell me whats wrong with this syntax for java. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|