Bug in Netbeans Java compiler?

I think Netbeans (or Java itself?) has a major flaw in its compiler design.
Explain to me why the following code is not compilable. Specifically, why it should complain about line 8:
cannot find symbol
symbol : variable Selected
When I clearly declared it a couple lines above it!
Now the fact that it was declared in an "If" clause is a lame excuse, because there is an unconditional Else clause which ALSO declares the same Object array. So either way, the Object array gets declared exactly ONCE. Not zero, not twice. In
EVERY SINGLE LOGICAL CASE.
So why was someone on crack when they designed Java/Netbeans? This is a BS error.
1     if (president.compareTo("Bush") == 0) {
2           Object Selected[] = listWarCriminals.getSelectedValues();
3       }
4       else {
5           Object Selected[] = listPresidents.getSelectedValues();
6       }
7
8       for (int n=0; n<Selected.length; n++) {
9           name = Selected[n].toString();
10          JOptionPane.showMessageDialog(frame, name, "Result", JOptionPane.INFORMATION_MESSAGE);
11      }

Please don't
[url=http://forum.java.sun.com/thread.jspa?threadID=51
76269&messageID=9681394#9681394]crosspost!Although for a topic this stupid it can't be bad to share the love.

Similar Messages

  • Bug in Oracle Java Compiler???

    Hello!
    I think I found a bug in OJC. Take a look in these files:
    ------ File MyInterface1.java -------
    public interface MyInterface1
    public void aMethod1();
    public void aMethod2();
    ------ File MyInterface2.java -------
    public interface MyInterface2 extends MyInterface1
    public void aMethod1(String s1);
    public void aMethod2(String s2);
    ------ File MyAbstractClass.java -------
    abstract public class MyAbstractClass implements MyInterface2
    public void aMethod1()
    ------ File MyImplClass.java -------
    public class MyImplClass extends MyAbstractClass
    public void aMethod2()
    public void aMethod1(String s)
    When compiling these files, the following error should be found:
    "javac MyImplClass.java
    MyImplClass.java:1: MyImplClass should be declared abstract; it does not define
    aMethod2(java.lang.String) in MyAbstractClass
    public class MyImplClass extends MyAbstractClass
    ^
    1 error"
    This is the error found by javac (J2SE 1.3), as expected.
    But when I compile using OJC 9.0.2.579 (JDeveloper 9.0.2.829) no error is found, and the compiler generates MyImplClass.class. This should not happen!!!
    Even if I implement aMethod2(String s) in MyImplClass, how can I trust that OJC is generating the bytecode, so that the method invocation is occuring correctly during runtime?
    I have a component library based on class hierarchy like the one in the example, and I would not like to modify it because of this possible bug in OJC.
    Thanks
    Gleber/Daniel/Augusto

    Gleber,
    As per current plans the 903 release is expected to be on OTN in the next 5-7 weeks. Feel free to ping me at [email protected] if this bug is preventing you from moving forward. I'll try to resolve your issue with a workaround.
    Regards,
    Arun

  • Bug in the JIT compiler?

    Hi All,
    I don't know if I have found a bug in the JIT compiler.
    uname -a : Linux kiloo-server2 2.6.26-2-amd64 #1 SMP Fri Mar 27 04:02:59 UTC 2009 x86_64 GNU/Linux
    java -version:
    java version "1.6.0_12";
    Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
    Java HotSpot(TM) 64-Bit Server VM (build 11.2-b01, mixed mode)
    all in our server module runs fine, until we try to rescale/transform an Image from a rss feed. after this a CompilerThread0 is started and never stops.
    it just keeps running at 100% on core0
    so right now we are running our server module with the -Xint option.. this is of course not an ideal solution.
    Before we moved the server module to linux, it was running on a windows machine (the same code), and there was no JIT compilerthreads problems.
    Is there anybody who has experienced anything like this, and is there a workaround to it?
    BR
    Kristian

    Kristian_Iversen wrote:
    Hi All,
    I don't know if I have found a bug in the JIT compiler.To start with you would need to reduce the code from your "server module" to a very small piece of code that demonstrates the problem.

  • Ridiculous bug in oracle jdeveloper compiler ojc with jdk1.4

    With simple class:
    public class Test
    public Test()
    public String toString()
    return null;
    public static void main(String[] args) throws Exception
    Test test = new Test();
    System.out.println("ooo" + test);
    After compile it with ojc (ojc Test.java) and run it with jdk 1.4.1_01 (java Test), it throws
    java.lang.NullPointerException
    at java.lang.String.concat(String.java:1541)
    But it works ok if compile it with standard java compiler(javac).

    Hi,
    Thanks for reporting this. It's a bug. I've logged it as 2809860, and you can track this on metalink.oracle.com.
    Brian
    JDev Team

  • Microsoft Access, Netbeans & Java... Strange IO runtime error.

    Hello, Im using java to interface an Access database. From Netbeans, everything compiles, and runs perfectly. However, when I build the project and run the jar, it cant find the database.
    I diagnosed it and found that it it is something to do with the second line below:
    try{
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                filename = System.getProperty("user.dir") + "/test.mdb";
                //filename = "c:/test.mdb";
                String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=" + filename;
                Connection conn = DriverManager.getConnection( database , "","");
                statement = conn.createStatement();
                System.out.println("Connected...ok");
                System.err.println(filename);
            } catch (Exception e) {
                System.err.println("Got a connection Problem!");
                JOptionPane.showMessageDialog(this, "Got a connection Problem!", "Got a connection Problem!", JOptionPane.ERROR_MESSAGE);
                System.err.println(e.getMessage());
            }How can i fix this?
    Thanks, Ant...

    Probably you have not placed your test.mdb file in your System.getProperty("user.dir") directory. For solve this problem first place this line JOptionPane.showMessageDialog(new JFrame(),System.getProperty("user.dir")); and run the jar as you do privous then you will find where the path is pointing then place the mdb file there

  • Constants with Java Compiler ?

    When recompiling java files which contains CONSTANTS, I mean static final variables,
    I should also recompile the classes from
    which these constants are referred to. Otherwise
    I get buggy results. Is this an aimed result of
    Java or a bug of Java, I wonder ?

    my statement is TRUE also if the member is not declared as "final". When a Java Compiler do work,
    it replaces "REFERENCES TO MEMBERS ASSIGNED CONSTANT VALUES" with their compile-time assigned values. Thus,
    --------- here is A.java ----------
    public class A {
    public static void main(String [] str) {
    System.out.println(""+ b.b);
    ---- here is B.java --------------
    public class B {
    static final int b = 10;
    after producing A.class and B.class , if reproduce
    B.class to have member b = 20 then,
    java A
    is gonna print out 10, so not displaying the real value ??
    I think One class' compilation should not be dependent
    to others classes' compilation. It seems to be a BUG of Java ? Does'nt ?
    When recompiling java files which containsCONSTANTS,
    I mean static final variables,
    I should also recompile the classes from
    which these constants are referred to. Otherwise
    I get buggy results. Is this an aimed result of
    Java or a bug of Java, I wonder ?static final int number = 3;
    MyClass.number will be parsed to 3, since it's
    guaranteed not to change unless you of course modify
    the source.

  • Tomcat/Java Compiler crash

    The following issue is running on a HP/UX 11i V2 Itanium Superdome server.
    We have a vendor application being deployed with Tomcat. The versions of Tomcat and java are:
    Tomcat is 5.0.28 (required by vendor)
    java is 1.4.2.10 (required by vendor)
    Tomcat is randomly crashing with the following:
    SIGSEGV 11* segmentation violation
    si_signo [11]: SIGSEGV 11* segmentation violation
    si_errno [0]: Error 0
    si_code [2]: SEGV_ACCERR [addr: 0xc00]
    Aborting...
    Unexpected Signal : 11 occurred at PC=0xC56EF780
    Function=_ZN7RegMask3ANDERKS_
    Compiler thread crashed while compiling a method!
    Compiled method class=ibi.broker.util.RCDES
    Compiled method name=getStringFromHexString
    Compiled method signature=(Ljava/lang/String;)Ljava/lang/String;
    Library=/opt/java1.4/jre/lib/IA64N/server/libjvm.so
    Current Java thread:
    "CompilerThread0" daemon prio=7 tid=00064c50 nid=9 lwp_id=3017 runnable [0x00000
    000..0x6a4001f8]
    This is a problem with java compiling a method out of a class/jar file, correct? So, I added the following directive in the catalina.sh file for the JAVA_OPTS:
    -XX:CompileCommand= exclude,ibi/broker/util/RCDES,getStringFromHexString
    This should prevent the suspect method from getting compiled. And it does. The catalina.out file has
    ### Excluding compile: ibi.broker.util.RCDES::getStringFromHexString
    which verifies this.
    Well, then vendor thinks this is a problem with either Tomcat or Java.
    So, does anyone think this is really a Tomcat or Java problem or a problem with the vendors method? I was able to find the jar file with the class file that contains this method. Since this is in a class file, is there a way to manually compile this method to see if I can reproduce the problem?

    The JVM should never segfault. Unless you are using JNI it shouldn't be possible to write code that causes this sort of behaviour.
    So when you see a segfault it usually boils down to (in no particular order) one of:
    1. Hardware problem
    2. JNI (mis)use
    3. JVM bug.
    Check with the vendor to see if their app includes any JNI logic. If not, try it on known good hardware. If it still falls over, raise a bug with Sun.

  • Java Compiler gives "Runtime" Exception, hahaha

    What wrong with it. Some Java compiler versions give error, others may not but I am not sure what is the maximum no. of dimensions a java array can take. The compiler, while compiling, threw an exception and requested to report the bug at java site,, haha
    String [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][] myArray;
    Regards,
    Tayra Keya Banay Ga Kaalia

    Yes, you are right. It throws an Stack Overflow exception, but... WILL EVER SOMEONE NEED AN ARRAY THAT LONG?. Maybe the developer make their languages to some "reasonable" limits.
    CLOPHER.

  • How to find the version number of Java compiler used

    Is there a simple programatical way to extract what version of Java compiler was used to create a certain class file (the byte code) from within the program?
    Actually, by checking the file is ok too.

    Thanks for the program. I've run it and I got 1.4.2as
    an output.
    Can I assume I'me using SDK 1.4.2 through netBeansIDE
    3.5.1 (which it came with bundled)?if you would remove J2SDK 1.4.0, then you could be
    sure that your netbeans is NOT using it anymore...
    howevere, you could also set some settings inside
    netbean, and voila... you could set it to use
    whichever sdk version you want...
    but if you are not sure which one of these it
    currently uses, then i assume that it is sdk 1.4.0,
    because i have no reason to believe othervise.This is from my old AUTOEXEC.BAT:
    SET CLASSPATH=.
    SET PATH=C:\j2sdk1.4.0_01\bin
    I installed netBeans IDE 3.5.1 a few weeks ago, but did not change my AUTOEXEC.BAT file for a while.
    Then I changed AUTOEXEC file to the following:
    SET CLASSPATH=.
    SET PATH=C:\Program Files\j2sdk_nb\j2sdk1.4.2\bin
    IDE kept working, but DOS stopped recognizing javac command.
    After getting suggestions from some people here, I changed the AUTOEXEC to:
    SET CLASSPATH=.
    SET PATH=C:\Progra~1\j2sdk_nb\j2sdk1.4.2\bin
    IDE still works, and I can compile from DOS now.
    SDK 1.4.2 must have been installed (or at least unpacked) by IDE 3.5.1.
    Does anybody know how to change settings on IDE 3.5.1 to make it use whichever SDK I want to try?

  • Web Based Java Compiler

    Hello,
    I am doing Java programming at Bournemouth University and find it a real pain when half of the computers there only have the JRE and no J2SDK, for this reason I set work on a web front end for the JDK. Its quite probable that I will get hosting at the university on one of their servers but I also have my own which i have made public.
    http://wcc.ath.cx/wjc
    Just make a new account (simply username and password) and you can get started. Hopefully someone will find this useful.
    any comments / suggestions welcome [email protected]
    regards,
    Karsten Pedersen
    Edit: C++ version also up http://wcc.ath.cx/wcc

    Looking at what you have done from the username I can suggest that you did not add .java to the end of the test source file. I failed to catch this error before I uploaded the first version of the web compiler, in the C++ one I made I checked the output log looking for the username + password string and removed it from the text but I overlooked this one in the java compiler because I failed to produce this bug. This will be fixed. The whole reason username/password/source is made is so that the username and password from the Session["UserPath"] can get you to the right directory. Please also be aware that no other users can see your password.
    Cheers for the help!
    Edit: Added the filtering so the above error should not occur, also added automatic .java extension to java version of compiler. C++ version http://wcc.ath.cx/wcc also running
    Edited by: g7878444 on Dec 27, 2007 2:50 PM

  • Run time java compiler

    Last year I researched oracle spatial technology and created prototype using oracle 9i, standalone oc4j. In order to start oc4j, i had to download java 1.4.2 from sun site. everything worked fine.
    Now I am expanding on the prototype on different machine but am using oracle 10g. I followed the same steps (installed 10g, oc4j, downloaded j2se 1.4.2 and installed). When I start oc4j by following command
    java -jar oc4j.jar, I get
    error message stating Error loading package at file:/E:/oracle_downloads/oc4j/j2ee/home/applications/admin_ejb.jar, javac.exe no
    t found under F:\oracle\product\10.1.0\db_1\jre\1.4.2, please use a valid jdk or
    specify the location of your java compiler in server.xml using the <java-compil
    er .../> tag.
    I am not sure how do I specify location of java compiler in server.xml file sysntactically. I do not not recall this step with oracle 9i.
    I edited server.xml and http-wev-site.xml as per instructions in my spatial class for mapviewer application but I need help on how to enter the location of java compiler file in server.xml file.
    Thank you

    You cannot use the JRE java to start oc4j. Must install a complete 1.4.2 J2SDK (not JRE) then use the java binary under its bin directory to start oc4j (not the one under jre/bin directory).
    lj

  • How to run a java program without Java Compiler

    I have a small project and I want share it with my friends but my friend'pc have not
    Java compiler.
    for example, I writen a application like YM, then 2cp can sent,receive messege. My cumputer run as Server, and my frien PC run as client.
    How can my friend run it? or how to create an icon in dektop tu run a java program..??..
    (sorry about my English but U still understand what i mean (:-:)) )

    To run a program you don't need a Java compiler. Just the Java Runtime Engine. That can be downloaded from the Sun website and comes with an installer.
    You could then turn your application into an executable jar file and start it somehow like jar myYM.
    There is also software that packs a Java program into an executable file. I've never used that but one that comes to my mind is JexePack. It's for free if you can live with a copyright message popping up every time you start the program.
    http://www.duckware.com/jexepack/index.html

  • BUG in WLE IDL compiler

    Hi,
    I want to report a bug in the WLE5.0 IDL compiler. It occurs in the
    generated stub, skeleton and implementation files (*c,*s and _i)
    files. Here is a description of the problem:
    Say we have the following IDL:
    Filename:filewithmoduleM1.idl
    module M1 {
    #include "BoundaryClasses\CORBA\Types\M1Complex.idl"
    interfaceService {
    boolean method1 (
    interface Factory {
    Service findService ();
    The IDL compiler loses track of the Module M1 and does not scope the
    interfaces inside the module. Henck even if we register a factory called
    APSBalReporting::Factory it is registered as Factory. The problem gets
    more interesting if we have another module that includes the first as
    shown below:
    Filename:filewithmoduleM2.idl
    #include filewithmoduleM1.idl
    module M2 {
    #include "BoundaryClasses\CORBA\Types\M1Complex.idl"
    interface Service {
    boolean method2 (
    interface Factory {
    Service findService ();
    Here it thinks that Service and Factory are the ones for module M1 and
    so generates the return type as M1::Factory and M1::Service instead of
    M2::Factory and M2::Service.
    The IDL compiler used to work fine with code such as the above
    previously.
    Please let me know if you have any feedback for this bug and if any of
    you have tried it.
    Thanks,
    Raman Ramesh
    678-358-3581
    mailto:[email protected]
    www.cicube.com

    BEA customers who need this problem corrected must use WLE 5.1. A patch to WLE 5.0
    or WLE 5.0.1 is not available.
    Wendell MacKenzie wrote:
    We received a patch that fixed this problem under WLE 5.01. There were problems
    back porting the fix into the 5.0 release. Talk to Tom Hegadorn.
    Mary Ann Slavin wrote:
    Actually that is Clarify CASE 162819 not a Clarify CR number. That particular
    problem has been corrected in WLE 5.1. This problem cannot be patched in WLE
    5.0.1, so if you have encountered this problem, you should upgrade to WLE 5.1
    and it is corrected as part of the base product, no patch required.
    MAS
    Wendell MacKenzie wrote:
    You have 2 choices:
    - upgrade to Version 5.1 (which includes CR162819)
    - obtain the patch from BEA support for CR162819 to fix a bug in the IDL
    compiler
    that caused Module and Interface scope names to work incorrectly. Also,
    where
    nesting of IDL #includes exceeded 1 level deep, this caused problems.
    You will have to install the patch onto version 5.01.
    Regards,
    Wendell MacKenzie
    Ram Ramesh wrote:
    Hi,
    I want to report a bug in the WLE5.0 IDL compiler. It occurs in the
    generated stub, skeleton and implementation files (*c,*s and _i)
    files. Here is a description of the problem:
    Say we have the following IDL:
    Filename:filewithmoduleM1.idl
    module M1 {
    #include "BoundaryClasses\CORBA\Types\M1Complex.idl"
    interfaceService {
    boolean method1 (
    interface Factory {
    Service findService ();
    The IDL compiler loses track of the Module M1 and does not scope the
    interfaces inside the module. Henck even if we register a factory called
    APSBalReporting::Factory it is registered as Factory. The problem gets
    more interesting if we have another module that includes the first as
    shown below:
    Filename:filewithmoduleM2.idl
    #include filewithmoduleM1.idl
    module M2 {
    #include "BoundaryClasses\CORBA\Types\M1Complex.idl"
    interface Service {
    boolean method2 (
    interface Factory {
    Service findService ();
    Here it thinks that Service and Factory are the ones for module M1 and
    so generates the return type as M1::Factory and M1::Service instead of
    M2::Factory and M2::Service.
    The IDL compiler used to work fine with code such as the above
    previously.
    Please let me know if you have any feedback for this bug and if any of
    you have tried it.
    Thanks,
    Raman Ramesh
    678-358-3581
    mailto:[email protected]
    www.cicube.com

  • Javax.sound missing with Fedora Core 3 linux's java compiler?

    I'm running Fedora core 3, and I did a complete install(selected all the packeges). I have the java compiler that FC3 installed. I can compile most things, but I seem to be missing the sound package/folder.
    This leads to an error when I try to import the sound libraries.
    //start code
    //simple non-working example
    import javax.sound.*;
    class sounds
    //end code
    results in the error "The import javax.sound cannot be resolved"
    I am trying to run a code snippet from javaAlmanac, and of course it won't work. Today, a friend of mine had the exact same problem on a windows machine using JDK 1.5.
    I'm going to test this code out on a windows machine also.
    Are there issues with the FC3 java compiler?
    Has anyone else run into and solved this issue?
    I'm considering copying the sound folder from some other Java installation, anyone try this?
    Thanks,

    I'm pretty new at this myself. I've also installed Fedora Core 3 on an AMD 64. When I do the same uname - a I get:
    Linux localhost.localdomain 2.6.9-1.667 #1 Tue Nov 2 14:50:10 EST 2004 x86_64 x8 6_64 x86_64 GNU/Linux
    Maybe you didn't install as 64 bit ?
    I've also successfully installed Jave Runtime Environment. java -version gets me:
    java version "1.4.2_08"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
    Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
    I'd suggest installing 32 bit. I can't tell the difference when I run programmes that use 64 or 32 bits - it will be just as good.
    Eurostar

  • Java Compiler API Status?

    Does anyone know what the current status of JSR 199: Java Compiler API is?
    (http://www.jcp.org/en/jsr/detail?id=199)
    To me it seems the inclusion in JDK 1.5 was silently dropped. I have not found the smallest bit of information, though.

    JSR199 is in suspended animation. For Tiger, we're
    merely documenting the com.sun.tools.javac.Main entry
    point.Hi,
    where could this documentation be found?
    Regards
    Richard

Maybe you are looking for