Bug with -J flag in new javadoc again?

Hi,
I want to run javadoc from within another java application with the following:
String[] javadocargs= {"-J-version"};
com.sun.tools.javadoc.Main.execute(javadocargs);
Actually I am trying a bit more compilcated, but the error is the same. Whenn running this I get:
javadoc: invalid flag: -J-version
I read that there was a bug in 1.2 versions of the sdk that is fixed now. See http://developer.java.sun.com/developer/bugParade/bugs/4079009.html. But I am using the sdk 1.4.2 and the javadoc from that version. What is the problem here? Oh, and this only happens from within a program. When running javadoc on the console it works just fine.
Can anyone help me?

Hi,
You have to remember that:
javadoc -J-version
is equivalent to:
java -classpath tools.jar -version com.sun.tools.javadoc.Main
Given that information, I don't think that you can use -J<flag> from within a program. The code to process the -J<flag> is bypassed when you execute javadoc from within a program. All other javadoc options should work using Main.execute(). If you really need to access the version of Java you are using, you should use:
System.getProperty("java.version")
-Jamie

Similar Messages

  • Possible bug with Pick flag and Collections

    Odd behaviours in v3.3  (Windows) with pick flags in Collections:
    Create (or use) a Collection Set which contains a number of different collections
    Assign Pick plag to one photo in each collection
    Bug 1: Highlight Collection Set and note that none of the images shows the Pick Flag in the thumbnail view. Also Filtering this view with Pick flag fails to pick up the Flagged images
    Now return to one of the Collections within the Set and create a Virtual Copy of one of the images that has a Pick flag. (Note virtual copy does not have a flag - which seems logical). Return to Collection Set and (Bug 2) note that Pick flag has disappeared from original image and now appears on Virtual copy.
    Something wrong here somewhere I suspect.

    lightshop wrote:
    Odd behaviours in v3.3  (Windows) with pick flags in Collections:
    Create (or use) a Collection Set which contains a number of different collections
    Assign Pick plag to one photo in each collection
    Bug 1: Highlight Collection Set and note that none of the images shows the Pick Flag in the thumbnail view. Also Filtering this view with Pick flag fails to pick up the Flagged images
    Now return to one of the Collections within the Set and create a Virtual Copy of one of the images that has a Pick flag. (Note virtual copy does not have a flag - which seems logical). Return to Collection Set and (Bug 2) note that Pick flag has disappeared from original image and now appears on Virtual copy.
    Something wrong here somewhere I suspect.
    I could partially repeat bug 2.
    I have Collection Set (Test) which contain to collections: "Collection 1" and "Collection 2". Both Collections contain 4 images.
    I selected "Collection 1" and applied Pick flag to all those images. When I select Test (Collection Set) I got 8 images shown,  which none had flags. Ok, this works as expected. I selected "Collection 1" and then selected 1 image and made Virtual copy from it. Lr show me now 4 images with Flag and 1 virtual copy without. Again, works as expected. I now select Test (Collection Set) and I get 9 images (as expected), but one of them, the virtual copy, has pick flag applied. Not as expected. If I go back to "Collection 1" I get four images with Pick flags and one virtual copy without. (as expected.)

  • I have a MacBook Pro 5,4 running OSX 10.6.8 and Safari 5.1.10. A website i like has a known bug with 5.1.10 and recommends I install a newer version of Safari or use Firefox or Chrome. Just looking for advice on the best approach. Thanks!

    I have a MacBook Pro 5,4 running OSX 10.6.8 and Safari 5.1.10. A website i like has a known bug with 5.1.10 and recommends I install a newer version of Safari or use Firefox or Chrome. Just looking for advice on the best approach. Thanks!

    Unfortunately, Safari cannot be updated past 5.1.10 on a Mac running v10.6.8.
    So, the options are to upgrade to a newer OS X or use Firefox or  Chrome.
    Be aware, Apple no longer support Snow Leopard v10.6 >  www.ibtimes.com/apple-kills-snow-leopard-os-x-106-no-longer-receives-security-u pdates-1558393
    See if your Mac can run v10.9 Mavericks >  OS X Mavericks: System Requirements
    If so, you can download and install Mavericks for free from the App Store.
    Read prior to upgrading >   Upgrading to 10.7 and above, don't forget Rosetta! | Apple Support Communities

  • A Bug with the new ms-6729 Bios (6729v5.30)

    Hi
    After updating my Bios to the new version, the motherboard detect my CPU(Athlon 2400+) as a 1800+.
    I tried to change settings manually without success.
    Anybody has encountred a similar problem?
    Best Regards

    Dir Sir,
    Thank you very much for your quick answer, but i believe you didn't try
    the mentioned Bios.
    I'm not a novice, i mounted more than 300 computers for my clients, and
    around 30 of last 50 computers are with MSI Motherboards.
    Cpu Fsb for Athlon 2400+ is 133 but the ddr/fsb is 4:5 because i'm using
    DDR 333 and the K7N2-V (MS-6729) is DDR 400 ready.
    With all MSI motherboards i mounted, it’s enough to put the correct CPU
    FSB and (Auto) to detect everything by the SPD.
    Certainly it's a BUG with the new version because the Bios and Windows
    detect CPU as Athlon 1800+ (1500) instead of 2400+ (20000.
    Best Regards,
    Lostan

  • Mail app bug with jumping to new line below signature

    Hi!
    Since day one of using Lion i have this incredibly annoying bug with Mail application.
    I have a formated signature in all my emails. Sometimes when I am composing a mail (or rather replying for one) and when I hit RETURN on keyboard, cursor moves BELOW signature and inserts new line below signature - not in place when it was when I hit RETURN.
    The same is when I have cursor in middle of my message and hit enter. Nothing happens - text ater place when cursor was when I hit enter is staying where it was but cursor moves below signature and enters new line in there.
    Anyone has solution for this?

    Triple-click the word "telnet" in the line below on this page to select the whole line:
    telnet imap.gmail.com 993
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    You should almost instantly get three lines of output below what you entered, the last of which is this:
    Escape character is '^]'.
    If there's no output within ten seconds, consider that a failure. If you get something different from the above, please post it in a reply. You can then quit Terminal.

  • Hi, I have a new laptop and would like to syncronise my iphone with iTunes (which I have installed again). But my old laptop has died so I could not transfer any media files, etc. Can I simply connect my iPhone to the laptop without any data being lost?

    Hi, I have a new laptop and would like to syncronise my iphone with iTunes (which I have installed again). But my old laptop has died so I could not transfer any media files, etc. Can I simply connect my iPhone to the laptop without any data being lost?
    Many thanks in advance!

    you have a new phone and a new comp and you want to restore to your old data ?!
    I can't think of anything but icloud, and what was purchased via itunes

  • Downloaded 11.0.3 (42) 64 bit to my MacBook Pro and it crashes every time I select a song a use the 'add to' function to add to a play list. It's never done this before, is it a bug with the new version?

    downloaded 11.0.3 (42) 64 bit to my MacBook Pro and it crashes every time I select a song a use the 'add to' function to add to a play list. It's never done this before, is it a bug with the new version?

    You could just disable updates. Change these settings in about:config.
    * app.update.auto - set to false
    * app.update.enabled - set to false
    You can still check for updates with the "Check for Updates" button in the About Firefox window, but it will download the update file anyway if there is an update available. You can also check which is the current release from here:
    * http://sjc.mozilla.com/en-US/firefox/new/

  • Bug with new version of itunes...cannot "see" list of movies to select for sync to iphone

    Hi
    Anybody have a fix for this bug....the new version of itunes is soooooo frustrating.
    When trying to select specific movies for sync to ipone the window that should list all the movies available in the itnues lib disappears and i can only "see" a line where the window should be...so currently cannot add/remove movies from my iphone.
    Cheers
    Herman

    I have the same problem on both my iPad and my iPhone and it also started with iTunes 10.0.2.

  • New downloads of items already purchased in other device with the same account are charged again?

    New downloads of items already purchased in other device with the same account are charged again?

    No, see here...
    Download Past Purchases
    http://support.apple.com/kb/HT2519
    Log into iTunes using the account the Purchase was made with... Click on Buy... and a notice will come up saying you already have it... do you wish to download it again... Click Yes...

  • If I buy a MacBook pro now, what will happen with it once the Lion OS makes it's appearance? Will I need to buy a new one again?

    If I buy a MacBook pro now, what will happen with it once the Lion OS makes it's appearance? Will I need to buy a new one again?

    Lion will run on most Intel machines. It will not run on the following machines:
    MacBook Pro (sold before October 2006)
    MacBook (sold before November 2006)
    Mac Mini (sold before August 2007)
    iMac (sold before September 2006)
    It requires an Intel Core 2 Duo (or later CPU). Those machines listed above were all Intel Core Duo machines and with the exception of one of the Mac Minis, an Intel Core Solo. So we're talking 4+ year old machines. I have not tested Lion on a machine with anything less than 2GB of RAM.
    Wikipedia has a pretty good public summation of what's known so far and it's quite accurate - http://en.wikipedia.org/wiki/Mac_OS_X_Lion
    The biggest thing of note so far is that you cannot install/run Rosetta. Which maybe problematic for some users.

  • Help needed with permissions problem in new Aperture 3.5.1

    Hello and thank you for helping me with my first question to this wonderful support center. I have been using Aperture for many years. I recently upgraded my Mac to Mavericks, now running 10.9.2. and then upgraded (by necessity) to Aperture 3.5.1. I am working on a big project for a client and have an assistant in another city. I live outside the US so mailed  my library to my asst. on an external drive. She updated to 10.9.2 or .3 and Aperture 3.5.1. No problems. She modified the library and sent the library to the client in another city in the US on an external drive who has also upgraded to  Mavericks and is running Aperture 3.5.1.  So we are all in Mavericks with recent Apertures. When client tried to open the sent library client got a message that stated:
    "Aperture cannot access this library. To use this library, make sure its file permissions are set correctly.”
    Clientʻs Tech assistant at her office is a PC specialist but apparently did try on Friday and did try to repair permissions but I am told that it did not work. I wish I had more specific info on what Tech assistant did but I do not at this time.
    On Monday I would like to give them very specific instructions about what to do to open the library
    For recent discussions I have found only this
    https://discussions.apple.com/message/23600132#23600132
    Oct 30, 2013 3:35 PM by Frank Caggiano
    about repairing permissions.
    I am sure that we are all running Mavericks and new Aperture, that does not seem to be at the root of  the immediate problem. As we are in two different countries and three different cities and communication is hard, please tell me if this is a common problem with an easy fix and if it should be fixed by Repairing Permissions, please tell me exactly what I should tell them to do on Monday. They can at least see this discussion from their city!
    Many thanks!! This is an urgent project so I very much appreciate your help.

    Have your collegues check the file system of the drive and the "Ignore Ownership on this volume" flag.
    To check the filesystem and "Ignore ownership" flag select the drive in the Finder and use the command "File > Get Info ⌘i"
    In the panel unlock the padlock in the "Sharing & Permissions" brick and set the "Ignore ownership" flag at the bottom of the panel.
    Also, check the "General" brick of the panel. The format should be showing as "Mac OS Extended (Journaled)". Aperture checks for the correct formating before opening a library and may refuse to open a library on a drive formatted for Windows.
    If the format is wrong, it would be best to move the library to a different drive with the correct formatting.
    Once the "Ignore ownership" flag is set, try again to repair the permissions and see, ifyou now can open the library.

  • Okay, i have 2 bugs with maverick.  First, when I delete a file within a window, the files deletes but the preview doesn't delete until I close the window and reopen it.  Second, I work on a network of computers and the search feature is now buggy...

    Okay, i have 2 bugs with maverick.  First, when I delete a file within a window, the files deletes but the preview doesn't delete until I close the window and reopen it.  Second, I work on a network of computers and the search feature is now buggy...  When I search for a file, A) it asks me if it's a name, or it wont produce anything, and B), its slower than in prior OS versions and in some instances I have to toggle to a different directory and go back to my original directory in the search: menu bar or the search wont produce anything...  Very buggy. 

    It appears to me that network file access is buggy in Maverick.
    In my case I have a USB Drive attached to airport extreme (new model) and when I open folders on that drive they all appear empty. If I right click and I select get info after a few minutes! I get a list of the content.
    It makes impossible navigate a directory tree.
    File access has been trashed in Maverick.
    They have improved (read broken) Finder. I need to manage a way to downgrade to Lion again.

  • Am i the only one that see's serious bugs with Windows Search index on Windows 8.1 and Office 2013?

    So i originally had Windows 8 and Office 2013 installed. I noticed that alot of my emails in Outlook 2013 as well as contacts werent being indexed. I waited for windows 8.1 and did an upgrade hoping the 8.1 would fix the issue. It didn't.
    So i formatted my hard drive, installed fresh windows 8.1, and office 2013, and let it Windows Index run. I see 2 things happening.
    A.) The indexer never completes
    B.) the indexer takes up 40% cpu usage.
    I tried rebuilding, creating index from new location, nothing seemed to work. I decided to prevent the indexer from searching Office apps (outlook and onenote) and low and behold it completes indexing. 
    I decided to try and format again and see if there was some bug causing the issue. So this week I formatted once agian, loaded Windows 8.1, installed updates, and loaded office 2013. Once again, my indexer
    is stuck around 70k items and my processor usage on Searchindexer.exe is around 30-40%.
    Is this a known bug with 8.1 and office?
    Brad Nelson MCSE/DCSE/A+/Network+/WCSP

    Hi,
    I test in my environment, and Windows would finish the index, the CPU usage keeps in 29%, which my RAM is 8G.
    Can you tell us how you let the Windows Index run?
    Alex Zhao
    TechNet Community Support

  • Issues / Bug with Nokia N9

    Issues / Bug with Nokia N9
    1. The mobile network gets disconnected after each call and I have to wait atleast 10-20 seconds to redial or make a new call, I cannot dial a number just after I finish a call / speaking with someone. It happens on both Incoming and outgoing Calls.
    Troubleshooting Steps:
    1. Changed SIM card from the telecom provider atleast 3 times. The same SIM card works absolutely fine in another mobile.
    2. Reset and set to default settings tried - No Result
    2. The ear piece volume is considerably low.
    Troubleshooting Steps:
    1. Reset and set to default settings tried - No Result
    3. When playing a video online on YouTube the timing for a 4 minute video shows as
        34:00 34:23 instead of showing 04:00 04:23
    Troubleshooting Steps:
    1. Reset and set to default settings tried - No Result
    4. The photos from the Facebook app built into the phone do not always load even If I am running a 3.5G Mobile Data connection or at Home on a Wi-Fi connection
     Troubleshooting Steps:
    1. Reset and set to default settings tried - No Result
    I am from India, bought the phone last year from Abu Dhabi and it is Made in Finland.
    Really I need someone to help me out here!!

    If you reinstalled the OS again from Nokia, you may just have a defective phone and there could be something wrong with the hardware.  I have two N9's and I haven't experience any of these problems.
    Can you record these problems and post the link to youtube here so I can see what's happening?
    I Choose Nokia!

  • Terrible bug with Rescue & Recovery 4.5

    Hello all,
    Just a notice to all users, I had a terrible bug with Lenovo Rescue & Recovery. Everything went well, until the restore: I have one SSD for system and one micro sata for data. The system drive had two partitions (created by Lenovo at the origin, a system (C) partition and a Lenovo recovery partition). When I tried to restore a previous version of the system drive that I backuped with Lenovo R&R, it restored the system on C: and restored the recovery partition... on D:, erasing all my data! In addition, the MBR was missing on the system. And cherry on the cake, I could not use the backup a second time when I tried, because R&R did not find the backup again.
    I was particularly disappointed because as the backup went so smoothly, I did not do a data backup before restore, my previous backup being three days old, so I lost three days of work.
    I had previous bad experience with Windows backup & restore, windows software could not find the restore, but at least it did not erase data.
    Thierry

    I agree with the TERRIBLE bug comment.
    It amounts to:
    (1) restore Q partition
    (2) C drive.
    I will repeat my other posts. I ordered pc, with 320 GB and 160 Gb Hdd.  From factory, C went to 320MB.  Factory install goes to 1st HDD it finds, in my case 320 GB.
    So you have discovered a new, how does it work?
    1 HDD (c), 1 sata (for data).  It used factory recovery items, and waxed the sata( and made it bootable). Then got smarter, and restored C to HDD, unbootable.
    Did someone not test this? Dont expect a new version of RNR. not supported on win 8. Acronis, $$ well spent. 
    Dumb.
    Next time, unplug the loved sata before a FULL HDD restore. (not a c drive restore). Sad.   unplug loved! 
    ==
    Did not find backup 2nd time around. Discussed in other posts from myself.  What is your windows platform RNR backup location set to?  If local, change it to USB or where ever you think they are at.

Maybe you are looking for