GetResourceAsStream not working ($50 reward for help)

Hi,
I can't get getResourceAsStream to work for reading text-file in Sun's studio mobility. when trying to compile the class I get message "Errors during compiling Qgui".
I have (by commenting out code) confirmed that the message is caused by the line reading "InputStream is = getResourceAsStream("textfile.txt");".
If someone can help me out on this, I will pay him/her $50 (via Paypal?) for pure joy of getting my prototype finally ready. Heck, I can pay something even if the advice is "get rid of studio mobility and use X instead", if X works better and instructions are clear..
Cheers,
Mikko

Specifying my own message:
- Mobility Studio is version 6 2004Q3
- I have made jar-recipe (file->new->JAR Recipe), but am not sure if it has everything there should be (used "Generate" from the wizard)
- the line causing the trouble is "InputStream is = Qgui.class.getResourceAsStream("textfile.txt"); " ("Qgui" being the name of the current class; sorry for incorrectness in original message)
- I could not get this.class.getResourceAsStream to be accepted (which is another form of using getResourceAsStream I have seen in examples I found from net); it causes "identifier expected"
While I have some experience coding Java, I do not know much about jar-files or possible properties that should be somehow somewhere set. And it seems that basic what-to-do-for-beginners documentation beyond short tutorial for mobility studio is hard to find.
Cheers,
Mikko

