Re: unable to import javax.sound.midi even after installing jmf




SlowLearner wrote:
Andrew Thompson wrote:
SlowLearner wrote:
I've installed jmf 2.

2.1.1 e?

...There's only one copy of the jre on my harddisk
and jmf has added it's jmf.jar etc files into that jre (inside sdk)

Let's (try to) get clear - is this a JRE, or an SDK?
What version? ...

...as
well as placing itself in it's own program files directory;
It's added the correct classpath to the classpath variable to reach
jmf.jar etc but I still cannot import javax.sound.midi.

...The reason I ask is that despite the sound
packages coming in the JMF, they were also
included in core Java as of 1.3 (at least, that
is what I understand, and if that is not correct,
I put the wrong thing here
<http://www.javasaver.com/testjs/jmf/#test3>!).

So, it amazes me that you did not have
access to the sound packages even
before installing the JMF.

Unless you are using a 1.2 or 1.1 SDK...

....It says
javax.sound doesn't exist. When my ide

'my ide'.. that is not a brand I am familiar with.
It might pay to be a little more specific about the
IDE and its version..

...starts up you can see it
unpacking jmf.jar

That matches no IDE I know of..

What IDE? What version? Have you
managed to compile any java code in
"my ide" on this PC with the installed
JRE/SDK?

Any Suggestions

Provide more details - as prompted by
questions above, plus whatever else
you can think might be relevant.

(Oh, but I did just remember, sound.jar does
come *separately* to jmf.jar..)

Andrew T.

jmf version = 2.1.1 e
ide=Java Studio Enterprise 8
jdk = 1.5.0.04
yes I have compiled and run java code in the ide. It still compiles now
if I take out the import statment. I'm new to Java and objects etc, so
I realise I'm probabley doing something really basic wrong, but just
cant figure out what. Thanks for replying so fast. I'll remember to
give more detail from now on.

Does this infomation help at all, any suggestions?

Martin

Ok I've noticed very few people mention Java Studio Enterprise IDE so
I've reinstalled everything on my laptop starting with a formatted
harddisk. This time I've installed NetBeans5.5 Bundeld with jdk
1.5.0.09
jre 1.5.0_09 has installed itself presumabley with the bundled NetBeans

But I still cannot import javax.sound.midi;

My code is extremley simple


package helloworldapp;
import javax.sound.midi; // package javax.sound does not exist error
here
import java.awt.*;

public class HelloWorldApp {


public HelloWorldApp() {
}

public static void main(String[] args) {
System.out.println("Hello World!");
}

}

Any suggestions now I'm using a well known ide?

.



Relevant Pages

  • Re: unable to import javax.sound.midi even after installing jmf
    ... and jmf has added it's jmf.jar etc files into that jre ... Let's get clear - is this a JRE, or an SDK? ... When my ide ...
    (comp.lang.java.programmer)
  • Re: Trying to get started
    ... I went to the Command box and typed javac HelloWorldApp.java ... The JDK includes the JRE, but no harm done downloading the JRE. ... Assuming you want Java, there's nothing wrong with using the command line as you are doing, but it's kinda impractical in the long run. ... A good IDE will make your life much easier. ...
    (comp.lang.java.programmer)
  • Re: Java-Rauschen (war: Re: Getter & Setter)
    ... also stimmst du mir zu dass Java ohne IDE schlecht nutzbar ist? ... Nun mal abgesehen dass man APIs nicht mehr lernt, sondern sich einfach auf Codecompletion verlässt und dabei Hilfsklassen vollkommen ignoriert, ... Oder wenn der Grad des Rauschen so unterschiedlich ist? ...
    (de.comp.lang.java)
  • Re: Java-Rauschen (war: Re: Getter & Setter)
    ... welche Perspektive hatten denn die Leute, die Java entworfen haben? ... Aber gehe ich recht in der Annahme dass du dann sagst, dass Java erst durch eine IDE "richtig gut" wird?... ... Ich sehe es allerdings für eine textbasierte Programmiersprache als Nachteil an, wenn sie aufgrund der "Umständlichkeit" der Sprache ohne IDE kaum nutzbar ist. ...
    (de.comp.lang.java)
  • Java-Rauschen (war: Re: Getter & Setter)
    ... aber bei HTML ist nicht so sehr der Source als viel mehr das was im Browser angezeigt wird wichtig. ... Ich finde, eine interessantere Frage ist, warum man ueberhaupt gegen eine IDE ist. ... Nur hängt das mit einer bestimmten Menge an Code zusammen und die erreicht man bei Java schneller als bei zum Beispiel Ruby. ... Ich sehe es allerdings für eine textbasierte Programmiersprache als Nachteil an, wenn sie aufgrund der "Umständlichkeit" der Sprache ohne IDE kaum nutzbar ist. ...
    (de.comp.lang.java)