Request suggestions for improving tools

Hi,
I've written some tools to help me resolve classpath problems on a Windows system. However, I think they are too hard for a beginning programmer to use. Can you give me some ideas for making them easier to use?
The one tool: CheckClasspath is used to test that the classpath reaches a class file. It uses the current environment CLASSPATH value and the package of the class file to see if there is a path to the class. The problem is getting the current CLASSPATH value into the program. I have several ways to start execution of the program. When a program is started with java -jar the classpath is ONLY to the jar.
The one I use the most is from the right-click context menu when I right-click on a class file. The problem here is how can the program get the CLASSPATH value? The only way I've found is to call a batch file which can use the %CLASSPATH% variable to pull in and pass the classpath to the program as a parameter.
The batch file has the following commandline:
java.exe -jar %JAVA_RUN%\CkClasspath.jar -CP "%CLASSPATH%" %1 %2 %3
Another way is from a shortcut. Here the OS will substitute the classpath for the %CLASSPATH% value in the program parameters on the commandline.
The third way is to start the program from the batchfile.
Some people advocate NOT using the CLASSPATH environment variable. The consequences of that is that you have to type in a new classpath every time you create a batch file or shortcut and I make my share of typing errors.
The java program does NOT complain if you execute it with a bad/non-existent path. Too bad, that would have saved me hours!!!
An example usage of CheckClasspath -> create a batch file to execute a class file:
Create a batch file with the line: java -cp <cp> <path>
Open the CheckClasspath program and use it to "Open" the class file. It will display the classpath.path to the file.
Select the 'Copy Classpath to CB' menuitem and paste/replace <cp> above.
Select the' Copy package to CB' menuitem and paste/replace <path> above.
I suppose some of the IDEs will do all this for you.
What ways have others found to verify correct classpath settings when creating commandlines for executing java programs? java.exe is no help there.
These programs can be downloaded from:
http://users.mo-net.com/normandpaula/NormsClassPathTools.html
Thanks,
Norm

A lot of program environments -- including batch files, I believe -- can read environment variables without any explicit passing of arguments.
I mean, in Perl/unix you could easily domy @segments = split ':', $ENV{CLASSPATH};for example.

