I'm compiling with 1.5 but java is looking for 1.4 classes,why?

Hello all,
I need to compile my project with 1.5 and I have set everything correctly in my ant build script(I think) but I am getting the famous error:
[javac] class file has wrong version 49.0, should be 48.0
[javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
I have been searching on Google for a couple of hours and read the whole thread on this that was locked. Most people with this error seem to want to compile with 1.4 but I'm compiling with 1.5 and for some reason it things I'm doing it with 1.4.
If I do java -version i see 1.5, If I put -verbose when calling my build script I see 1.5 as the java version.
I have tried with:
jrockit_150_12
jdk150_12

jmejiaa wrote:
Hello all,
I need to compile my project with 1.5 and I have set everything correctly in my ant build script(I think) but I am getting the famous error:
[javac] class file has wrong version 49.0, should be 48.0
[javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
I have been searching on Google for a couple of hours and read the whole thread on this that was locked. Most people with this error seem to want to compile with 1.4 but I'm compiling with 1.5 and for some reason it things I'm doing it with 1.4.
Easiest explanation would be because you are.
Actually that is the only explanation.
If I do java -version i see 1.5, If I put -verbose when calling my build script I see 1.5 as the java version. You can find the 1.4 version and remove it or change the directory.
One cause of this can because ant runs with a version but there are ways to make it use another one.
And normally you don't run ant with java but rather via a script file and that specifies the java (for ant.)

Similar Messages

  • Old computer crashed.  trying to sync my iphone with new computer but phone is looking for old computer.  how do i change it?

    old computer crashed.  iphone is looking for old computer so I can't get it to sync with my new computer.  Suggestions?

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • Is there a (relatively simple) way to skip tracks with an iPod touch 5th gen using a physical button? I'm aware songs can be skipped on-screen without unlocking the iPod, but I'm looking for a method that doesn't require taking my eyes off the road.

    Is there a (relatively simple) way to skip tracks with an iPod touch 5th gen using a physical button? I'm aware songs can be skipped on-screen without unlocking the iPod, but I'm looking for a method that doesn't require taking my eyes off the road while driving. For that reason, I'm also not interested in adding in headphones or additional devices that have the desired button functions. Going both forward and back would be great but I would be pleased just to have a "sight-free" way to go forward.
    I've seen some mention here and there about ways to maybe change it so the volume buttons change tracks and holding the volume buttons changes the volume... but I don't know what's involved in that or if its even possible/recommended for a new 5th gen iPod. I think its a great device but its sadly lacking in music oriented functions and features... which is disappointing since music is why most people would bother getting one instead of some other "iDevice" :/

    Given that you cannot do what you have asked for, perhaps you simply need to find another solution to your root problem.
    Presumably, you want to skip to the next track because you don't want to hear the current one, and that is because...
    You don't like it.
    You've heard it recently and don't want to hear it now.
    Simply don't want to hear it at this time.
    For problem number 1. Don't put it on the iPod in the first place. (I know, obvious answer!)
    For problem number 2. How about playing from a Smart Playlist (initially created in your iTunes Library) which has only songs you've not played recently?
    For problem number 3. Hhhmmm! Create alternative Playlists for use in the car.
    As for going back to the start of the "now playing" track.... Well, if your Playlist has only songs that you really, really want to hear, then you'll be looking forward to that rather go back to the beginning of the current song.
    I'm not trying to be prescriptive, just giving you food for thought.
    (They are all cheaper options than buying a car which can control the iPod from the steering wheel.)

  • Trying to connect my new Apple TV to my Samsung flatscreen TV is blinking menu is there and can be accesed with the remote, but can be seen for one sec.

    Trying to connect my new Apple TV to my Samsung flatscreen TV with a Belkin HDMI cable. Screen is blinking menu is there and can be accesed with the remote, but can be seen for one sec.

    Changed the cable and its working.

  • HT204150 I'm having problems with random contacts disappearing from icloud. I have a saved text from a contact that displays her info but when I look for her in contacts it's missing.

    I'm having problems with random contacts disappearing from icloud. I have a saved text from a contact that displays her info but when I look for her in contacts it's missing.

    It is locked to your sisters carrier.
    She would have to ask her carrier if they unlock iPhones and if she qualifies for this service.

  • I have a macbook pro and an Iphone, but when I look for them in find my iphone, I see ten in different accounts, WHY?

    I have a macbook pro and an Iphone, but when I look for them in find my iphone, I see them in different accounts, WHY?

    Could they be signed onto iCloud with different Apple IDs?

  • Can anyone help on integrating Unifier with WebCenter Portal ? We are looking for a solution where we can show Unifier pages within WebCenter Portal application. Is this possible ?

    Can anyone help on integrating Unifier with WebCenter Portal ? We are looking for a solution where we can show Unifier pages within WebCenter Portal application. Is this possible ?

    If you simply would have posted here first, there are plenty of people who would have informed you of the current policy to have a data plan active on an account during the entire contract if purchasing a discounted smartphone.
    Unfortunately, there are just as many on here who would claim the people informing you about this policy of being Verizon plants spreading disinformation and trying to make people afraid to upgrade via this route.
    Yes this is a new policy, one which has been pointed out multiple times in these forums.  Good luck, but I doubt you will have an outcome over this which will make you happy.
    Verizon is closing as many loopholes to keep unlimited data as they can.

  • I just bought iphone 5 and my itunes says I need itunes 10.7 But when I look for upgrades it says I have the current version of itunes. HELP!

    I just bought iphone 5 and my itunes says I need itunes 10.7 But when I look for upgrades it says I have the current version of itunes. HELP!

    I am so sorry I am frustrating you. This is the first time I have used this community and am leanring as I go. I am not able to see the entire post that you leave, unless I look at it on my phone (email)--I am so sorry. You have no idea how much i appreciate your help. Yes, I see that I can get the later version of OS software, but its not availabe for immediate download. My only options appear to be having it shipped, or going to the store to purchase. And if you know of another way that I can access all of my itunes library music on my new phone withouth using itunes, I would love to hear about it.--thanks and again i am so sorry for frustrating you.

  • On my iPod touch it says on the settings I have wifi but when I look for the 3 bars there is no wifi please help

    On my iPod touch it says on the settings i am connected to my home wifi but when I look for the 3. Bars beside the time they are not there this therefore stops me from using internet please help

    Does the iOS device connect to other networks?
    Does the iOS device see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect before?
    Try the following to rule out a software problem:                 
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears. already suggested
    - Power off and then back on the router
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • So i connected my ipod shuffle to my apple computer and the status light on my ipod shuffle shows that it is charging but when i look for it on the pc dock or in itunes it doesn't show it at all.... so what do I do???

    so i connected my ipod shuffle to my apple computer and the status light on my ipod shuffle shows that it is charging but when i look for it on the pc dock or in itunes it doesn't show it at all.... so what do I do???

    If you have not already, I would shut down (power off) your computer.  Do this to Reset your shuffle
    http://support.apple.com/kb/HT1655
    Start up computer.  Run iTunes.  Connect shuffle.
    If you have added a new USB device recently (since the last time it worked properly), you may want to try disconnecting it to see if that makes any difference.

  • When trying to send a link off firefox via email the system looks for a g mail account that I do not have nor want to have. I've told the settings to use my outlook account but it keeps looking for g mail. how do i correct?

    when trying to send a link off firefox via email the system looks for a g mail account that I do not have nor want to have. I've told the settings to use my outlook account but it keeps looking for g mail. how do i correct?

    http://support.mozilla.com/en-US/kb/Changing+the+e-mail+program+used+by+Firefox

  • Acrobat Standard 6.0 Set as Default Viewer, but Browser is looking for Adobe Reader 8 or 9

    All,
    I use Adobe Acrobat Standard 6.0 for viewing and creating PDF's.  Just a couple of days ago, I tried opening a patent document I found on Google.  The browser displayed the following error:
    "The Adobe Acrobat/Reader that is running can not be used to view PDF files in a Web Browser.  Adobe Acrobat/Reader version 8 or 9 is required.  Please exit and try again."
    So I looked for an update for Adobe Reader and downloaded Adobe Reader 9.1.2.
    The next PDF document that I opened came up in Adobe Reader....NOT Adobe Acrobat.  The installation must have changed the default viewer.  So I right-clicked on the PDF file icon and selected OPEN WITH Adobe Acrobat.  I clicked the checkbox to "Always open with this program..."  This seems to have fixed the default viewer problem, as PDF files now open with Adobe Acrobat Standard...just the way I want things to work.
    I still have the problem of not being able to open many documents within a browser...I think because the browser is looking to open the PDF files in Adobe Reader 9.1.2, NOT Acrobat 6.0.  But Adobe Acrobat is now the default viewer.
    Does Acrobat function independently of Reader?  Or is Reader a module that is required for Acrobat to function properly?  Whatever the case may be, can somebody suggest a fix for this problem?
    Thanks,
    Neal
    [email address deleted by host]

    They do not require each other for running as mentioned. There are some modules in common and that is where you run into problems. There are issues with the parts that remain resident also. I would suggest you follow the other advice you have been given. Unfortunately, there are some PDFs that may not open correctly in AA6. You may have run into some of those.

  • I have a new MacBook Air.  When I first got it, I migrated some of my files from my PC to the MacBook Air with no issues.  Now, I',m trying to migrate more documents, music, etc. and migration assistant won't get past "Looking for Other Computers."  Why?

    I have new MacBook Air. When I first got it, I migrated some of my files from my PC to the MacBook Air without any problems.  Now I'm trying to migrate more files, music, etc. and I keep getting the continuous spining circle with "Looking for Other Computers."  I've tried everything and for some reason it is not finding my PC. What am I doing wrong?

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • My officejet pro 8500 a910 is not working with mac os lion. message is 'looking for printer'.

    plse help. my officejet pro 8500 910A was working perfectly with mac os 10.6, but with installation of lion, it no longer works. message i get is 'looking for printer'. i have tried reinstalling the printer many times. also tried the Update software option but my software is fully up to date. 

    Download and install this: http://support.apple.com/kb/DL907
    Restart your Mac.
    Re-add the printer in System Prefst > Print & Scan
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Trying to use Migration Assistant to restore from Time Machine backup but it keeps "Looking for other computers..."

    Hi!
    I just bought a new MacBook Pro 15" and I wanted to transfer my old files from a previous Time Machine backup done with my old MacBook Pro 15".
    Both computers have Mac OS X 10.8.2 (Mountain Lion) installed.
    I always used Migration Assistant without any problem to accomplish this task, but now I don't know why it's stuck on a screen displaying "Looking for other computers...". What? What computer? I'm trying to restore from a Time Machine backup on an external hard drive, so I don't understand what computer it is looking for.
    Do you have any idea to solve the problem?
    Thanks!

    At the screen in Migration Assistant titled "Select a Migration Method," select From a Time Machine backup or other disk.
    How to use Migration Assistant to transfer files from another Mac

Maybe you are looking for