Some JDK 1.5 features dont work in JDeveloper 10g (10.1.3) EA  IDE

for example, the following error message is produced when i try to compile code bellow :
Error(7,24): method range(client.Color, client.Color) not found in class java.util.EnumSet
this is what my code look like:
package client;
import java.util.EnumSet;
public class TestClass {
public static void main(String[] args) {
for( Color c : EnumSet.range(Color.GREEN, Color.BLUE) )
System.out.println( c );
and my Color enum that resides in a seperate file look like this....
package client;
public enum Color { RED, GREEN, BLUE }
thank you

following code still has 2 problems...
package mypackage;
import java.util.EnumSet;
public enum Color {RED, GREEN, BLUE, ;}
public class TestClass {   
public static void main(String[] args) {       
for (Color c : EnumSet.range(Color.GREEN, Color.BLUE))
System.out.println(c);
problems are:
1) enum Color is public so it can not reside in the same file
2) the line containing EnumSet.range method still don't compile
I soleved the 1st problem by making enum Color non-public & moving the enum to the inside of the TestClass but it still didn't help my original problem unable to compile the line containing EnumSet.range method.

Similar Messages

  • Some programs and video files dont work.

    Some programs and video files dont work, get a crash report everytime I close, even after an uninstall everything and re install.
    So I try playing some videos and it gives me an error, which I can watch on Chrome. Soundcloud doesnt seem to work, again works on chrome, and before I could watch WebM's but now it says not supported MME. Also everytime I close I get a crash reporter. I tried uninstalling and reinstalling but nothing seems to work. I just happened recently. Also cant play soundcloud. Tried everything, feeling like going to chrome where things work and support is actual support

    Protected mode works on some systems and not others. Since two of your four crash reports were related to Flash, I thought it was worth a try, but it's up to you whether you want to try it.
    I'm not sure whether the issue with WebM video is a setting issue or a program files issue or a system issue.
    '''Create a new Firefox profile'''
    A new profile will have your system-installed plugins (e.g., Flash) and extensions (e.g., security suite toolbars), but no themes, other extensions, or other customizations. It also should have completely fresh settings databases and a fresh cache folder.
    Exit Firefox and start up in the Profile Manager using Start > search box (or Run):
    firefox.exe -P
    Don't delete anything here. Any time you want to switch profiles, exit Firefox and return to this dialog.
    Click the Create Profile button, choose a name like TESTING, and skip the option to change the folder location. Then start Firefox in the new profile you created.
    Any better results with WebM video or shutdown?
    When returning to the Profile Manager, you might be tempted to use the Delete Profile button. But... it's a bit too easy to accidentally delete your "real" profile, so I recommend resisting the temptation. If you do want to clean up later, I suggest making a backup of all your profiles first in case something were to go wrong.
    '''Clean Reinstall'''
    A regular reinstall may leave some stray files in your programs folder. This method is a bit cleaner.
    (1) If needed, download a fresh installer for Firefox 30 from https://www.mozilla.org/firefox/all/ to a convenient location. (Scroll down to your preferred language.)
    (2) Exit out of Firefox.
    (3) Rename the folder
    C:\Program Files (x86)\Mozilla Firefox
    to
    C:\Program Files (x86)\OldFirefox
    (4) Run the installer you downloaded in #1. It should automatically connect to your existing settings.
    Does Firefox behave more normally?
    Note: Some plugins may exist only in that OldFirefox folder. If something essential is missing, look in these folders:
    * C:\Program Files (x86)\OldFirefox\Plugins
    * C:\Program Files (x86)\OldFirefox\browser\plugins

  • ADF is not working in JDeveloper 10g

    Hi all,
    I've been trying to get ADF to work with JDeveloper 10g but to no avail. I've followed the steps from the following link: http://www.oracle.com/technetwork/developer-tools/jdev/how-to-adf-faces-10gjdev-085657.html
    the only thing that i fail to follow is in creating the library. I have only the adf-faces-api.jar and adf-faces-impl.jar but not the share-1_1_18.jar
    I do not know whether this is creating the problem as my error message is not helpful.
    part of the error msg:
    May 8, 2013 12:25:11 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Long,null)
    May 8, 2013 12:25:11 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Long)
    May 8, 2013 12:25:11 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Float,null)
    May 8, 2013 12:25:11 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Float)
    May 8, 2013 12:25:11 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Double,null)
    May 8, 2013 12:25:11 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Double)
    May 8, 2013 12:25:11 PM com.sun.faces.config.rules.ValidatorRule end
    WARNING: [ValidatorRule]{faces-config/validator} Merge(javax.faces.LongRange)
    May 8, 2013 12:25:11 PM com.sun.faces.config.rules.ValidatorRule end
    WARNING: [ValidatorRule]{faces-config/validator} Merge(oracle.adf.DateTimeRange)
    May 8, 2013 12:25:11 PM com.sun.faces.config.rules.ValidatorRule end
    WARNING: [ValidatorRule]{faces-config/validator} Merge(oracle.adf.RegExp)
    May 8, 2013 12:25:11 PM com.sun.faces.config.rules.ValidatorRule end
    WARNING: [ValidatorRule]{faces-config/validator} Merge(oracle.adf.ByteLength)
    May 8, 2013 12:25:11 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(oracle.adf.Color,null)
    May 8, 2013 12:25:11 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.awt.Color)
    May 8, 2013 12:25:11 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.DateTime,null)
    May 8, 2013 12:25:11 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(oracle.adf.DateTime,null)
    May 8, 2013 12:25:11 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.util.Date)
    May 8, 2013 12:25:11 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.util.Calendar)
    I've been trying to resolve this by creating a new project but once i input adf tags the problem arise again.
    Please help. Thanks!
    Edited by: 1003893 on May 7, 2013 9:28 PM

    Now that I've looked at the linked article...
    That was showing you how to use a very early version of ADF Faces (a pre-release, in fact) with a very old version of JDeveloper. That document is nearly 9 years old.
    Starting with JDeveloper 10.1.3, ADF Faces is "built-in"
    And since JDeveloper 10.1.3.x, we have had both the JDeveloper 11.1.1.x and 11.1.2.x series released.
    Why are you still using 10.1.2.x?

  • Some of the function keys dont work

    i just bought a new hp probook g2 notebook pc and it seems that some function keys dont work like the voice up and down are working but brightness keys arent .

    Vic, welcome to the forum.
    The error message BIOHD-2 normally indicates that the hard drive has failed.  Here is a guide to help you run the SMART test for the drive from the BIOS.  If you get a similar error message, you should replace the hard drive.  Also, here is a guide to help you with Recovery of the system after the drive has been replaced.
    Please click the " Thumbs up + button" if I have helped you and click "Accept as Solution" if your problem is solved.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • VISUALSVN - merge branch dont work in jdeveloper 11.1.2.1.0

    I am using jdeveloper 11.1.2.1.0
    I want to update my branch with trunk revision so i select branch as current application then i select versioning>merge
    -MERGE SELECTED REVISION RANGE
    URL TO MERGE FROM: I select here my trunk directory
    https://daguirre-virt/svn/Biblioteca/trunk/Biblioteca
    REVISION RANGE i select my last revision: 17
    And i get this message:
    merge dry-run depth=infinity -r 17:17 https://daguirre-virt/svn/Biblioteca/trunk/Biblioteca C:/ACTSIS/Aplicativos/Biblioteca_1.1/Biblioteca.jws
    Dry-run merge complete.
    merge --depth=infinity -r 17:17 https://daguirre-virt/svn/Biblioteca/trunk/Biblioteca C:/ACTSIS/Aplicativos/Biblioteca_1.1/Biblioteca.jws
    Merge complete.
    The problem is that it doen´t update my working copy... If i do same procedure with tortoiseSVN client it work but doesnt work with jdeveloper.
    What could be the problem??

    You can't use 11.1.2.3 for portlet creation.
    You need 11.1.1.6 and then use the help->check for update option in the menu to get the WebCenter extension.

  • Team working in JDeveloper 10g

    All,
    I wondered if any of you had any thoughts or suggestions on team working in JDeveloper?
    I've just completed my first JDeveloper project and had the benefit of being the sole developer. We're now looking at doing some more projects with JDeveloper and could do with some pointers regarding how to set up the structure of an application so that multiple developers can work on it. We use Serena ChangeManager for version control, so any suggestions that are compatible with this would be especially welcome!
    Thanks!
    (p.s. I'd also prefer that you stick to the "current" production release of JDeveloper - there seems to be a tendency in here for people to recommend the latest, greatest version (i.e. 11g), in spite of it only being a technology preview. I wouldn't ride in a pre-production airliner, so why should I do real, production work in an unfinished IDE?)

    Cliff,
    I have a few to start the discussion going.
    1). Use your version control system. Even if there is no JDev plugin, use it! (this is a no-brainer, of course).
    2). Put the JDeveloper artifacts in version control too. By this, I mean the jpr and jws files.
    3). Ensure everyone uses the same coding style preferences, otherwise you can get lots of "bouncing checkins" because one guy likes 3 spaces and some gal likes 4 for indents
    4). Be aware of potential issues when checking in Business Components to source control. For example, if you check in the xml file associated with an AM, but not the java files, you're in for some fun!
    5). Especially early in the development cycle, if you are using ADF Business Components, the Application Module can become a point of contention among developers. You may want to think about having one person control them - or if not - be sure you have good lines of team communication when they are being changed. It's not the easiest thing to do to deal with merging AM configuration files by hand.
    These are some of the ones that jump to mind.
    John

  • 10.1.3 EA: How do I get some of these new features to work?

    I've read throughthis : Oracle JDeveloper 10.1.3 EA1 New Features
    http://www.oracle.com/technology/products/jdev/101/collateral/101/1013eanewfeatures.html#Code%20Assist
    I can't figure out how to get the following to work (I've searched the help and the forums):
    - "JDK 5 loop: Converts for loops to use the new JDK 5 syntax."
    That is listed under the "Code Assist" section.
    Also, I can't seem to get Organize Imports and Reformat (what is this?) to work. Organize Imports worked well in the previous version of JDev 10.1.3 Preview but does nothing when I select it now. My imports remain unorganized :).
    Thanks,
    Chris

    I enjoy having this thread conversation with myself. ;)
    "Also, I can't seem to get Organize Imports and Reformat (what is this?) to work. Organize Imports worked well in the previous version of JDev 10.1.3 Preview but does nothing when I select it now. My imports remain unorganized :)."
    OK, I figured out this problem, and it's interesting. If I go to Prefs -> Extensions and uncheck (turn off) Versioning Support 10.1.3.34.12, the "Organize Imports" and "Reformat" features no longer function. This is odd; what does Versioning Support have to do with code formatting? I turned off this extension because we use Subversion here and there is no plug-in for this yet. I'll leave it on since I desire these other, unrelated features.
    My question about JDK 1.5 for loop code assistance still applies, though.
    Thanks,
    Chris

  • FlexBuilder editor features dont' work

    I rearranged several separate projects into one by using
    additional source paths in the one project. Ever since I made that
    change, I've experienced an intermittent problem: when I'm editing
    a file, none of the helper features work. Compile errors don't show
    up in the editor, imports don't automatically occur, matching
    squiggly brackets don't get generated, and so on. Sometimes, when I
    open the main application file, I get a "loading source files"
    popup and then all my editor features return. I haven't figured out
    a way to "load the source files" manually. Project "clean" doesn't
    do it. Closing and opening the project doesn't do it. Any
    ideas?

    Nobody sees this? I just rearranged my files so that I don't
    need to link to other source paths, and the problem went away.
    So, I can simplify my problem to: Sometimes lose editing aids
    when editing a file that is in a linked source path.
    Clean doesn't help.
    Opening/closing project doesn't help
    Refresh doesn't do it.
    Occasionally, opening the main application file will cause
    the
    popup:
    Loading Project
    Loading Source Files
    ... and then it works for awhile.
    Oh, how I wish I could invoke that project load myself.

  • Phonostar app reinstalled features dont work

    Hi ich hab eine phonostar app installiert u diverse zusatz features gekauft, die nach der neuinstallation auf IPhone 4s (vohrer IPhone 4) nicht mehr funktionieren.von neu installation bis zum phonostar support kontakt alles versucht-phonostar verweist mich an apple support, wer kann helfen?

    As I said above I am on the Samsung Galaxy S3 The app worked fine until that update. And no new update available.I haven't had time to address the issue any further or click the link provided to me via email.I've been taking care of my mother who broke her hip this winter which has me flat out busy.I'm hoping to try and see if it's resolvable over the next few days. But I'm glad that I'm not the only one with issues.Bottom line is even though I'm not able to use the app, it is very disappointing but it's not life threatening. BTW, I just checked it and it hasn't changed.Launched the app shows blank TV Listings.If I try and set it to show HD only channels I get:ErrorWe apologize, but we are unable to process your request at this time.Please try again in a few minutes.Error code 200OkNo it's not Ok LOL 

  • Some of the website buttons dont work

    When I go to some websites some of the buttons on the screen doesnt work

    That problem can be caused by the Yahoo! Toolbar that extents too much downwards and covers the top part of the browser window and thus makes links in that part of the screen not clickable.
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • I droped my ipad and broke the side of my screen.some parts of the screen dont work .is their anyway i can fix this? if i get the screen fixed is my screen going to responed ?

    hi
    I broke the side of my iPad and parts of the screen do not respond....is there an easy way to
    fix this ? If I get the screen fixed is it going to respond?

    Take it to an Apple Store or Authorized Apple Service Center for an assessment and plan to move forward.
    You might expect to pay US$249 plus tax for out-of-warranty service for an iPad 2 if you are in the U.S.

  • HT4623 iPhone 4 s giving problems since installing OS 6, crashing and battery levels all over the place, even when switched off at night dropping from 88% to 2% overnight and some functions such as iCloud dont work consistently. Can I revert to OS 5?

    Frank, Dublin, Ireland

    Sorry once you have upgraded you can't downgrade IOS.  This is not supported by Apple.
    Suggest you restore your iphone.

  • "preview" dont'work on appl 10g

    in the follow procedure, if i canche the value of DESTYPE parameter from "CACHE" ---->>> to "PREVIEW" the report don't work.
    if it is set to cache it generate e report file in the application server local directory, bur the user that lunch the report dont'see it !!!!
    DESTYPE = 'PREVIEW' DON'T WORK ??????
    WHICH IS THE MEANING OF "DESTYPE"
    the have a button on a form that run on application 10g
    DECLARE
    report_id Report_Object;
    BEGIN
    HOUSE_ORD (:B0.LIST_ORDER);
    COMMIT;
    report_id:= find_report_object('rep01');
    RUN_REPORT_OBJECT_LIST(report_id , 'rep_app00' , 'pdf');
    END;
    the procedure that i call is
    PROCEDURE RUN_REPORT_OBJECT_LIST(report_id REPORT_OBJECT, reportserver varchar2, runformat varchar2) IS
    report_job_id VARCHAR2(100);
    vc_rep_status VARCHAR2(20);
    paramlist_id ParamList;
    paramlist_name VARCHAR2(10):='tmplist';
    BEGIN
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,reportserver);
    paramlist_id:= get_parameter_list(paramlist_name);
    IF NOT id_null(paramlist_id) THEN
    destroy_parameter_list(paramlist_id);
    END IF;
    paramlist_id:=create_parameter_list(paramlist_name);
    add_parameter(paramlist_id,'DESTYPE',TEXT_PARAMETER,'CACHE');
    add_parameter(paramlist_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    add_parameter(paramlist_id,'desformat',TEXT_PARAMETER,runformat );
    report_job_id:=RUN_REPORT_OBJECT(report_id,paramlist_id);
    END;

    Hi Mike,
    Pl follow Note 207396.1 on Metalink: "How to Run Reports From Forms 9i / 10g Using RUN_REPORT_OBJECT"
    http://metalink.oracle.com
    You can also follow the sample code given in this document "Integrating OracleAS Reports Services in OracleAS Forms Services":
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    Navneet.

  • TABS dont work in JDeveloper!

    I have a test JSP that runs a newly coded OA page as follows:
    <a href="<%=URLMgr.processOutgoingURL(OA.jsp?page=/oracle/apps/per/pacss/webui/PacssMatricesListPGL&OAPB=FWK_TOOLBOX_BRAND&OAHP=FWK_TOOLBOX_TUTORIAL_APP&OASF=FWK_TOOLBOX_HELLO&transactionid=" + transactionid, macKey) %">">PACSS Matrics List</a><br>
    This has:
    &OAHP=FWK_TOOLBOX_TUTORIAL_APP&OASF=FWK_TOOLBOX_HELLO
    Another page that is seeded in repository renders this TAB bar fine!
    But when I run the current page in JDeveloper, it doesnt render tabs/subtabs !
    Cant we render Tabs/Subtabs through JDeveloper ?
    Please clarify.
    Thank you very very much.
    regards,
    Prasad</a>

    It was a simple setting that I needed to set in the JDeveloper:
    "Embedded OC4J"
    And I had to choose the 1st radio button:
    "Default Local IP Address"
    where as:
    "Local Host's Full Name" was selected.
    The value there was: FMSGZPU2030.wrightpatterson.afmc.ds.af.mil
    Once the setting was changed to IP Address it worked!
    Thanks a lot.
    regards,
    Prasad

  • JMS Queue Works in JDeveloper 10g, but not in Oracle 10g AS

    Hello --
    I have set up a JMS Queue on my local OC4J included with JDeveloper. I added my ConnectionQueueFactory and ConnectionQueue to the JMS.XML file in my environment. Everything works the way it should using JDeveloper with the embedded OC4J.
    As soon as I deploy the application to Oracle Application Server, for some reason my MailSender Message Driven Bean cannot take delivery of the message. I don't know what I could be doing wrong but my JMS.XML file on the Application Server has been updated with the same ConnectionQueue information that is on my local JMS.XML file. In my log file I can see that the message is being posted to the queue, just no delivery.
    If anyone out there has a suggestion I would appreciate it. This is my first attempt at ever using JMS.
    Thanks,
    Frank

    Willy_B wrote:
    I removed the one that was listed, thinking that it was implicit to that line. BUT of course, I just went back and removed EVERY empty line, even between the comments and all...and it worked.
    So the lesson here is that PL/SQL could care less about white space, but SQLPlus is picky....
    Thanks. :)Exactly. And I have to make note of that in my written procedure for restoring some of our test databases from a cold backup of production. Turns out the control file trace script (backup controlfile to trace) inserts a blank line ... then sqlplus chokes on it when executing ..