Similar Messages

  • It is Any suggestions for improving Oracle Tools GUI performance?

    Does anyone have any suggestions for improving the GUI performance of Oracles Java Tools? Response to events is very sloooow i.e. click on a menu in Oracle Directory Manager wait three seconds before the menu items appear.
    System Environment:
    Dell Inspiron 8100
    Windows XP Pro
    256MB Ram
    1 GHz
    Oracle:
    Oracle91 Enterprise Edition 9.0.1.1.1
    Other:
    No non Oracle Java components installed (JDKs, JREs etc.)
    Thanks

    If the database and the tools are just on the one box more memory is probably required. I had an nt box with 500MHz 256MB and Oracle 9i and the java tools were unusable. I upgraded to 768MB of ram and the java tools were much quicker. I use the java tools on my laptop 256MB and 800MHz and they work fine for remote databases (ie. no rdbms on the laptop).

  • Suggestion for Improving Number

    Hello Oracle Java community,
    I've recently encountered some difficulties using the abstract class java.lang.Number, and have a suggestion for improvement.
    I'm writing a class that computes statistical information on a list of numbers - it would be nice to not couple this class to Integer, Double, BigDecimal, or any other wrapper by using generics. I saw that there is a nice superclass that all Number objects inherit from.
    I came up with:
    public class Statistics<T extends Number> {
    private List<T> data;
    // statistical data that i wish to find and store, such as median, mean, standard dev, etc
    public synchronized void setData(List<T> data) {
    this.data = data;
    if (this.data != null && !this.data.isEmpty()) calculateStatistics();
    private void calculateStatistics() {
    // Welcome to instanceof and casting hell...
    h4. It would be nice to have richer functionality from the Number class, say to do mathematical operations with them or compare them.
    h4. After all, in the real world it is possible to do so.
    h4. Real numbers are much like BigDecimal. Why not take the idea of BigDecimal, and make that the parent of Integer, BigInteger, Double, Short, Byte, Float (I'm probably forgetting a few)? All of those are limited forms of real numbers. It would make comparison between Number datatypes easy, would probably remove all of that duplicated arithmetic code between all of the children of Number, and also allow Numbers to be used in powerful generic ways. The parent/replacement of BigDecimal could even be named RealNumber, which stays true to its math domain.
    As a side note, I'm solving this problem by taking an initial step to convert the List<whatever type of Number that the user enters> into a List<BigDecimal> by getting the toString() value of each element when cast as a Number.
    private List<BigDecimal> convertData(List<T> data) {
    ArrayList<BigDecimal> converted = new ArrayList<BigDecimal>();
    for (T element : data) {
    converted.add(new BigDecimal(((Number) element).toString()));
    return converted;
    Criticism is always welcome.
    Thanks for your time and thoughts.
    -James Genac

    How compareTo() came into existence is from Comparable interface. As I understand, Comparable came into existence since Collections API has sorting functions - which needs to be run with a matching Comparable object that knows how to determine which element is larger than the other (not limited to objects representing numbers, you might sort a list of Persons). Hence, compareTo() is not solely meant for the comparison of numbers. Existence of the method in BigDecimal is just one case.
    Subclasses can override the equals() method, but that cannot be implemented in a cleaner manner and leads to a very poor design. For example, you might want to compare an Integer and a Float. So the Integer class's equals() method need to have some if-else structure to determine the other type and then compare. Same holds true for the Float class's equals() method as well. Ultimately, Everything becomes a mess. All subclasses of RealNumber needs to know about all other subclasses of RealNumber. And you will not be able to introduce new subtypes and expect the equals() method to work correctly.
    To avoid this, you need to depend on a single representation form for all types of numbers. If that's the case, you might just live with something like BigDecimal and not use Byte, Float, Integer,... (which we kind of do in some cases - for example to represent monetary amounts). So we can live without Byte, Float, Integer,...
    Then we need some utility classes that would contain some number type specific functions to work with primitives. So we will also have Byte, Float, Integer... unrelated to BigDecimal.
    Clearly, the wrapper types are there not because of the need to represent real world number types, but because of the need to represent computer domain number types. Hence, they have been organized not according to relationships found in real world number types. Many of us find this way of modelling sufficient and have an understanding about the limitations. But if you need to model the real world number relationships for some special reason, you might write some new classes. Then again there will be real world aspects that you will not be able to model easily. So you will model some aspects and neglect the other.

  • Any suggestions for improving my efficiency?

    These are the two methods I've come up with to use what I have for making movies. One is for DVDs. The other is for making QuickTime MOV files for CDs. This is the process I have to use because we don't yet have our digital video camera that is firewire compatible with Final Cut.
    For DVDs that will play in DVD players or media software on your computer:
    1. I take the Video_TS folder and run it through DVD Imager (free, macupdate.com) which converts it into an IMG file.
    2. I use the Apple Disk Utility (part of OS X) and burn the IMG file to a DVD.
    Simple enough.
    Making our recorded footage editable in Final Cut and then exporting as a QuickTime movie is a little more complicated. There may be a simpler way to do all this (like get a fire-wire FC-compatible camera I can capture footage from) but this is the process I finally got to work:
    1. In the Video_TS folder are two VOB files. The larger one is the one that actually has your video on it. I use MPEG Streamclip (free, squared5.com) to remove the timebreaks (otherwise all you get is the poster frame) and convert it to a Quicktime MOV file. For settings, I just use Apple Video, 720x480 NTSC, and 30 fps. You need to buy the Apple Quicktime MPEG-2 Playback Component ($20, apple.com) for this free software to work.
    2. Import the MOV file into Final Cut (I use Express which is $300 from apple.com) and do your editing and other yumminess. You'll need to render it first.
    3. Export as an MOV file ... there's no .mov extension and the Info says it's a Final Cut Express Movie file, not a QT MOV which makes me nervous so I I open it in QuickTime Pro ($30, apple.com) and export it using the Movie to Quicktime Movie setting.
    4. Then I burn my Quicktime movies to a CD.
    Any suggestions for improving my efficiency?

    "For DVDs that will play in DVD players..."
    If what you want is just to make copies of a DVD you burned yourself (eg using iDVD or your DVD camcorder) there is a simpler way: just create an image of the DVD on your desktop using Disk Utility, and then burn it using Disk Utility.
    You need to go into the process of copying the VIDEO_TS folder only if you want to make changes to it. For example you might need myDVDEdit, a very powerful free editor of the DVD structure (to change the menu button behaviour, or so). Or maybe if the image is of a different size, from a small DVD to a large one.
    Piero

  • How to make suggestion for improvements in LR

    How do I make suggestions for new features or improvements in LR?
    The stacking function, IMO, needs to be improved.  The time between shots does not take into account the length of exposure.  For example if my exposure is 5 seconds the stacking exposure will not add the two exposures together in the time setting < 4 seconds.
    Ideally I would like to see an HDR stacking function, looks at time between exposures (taking into account the length of exposure) and changes in exposure.
    ideally there would be similar options for pans and focus stacking.
    Thanks
    Rich

    Submit a feature request or bug report
    Go to the above site.

  • Suggestions for improvements

    hello guys.can u give me small suggestions to improve this site?
    www.gogua.gr
    i cant change it a lot because the owner like it this way (buttons logo etc) but some lines here and there or something like that could be nice

    but i want the menu and the footer to be the same in my template.
    can i do that without having to change manually the code for every
    page? (to set the photo rollover image in the photo page for example) i
    dont know if this is possible.
    I offer a DW Extension that will automatically do this for you.  You can put identical menu code on each page on the site (in your case by using a Template) as well as the divaGPS Extension,  and then let divaGPS  handle the you-are-here menu highlighting for you.
    Usually on this forum I suggest the free version of divaGPS, however because you are using an image-based menu, you would need to buy the paid version.  It's not expensive and honestly would make your site more user-friendly. You can learn more about it here:
    http://divahtml.com/products/divaGPS/current_menu_location.php
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • Where can i submit suggestions for improvement of email?

    I have a few suggestions to improve the email program used on the iPhone and iPad.  How do I get them to Apple to be considered in the next iOS update?  First suggestion is the ability to "mark" contacts when sending to multiple email contacts.  Currently you have to select one for the "to" field then return to contacts to select the next one. Should be able to bring up contacts list and place a check beside each one you want to send to and the hit "done" to populate the "to, cc, or bcc" fields.
    The second suggestion is the ability to create email groups directly on the iPad/iPhone for frequent lists I send to.
    The third suggestion is the ability to have a "read receipt" option so I know that the email was delivered and read.
    Thanks,
    Keith   

    Specifically for the iPad.
    http://www.apple.com/feedback/ipad.html

  • Suggestions for improving sharing

    Since Adobe Review is discontinued, I used with a couple of clients the new creative cloud sharing and I found some missing features or improvements needed:
    1. When a client is reviewing a file (i.e. a picture) he must input the email address to post a comment, this is annoying since I sent the review email to his address, so it's already verified.
    2. An important improvement would be a way to make a note (or link a comment) on a specific part of the picture/text so the comment can be highlighted in the context.
    3. I'd like also to receive a notification of new comments or see on the dashboard if new comments are present on a file, so I can review all the latest comments.
    4. There could be a button for "approval", if I put several versions of a work, client can approve the one he likes.
    Maybe some features are still present, please tell me if I'm wrong.
    thanks

    Thank you for the suggestions. Improvements with sharing and collaboration are coming. You can read more here on this Adobe blog post http://blogs.adobe.com/creativecloud/coming-soon-to-creative-cloud/.
    Feel free to add more suggestions to the blog post or follow up here with more. We are listening.

  • Obvious and simple Iphone Suggestions for improvements

    Iphone Suggestions:
    by the way, where is the place one should post these suggestions for best possible chance for the mac brainies to hear it?
    Thanks
    - can't edit, add to or create groups in contacts on the phone
    - can't add a whole group at once to an email "to"or cc or bcc field. have to keep adding one at a time..
    - can't insert contact details to a SMS conversation.
    - draft emails don't autosave, have lost a few like this.
    and boy does it need a usb port, even one that can maybe stick out of the earphone jack as an accessory.
    otherwise i love it.
    :)c
    Message was edited by: Craig Charnock

    http://www.apple.com/feedback/iphone.html

  • Suggestions for improving iPhone 3G functionality.

    Just made the move a couple of days agoBlackberry to iPhone because of the MobileMe functionality. Besides not having to sync anything, and the visual voicemail, I'm pretty disappointed.
    A few suggestions for the next operating system.
    -Copy and Paste functionality. Why they don't have this is RIDICULOUS!
    -Ability to delete individual calls from call lists. It's already a function in the SMS app, why not have it in phone?.
    -Calling from address book (as opposed to clicking into phone, and then contacts). If you create a new address book entry, you should be able to make a call right away.
    -The ability to MUTE certain contacts when they call you. This is available on the Blackberry, and has come in very handy.
    -Also, while this is not Apple's problem, a functional Facebook app. The blackberry FB app is flawless.
    Any other suggestions?
    APPLE, PLEASE PAY ATTENTION TO THESE KINDS OF SUGGESTIONS

    You really did not offend me, it's just that there are a dozen people a day who post the same suggestions. This forum is designed to ask questions of functionality ar problems. Yes, everyone wants MMS, Apple know that. But your really not going to get a constructive response about it here

  • Nokia Maps - suggestions for improvement

    Been using Nokia Maps Navigationon my E61i for a month now, previously I used Telenav on my E62.
    The interface on Telenav is more intuitive / user friendly, Nokia Maps is confusing. I am getting used to it, but still.
    Trip duration (lower right corner), at least that is what I assume it to be. It is off completely the entire trip. We use a TomTom Go910 for the family and it is off on its initial estimate but then it adjusts as you drive along. On a trip from Oklahoma City to Wichita Falls it estimated the trip to be 3.5 hours. Actual distance was only 165 miles, so a little bit over 2 hours. It its current design this feature is worthless. By the way Telenav has this figured out.
    Airport Codes:
    Driving back to OKC, I realize that a keyword search on OKC (the official airport code for Oklahoma City) only results in tens of matches of businesses with OKC in the name. But no air port. If you want to be serious about business travel this needs to work. Same for car rental return locations at the airport.
    After a few hours of use the E61i crashes and restarts itself.

    The indicator at the bottom right of my Nokia Maps screen shows the remaining estimated journey time. This seems to me to be one of the most useful features. The only refinement I'd like to see is an option to toggle between this and an estimated arrival time.
    With regard to search, there is a lot of scope for improvement here, given that this is the search that the software defaults to when you enter text directly without selecting an option. This should allow any kind of searching - i.e. post or zip code, place name etc. In the UK, the post code is the most useful type of search, but is not enabled via this inout - you have to go to address search to input a postcode. The app should have the intelligence to recognise the type of input and act accordingly.
    Another much-needed improvement would be to improve the access to searching for the address from contacts - as this is a pretty obvious way for people using a smartphone to ssearch it should be there among the first level opetion - not buried as an option under address search.
    Also, the options should be arranged with more consistent thought as to which will be most used, for example, under the "Landmarks" menu, Route From, Route To, and Navigate To, are in the midlle - requirig more keypresses than Delete Landmark, Edit Landmark, Show Details or Serach Nearby! Seems like a lapse in the quality control there doesn't there?
    A great, and easy improvement (because the code is already there) would be to use the Voice-Independent name recognition capability of recent phones to select stored Landmarks and recent destinations - I'm surprised this feature isn't there already.

  • Suggestions for improvements to tagging tool.

    It would be great to have the ability to list the words and what tags  to be applied to them and then have story auto-tag just the user defined words automatically in the whole script.
    Also having a way to bulk edit all the tags so you could eliminate all tags to a particular word for the entire script if story tags a word it shouldn't.
    Keyboard shortcuts to quickly add tags would be great.
    A way to find a particular word in the script, tag it and move to the next instance of the word and tag it with a minimum of clicks or keystrokes would be great.
    The tagging feature is really useful  but  it can definitely be made more efficient and the bulk editing capability improved to make it easier to work with the whole script.
    Thank you

    Hi,
    Thanks for taking time out to provide your feedback.
    We do have some of the features you have suggested to an extent (with tagging panel and lists) but yes they can definitely be enhanced. Will add these to our feature backlog.
    Meanwhile, it would be great to hear from you on some other features that you use in Story
    Thanks
    Rashi

  • Need suggestion for monitoring tools

    Hi experts,
    i am in process for finding a best approach for new environment given to me for sql server monitoring purpose.
    its sql server 2008 r2 x64 with 32 GB memory and 2008 R2 server OS.
    its a small setup and have two production servers only and both two servers are on two node active/passive cluster steup.
    i need to implement best monitoring approach in terms of only sql server (not for OS issues), with best monitoring real time reports, automated alerts for disk/log/space/job/server health/deadlock etc issues.
    please suggest me any two tools which can be best to go with considering cost and effectiveness and with single licenece only for all servers. can have upto 6 servers including dev/qa and 20 instances on them.
    please need urgent.

    I really like SQL Monitor from http://www.red-gate.com/products/dba/sql-monitor/
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Suggestion for improvement for the IDE

    A very simple improvement that will make the users life so much
    easier.
    When the IDE loads a project / workspace, when it loads the
    previous set of files back into the IDE, why not also have it
    place the cursor in the row and column it was last at?
    I hope to see the change in the next release!
    Thanks,
    Frank
    null

    Hi
    We appericiate your valuable comments/suggestions. I have filed
    an enhacement request for it.
    regards
    Frank Garber (guest) wrote:
    : A very simple improvement that will make the users life so much
    : easier.
    : When the IDE loads a project / workspace, when it loads the
    : previous set of files back into the IDE, why not also have it
    : place the cursor in the row and column it was last at?
    : I hope to see the change in the next release!
    : Thanks,
    : Frank
    null

  • Creating video stills with Lightroom 4. Suggestions for improvement.

    I have to create a lot of videos stills from videos. I am doing it with iMovie and SnapzProX right now. I would like to do it with Lightroom 4 but the work-flow has to be improved. Right now it is pretty unusable for my special purpose. I explain why.
    In iMovie I play a movie in full screen presentation mode. You can start and stop the movie with the space bar. You can navigate frame-by-frame with the arrow keys. Unfortunately you cannot jump by 10 frames if you press shift and arrow keys (like in other video apps). The video scrubbing area goes across the whole screen, so you have space enough to scrub and find the parts in the video that you like to grab. All in all this makes it pretty easy to find the exact still frames that you then can capture with SnapzProX. The down-side is that you have to organize the captured frames yourself by importing them into Lightroom.
    Now we have video import in Lightroom 4 and we can capture frames. But the handling is not really comfortable.
    You can start and stop the video with space but you cannot locate an exact frame with the arrow keys. You have to use the locator and scrub with the mouse. Since the scrubbing area is short it is pretty difficult to find the exact frame. To capture a frame you have to select the pop-up.
    Here is my suggestions to turn the video feature in Lightroom 4 into a dream for people who need to capture video stills.
    Make the video slider bigger. At least across the whole video.
    Go to next and previous frame via arrow keys
    Jump by +10 / -10 frames via shift + arrow keys
    Keeping arrow keys pressed should repeat the action
    Create a keyboard shortcut for capturing a frame
    Imagine how this would improve the work-flow.
    All videos stills would be automatically organized in Lightroom.
    You have the original video file linked and can add more stills later.
    You can color correct the stills.
    AND - you can color correct the video.
    I am just wondering how I would export the color corrected video to something like Apple Intermediate to process it further via Compressor for web delivery. I haven't tried this yet. Any ideas?
    I hope my suggestions make sense and find their way in the finished product.
    Andreas

    While in video, using captured frame – my picture is extracted at 19 20 x 10 80.
    Attempting to use this picture in the books module causes resolution problems yet the same picture when used in the print module and save to a picture file causes no resolution problems and becomes 255 0 x 3300 when using it in the book module.
    another improvement would be to set the resolution so it reacts like it does in the print module and adjust the book module similary

Maybe you are looking for

  • Error in accounting interface:  FI/CO interface: Balance in transaction cur

    Hello Gurus- We are on ECC 6.0 and we are having a problem with a few billing documents.  Below is an example of the error we are receiving with several billing documents via VXF3: Diagnosis     The balances in transaction currency must be zero for  

  • Copying header text to the billing text in the same document

    Hi,    I just want to know ,can we copy one text to another text in the same document.it means that once we enter the header text , can it be copied into all the texts and inturn it should be copied to all the proceeding documents. Regards Ram Pedarl

  • Strange things happen after "pacman -Syyu"...

    Hello everyone... After upgrading a few days ago with pacman, my Arch has become a little bit strange... I change some icons in my desktop from place to place (ex, from upper right corner to left lower corner) and they stay, but when i loggof and log

  • 5320 XM Cell Broadcast and Date and Profiles on sa...

    How do I get the Cellbroadcast, Date, and Profile Name to be displayed on different line on the manin screen. I am unable to see the cellbroadcast from my service provider. Thanks Overberg

  • Removed conditions still 'visible', how to remove it permanently?

    Hi, I put a condition in my workflow, but then had to remove it. So I removed it from the workflow builder. Now everytime i generate and activate my workflow again i still get warnings on the condition that i removed. My guess is that the condition i