Similar Messages

  • Hi, recently i bought macbook pro with retina display and installed windows 8 professional original software also. but in windows 8 track pad is not working properly. can you help me with providing drivers for trackpad to work on windows 8 professional .

    hi, recently i bought macbook pro with retina display and installed windows 8 professional original software also. but in windows 8 track pad/ TOUCHPAD is not working properly. can you help me with providing drivers for trackpad to work on windows 8 professional .

    Did you download and install the Windows Support software? If you did, did you use the Boot Camp Control icon to set up the trackpad how you want it?
    http://www.apple.com/support/bootcamp/
    https://discussions.apple.com/community/windows_software/boot_camp

  • I cannot get my messages/text messages to work om my Hi.  I am sending this thru my iPad.  Respond and let me know you got it.  Fun fun fun.  .  I did go and try to another Apple ID different from my iPhone but it still will not work.  Can anyone help me?

    I cannot get my messages/text messages to work om my Hi.  I am sending this thru my iPad.  Respond and let me know you got it.  Fun fun fun.  .  I did go and try to another Apple ID different from my iPhone but it still will not work.  Can anyone help me?

    chicx wrote:
    This is the third time of writing this on your Apple Support Communities!
    Not with your current user id.
    Far too much uneccesary information in your post, which only confuses things, a vast amount!
    Let's start with iTunes.
    Have you updated iTunes to 11.1.5, because the previous version did appear to have an issue about seeing iPods?
    With iTunes 11.1.5 installed, look in Edit/Preferences/Devices, (or use the ALT key, followed by the E key and then the F key) and make sure that the box named Prevent iPods, iPhones and iPads from syncing automatically does not have a tick in the box.
    Once you have doen those two things, check to see if the iPod is seen by iTunes.
    chicx wrote:
    By the way, what does IOS mean? (I thought IO stood for operating system, but am flummoxed by the S on the end.
    Really?
    OS stands for Operating System. (In computer speak, IO means Input/Output.)
    iOS originally stood for iPhone Operating System, but it now refers to the iPod Touch and iPhone. The iPod Classic, which you have listed in your profile as your iPod, does not use iOS.
    I assume that you have been listening to the Podcast in your iTunes on the computer as you cannot transfer it to your iPod. It's what I'd do.

  • Hello, the 'Save As' dialog box used to allow the backspace button to go up one level in the directory when the focus is in the folder contents box but it does not work any more, please help.

    Hello, the 'Save As' dialog box used to allow the backspace button to go up one level in the directory when the focus is in the folder contents box but it does not work any more, please help. BTW the same 'Save As' dialog in other applications still allow the backspace button to go up one level in the directory.

    cor-el,
    I kept forgetting and procrastinating about following your instructions, since I have internet access only for limited amounts of time and usually I am busy with important tasks when I am.
    Out of the blue, the problem corrected itself (the Save As box started to open full screen, then shrunk down to a normal size and the edges can now be dragged to a custom size).
    Even the copy and paste problem in the filenaming area seems to have been less troublesome lately even though there have been no updates to Firefox in a few weeks.
    Even though I marked the solution as not helpful, the problem has in fact been resolved. I will save the solution instructions in case the issue returns.

  • I recently downloaded iMovie on my iPhone 5 and it is telling me to connect to wifi or use itunes to download iMovie well I have done both and it is still not working can someone please help me?

    I recently downloaded iMovie on my iPhone 5 and it is telling me to connect to wifi or use itunes to download iMovie well I have done both and it is still not working can someone please help me?

    Hi troy157,
    I'm sorry you are having issues with the iMovie app you purchased for your iPhone5.
    The first thing I would suggest is to log out of your iTunes Account on your iPhone, turn the iPhone off and then on again, and see if app finishes downloading/updating.
    Settings > iTunes & App Stores > Tap on your Apple ID account > Tap Sign Out
    If the issues persists, the article below will give you a few more troubleshooting steps:
    iOS: Troubleshooting applications purchased from the App Store
    Try the following steps to resolve your issue, testing the app after each step.
    1. Update your device software
    Update your device to the latest version of iOS.
    2. Check for app updates
    Ensure that your apps are up to date:
    Open the App Store and tap Updates. If updates are available, tap Update All.
    When prompted, enter your iTunes Store account information. App Store will then download and install the application updates.
    Note: Some applications may require a Wi-Fi connection to update.3. Install another app from the App Store
    4. Restart the application
    If the issue affects only a single app, try closing just that app:
    Press the Home button to return to the Home screen.
    Double-tap the Home button to display recent apps.
    Tap and hold the affected app until the red minus appears.
    Tap the red minus to quit the app.
    Press the Home button, then restart the app.
    5. Restart your device
    Hold the Sleep/Wake button until "slide to power off" appears. Slide to power off your device. When it is off, press the Sleep/Wake button to turn it back on.6. Reinstall the affected application
    Remove the application from your device and reinstall it.
    Touch and hold any application icon on the Home Screen until the icons start to wiggle.
    Tap the "x" in the corner of the application you want to delete.
    Tap Delete to remove the application and all of its data from your device.
    Press the Home button.
    Go to the App Store.
    Search for the application and then download it again.
    Note: If it is a paid app, ensure you are using the iTunes account you purchased the app with originally. If it is not, you will be charged for the app again. For more information regarding downloading previously purchased items, see this article.
    I hope this information helps ....
    Have a great day!
    - Judy

  • Since installing Yosemite and Photos I can now no longer drag and drop a photo in an email, as I have always done. I repaired permission and restarted a number of times. still not working... Help?! Thanks, Michael

    Since installing Yosemite and Photos I can now no longer drag and drop a photo in an email, as I have always done. I repaired permission and restarted a number of times. still not working... Help?! Thanks, Michael

    What happens if you use the Share button and select Mail?
    What happens when you try? I had to hold there photo there for a short period before it would load.

  • My iTunes, on my computer is not syncing anything at all. We have tried re-downloading it but it does not work. Someone please help me?

    My iTunes, on my computer is not syncing anything at all. We have tried re-downloading it but it does not work. Someone please help me?

    Here:
    iOS: Device not recognized in iTunes for Windows
    or
    iPhone, iPad, iPod touch: Device not recognized in iTunes for Mac OS X

  • Why does iMessages does not work properly ? Please help me ! Its works better with the previous version if compared with the latest iOS

    Why does iMessages does not work properly ? Please help me ! Its works better with the previous version if compared with the latest iOS

    Many, many thanks for both of you Todd and Rick.
    to Rick:
    I suppose you mean the Color Settings in Project Settings as follows:
    - Working Space: None
    - Match Legacy ... Gamma Adjustments checked ON
    But it does not correct the colors in effects. And checking or unchecking Make Movie/Output Module Settings/Color Management/Profile/Preserve RGB does not make any difference.
    to both of you:
    Those parts of the video image that does not have color effects are just fine. In these parts the color is preserved when reimporting to FCP. However, those parts having color effects (except Levels, as decribed earlier) have altered color results. So, only the parts having effects affecting color are misinterpreted in the image area. The mismatch is of course seen in AE, before making the movie.
    What I ment with "Color Management not working properly" is that (instead of "disabling" it) Color Management does not seem to be able to correct this "misinterpretation" or difference in effect handling between AE 6 and 10.
    So, would you have any solution for this problem?
    Again, many thanks for your fast replies!

  • When i try to copy or paste text online by buttons its not works,maybe somebody can help me please-..:)

    when i try to copy or paste text online by buttons its not works,maybe somebody can help me please…..:)

    Resetting SMC may help.  http://support.apple.com/kb/HT3964
    Choose the method for:
    "Resetting SMC on portables with a battery you should not remove on your own".

  • I was trying to put music to my iPhone, but my iTunes don't recognize my iPhone. I tried to restart my iPhone, iMac, reinstalled iTunes..but still not working. can anyone please help?

    i was trying to put music to my iPhone, but my iTunes don't recognize my iPhone. I tried to restart my iPhone, iMac, reinstalled iTunes..but still not working. can anyone please help?

    This forum is for questions from those managing sites on iTunes U, Apple's service for colleges and universities to post educational material in the iTunes Store. You'll be most likely to get help with this issue if you ask in the general iTunes or iPhone forums.
    Regards.

  • YouTube will not work on safari for me on the ipad. Is there anyway to fix this? I can go anywhere else on the internet fine and it works on google chrome, but on safari it shows a blank screen with the bar on top after it loads.

    YouTube will not work on safari for me on the ipad. Is there anyway to fix this? I can go anywhere else on the internet fine and it works on google chrome, but on safari it shows a blank screen with the bar on top after it loads, if it's even loading at all.
    I do not know if it's relevant or not, but I got a message on my ipad while on safari saying that my iPhone has a virus. I looked it up and it seems it might have just been an ad from the website I was on, but it happened around the same time YouTube stopped working.

    You will find that using the YouTube app will provide a better viewing experience for YouTube videos.

  • When syncing my iPhone with iTunes, I get the error, "some items did not sync, see itunes for help", but can't find any helps for this in iTunes. Where can I find out what is not syncing?

    When syncing my iPhone with my iPhone, I get a message that 2 items did not sync - use iTunes for help.
    But I can't find any help information in iTunes at all, let alone when items are not syncing.
    How do I figure out what is not syncing?

    Since it seems App related, I'm not sure what to offer you.  I guess the only suggestion I have is for you to reboot your iPad and then try again.  To reboot, hold the power and home buttons at the same time for at least 10 seconds (keep holding past the swipe to shut down bar if it appears) until the Apple Logo appears, then let go of both buttons and your iPad will restart.  You won't lose any settings or data, so it's worth a shot.

  • Not working my setting for my icloud

    not working my setting for my icloud

    In what way is it not working?   Please give us more info.

  • On my macbook pro I have a message on my homepage telling me that certain items want to use my keychain. I've pressed cancel the message will not go. The mac is now running very slow and iphoto and safari are not working. Can anyone help?

    On my macbook pro I have a message on my homepage telling me that certain items want to use my keychain. I've pressed cancel the message will not go. The mac is now running very slow and iphoto and safari are not working. Can anyone help?

    What version of Mac OS X?
    What home page?
    What browser?

  • IMac 24" iMac  (iMac7,1), Intel Core 2 Duo 2,8 GHz  Ram 4 MB running OS 10.6.8: impossible upgrade to Mac OSX Mavericks. Already created second account, according to apple online support, but still doesn't work. Thanks for help.

    iMac 24" iMac  (iMac7,1), Intel Core 2 Duo 2,8 GHz  Ram 4 MB running OS 10.6.8: impossible upgrade to Mac OSX Mavericks. Already created second account, according to apple online support, but still doesn't work. Thanks for help.

    Your Mac is definitely one of the supported models? http://www.apple.com/uk/osx/specs/
    If so, what happens when you try to download? Is it a case of nothing happens? If so, take a look at the suggestions under 'Stalled Download' in this link:
    http://www.wired.com/gadgetlab/2013/10/mavericks-issues-and-fixes/#slideid-23477 1
    Also, some usrs have found that logging out of the Mac App Store and then back in again and starting over has kick-started the download. It seems that the 5+gb download can take a long time to give any feedback as to what's happening.