Maybe you are looking for

  • How to add a second wireless network in my house..

    Hello, I have Verizon FIOS with the supplied Actiontec wireless modem/router M1424WR. This current setup works perfectly and has since I got it about 5 months ago. Note that all of my computers connect wirelessly. Here is what I would like to do and

  • How to include multiple tabs in my show form

    Hi As per my requirement I want to include multiple tabs in my show form using xmlform builder , different tabs are required to display the news under different categories which will help the user to choose the required tab. Thanks in advance.

  • Af:treeTable sorting issue

    We have a tree table (Jdevloper 11.1.1.6.0), when all the nodes in the tree table are expanded it has more than 500 rows and when we try to sort it in ascending or descending order it errors out: The connection to the server was reset while the page

  • Is a USB3 ssd + Thunder bolt Lacie 256 gig drive compatible with a macbook 2008 with usb2 ports ?

    Is a USB3 SSD + Thunder bolt Lacie 256 gig drive compatible with a Macbook 2008 with USB2 ports ? I just purchased a Lacie SSD drive which ejects its self without any warning. Disappears from finder and disk utility. A message come up saying that the

  • Experience on Labview and SUSE Linux Professional 64-bit

    Hi! Does anybody have any experience on running LabVIEW on SUSE Linux Professional 64-bit version? I'd appreciate any experiences about: - installation - development - running applications - compiling standalone applications - etc Regards. Tomi Tomi