Maybe you are looking for

  • Can't boot from USB or DVD. HP Pavilion g6-2257sr

    My new notebook HP Pavilion g6-2257sr don't let me to boot from USB device.  When notebook's booting, I pressed ESC and F10. Then I set up UFEI boot order - USB-device / DVD / OS selector.  I use official Windows 7 disk, and several own USB devices w

  • File Adapter Fixed Field Length

    Hello,   I have the following problem. The file that is being generated is fixed length. However, there is no "\n" end line character in the end of each record. It is one big row of data. Is there any way to separate such file into records of informa

  • Why do I have multiple birthdays showing in iCal on my iPad using iOS 6?

    For some reason some of my birthdays are showing up as duplicates in my iCal on my iPad.  I have my calendars sync'd with Google Calendars and one of those calendars is my birthday callendar that I have setup in Google Canlendars.  Only some of the b

  • BILLING DOCUMENT NO RANGE

    Dear Scenario is such as follows: If  current invoice number is at say 9055555. Created a new number range just for the S2 cancellations starting at say 9088888. Now all newly created S1's will use this 9088888 range. I will have to manually manage S

  • Ipad Mini problem- stuck app download

    My ipad appears to be trying to download a good housekeeping app, but it never finishes downloading. It's stuck. I can't delete it b/c its not really there. Can you help?