Getting version error...
I am trying to compile the following code :
import javax.ejb.*;
public class HelloBean implements SessionBean
public void ejbCreate() {}
public void ejbActivate() {}
public void ejbPassivate() {}
public void ejbRemove() {}
public void setSessionContext(SessionContext sc){}
public String sayHello ()
System.out.println ("Someone called sayHello()");
return "Hello! World";
}But when i try to compile this piece of code, i am getting following error :
HelloBean.java:5: cannot access javax.ejb.SessionBean
bad class file: C:\java_addons\ejb_api\ejb-3_0-api.jar(javax/ejb/SessionBean.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
public class HelloBean implements SessionBean
^
1 errorI have set classpath for ejb-3_0-api.jar
I was also getting the same error when i tried some code with JAXP package.
I am using JDK 1.4
Can anyone help me in sorting out this problem?
If your machine is using 1.4 for a compiler it would generate version 48.0 classfiles. Version 49.0 is generated only by the 1.5 compiler.
It is quite possible to have versions mixed up by that. System path settings can easily cause that.
Check your Windows and Windows/System directories for example, there could well be java.exe and javaw.exe executables in there. Older JVMs installed those to be "helpful" so people didn't have to mess with their path settings, but new ones don't (and some uninstallers forgot to remove them).
Delete those 2 files if you find them and you should have the same compiler and runtime versions again (the Windows directories have higher priority than any other on the system path, so files there get taken even if files elsewhere exist on the path that are found earlier).
On Unix systems similar things can happen.
Similar Messages
-
Get "version error" when try to register 7940 phone
When I try to register a cisco 7940 iphone I get the "version error" - from research it said to double check to make sure you have the right model phone. I do have the correct phone type specified but still gets this error
When an attempt is made to register a new phone, the Cisco IP phone screen displays version error, and the phone gets stuck in this stage.
This issue occurs when the wrong phone type is chosen on the Device > Phone configuration on the CallManager Administration page. Choose the correct phone type to resolve the issue.
Anyone else running into this issue ? Any advise ? I tried 3 different 7940 phones and get the same "version error". I tried using a template when adding the phone as well as creating manualy the new phone but still same "version error"Hi Johan
Try to delete and Re-add the phone back to CUCM and they try to register the phone.
Regards
Aditya Gupta -
Have a Macbook Pro and a 4th gen iPod Touch. Downloaded and install iOS 4.3.2 yesterday. Upgrade went without a hitch, but now iTunes on My Macbook Pro will not open. I get an error that says --The file "iTunes Library" cannot be read because it was created by a newer version of iTunes--. I am running iTunes 10.1. I searched for Updates to my MacBook Pro (running 10.6.7), but comes back saying no updates available. WHAT IS GOING ON??
Is your computer still authorized in the Store menu in iTunes?
iTunes Store: About authorization and deauthorization
When I changed to my new MacBookPro I had to authorize it although I used TimeMachine to transfer my settings and data.
Did you try to deselect Wi-Fi syncing and enable it again after that?
iTunes 10.5 and later: Troubleshooting iTunes Wi-Fi syncing
Did you already transfer your purchases and manually started a backup? -
This is what I think may have happened. The other day, Thursday Sept 8th, I shut down my pc in the middle of a Firefox upgrade. Now when I try to access Firefox on my pc, I get this error message:
XULRUNNER Error: Platform version '6.0.2 is not compatible with min Version >= 6.0.1 max Version < 6.0.1
What is this about and how can I retsore access to Firefox on my pc?If you use ZoneAlarm Extreme Security then try to disable Virtualization.
Do a clean reinstall and delete the Firefox program folder.
* http://kb.mozillazine.org/Browser_will_not_start_up#XULRunner_error_after_an_update
*[[/questions/869812]]
*[[/questions/869951]] -
firefox used to work no problem, I updated firefox a few month ago, now firefox will not open and I get the error message as above
As of Firefox 4.0 and newer one needs both OSX 10.5+ and a Intel Mac.
The last version to work on a Intel Mac using OSX 10.4.* is Firefox 3.6.*
http://www.mozilla.org/en-US/firefox/all-older.html
http://www.mozilla.org/en-US/firefox/7.0/system-requirements/
http://www.mozilla.org/en-US/firefox/4.0/system-requirements/
http://www.mozilla.org/en-US/firefox/3.6/system-requirements/ -
I'm trying to update my iphone 3GS to the 4.3.4 version and I am getting the error message "This version of itunes (version 9.1.1) is the current version. How do I update my PHONE and why is an itunes update being confused for my iphone?
You need iTunes 10.0 or greater to update your phone...iTunes isn't confused at all. If you're on a Mac, you'll need OS X 10.5.8 or greater to update iTunes to 10.0 or greater.
-
Hello,
Please help me figure this out. I'm very unhappy at the moment. I'm fustrated and don't have any idea how to revert to the original version before the update was done on iMovie 10. I NEVER hated APPLE until NOW!! I love APPLE products and apps so please help me stay in that mindset. So I worked on some movie projects when I got my macbook pro 6 months ago. I update reguarly. I saw the update prompt and honestly, I did not think I would have ANY issuess with opening my previous files that I created only a few months ago with this updated version.The new updated version of iMovie 10 won't let me open my previous files I created before the update today. I have a wedding that I'm trying to finish and deliver and now I can't because that file version won't open. I keep getting an error message and the iMovie app closes. Last night I saw the file and tried to open it but no luck. Error message came up again. I reboot and turned off my laptop for the evening and tried again just now but nothing!! I need that video. My job depends on it! I worked so hard on this wedding video and now it's lost and won't open. I work another job and don't have much time. I really don't want to start all over again. Please help me. Thanks so much for your assistance.
Fustrated APPLE customer
Jolly A. RuppI also have Jolly's problem. I found the iMovie 9.0.9 folder and tried to launch the older version of iMove. It would not launch. I removed all of the iMovie preferences from the Preferences folder, removed iMove 10 from the applications folder, and restarted my Mac. iMove 9.0.9 still won't launch and I can't access my videos created with the older version of iMovie. Is there a way to uninstall iMovie 10 and reinstall iMovie 9.0.9?
I am running Yosemitie on a iMac.
Paul -
Since I installed Firefox 4 I keep on getting the error "Platform version 2.0 not supported with...". Is there any way to update the XUL file? I do re-instalations everyday (after the re-instal, firefox runs smooth)
Do a clean (re-)install:
* Download a fresh Firefox copy and save the file to the desktop.
* Firefox 4.0: http://www.mozilla.com/firefox/all.html
* Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
* Don't remove personal data if you uninstall the current version.
* It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
Your bookmarks and other profile data are stored elsewhere (not in the Firefox program folder) and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox. -
I am trying to download latest version of Itunes and Safari, and I get an error message that my signature is invalid. Help?
I am trying to download latest version of Itunes and Safari, and I get an error message that my signature is invalid. Help?
-
I have an iPod Touch version iOS 4.2.1, 8 G capacity, and whenever iTunes tries to sync my iPod, I get an error message saying "Mobile Backup has encountered a problem and needs to close", and the sync fails. I have tried deleting and reinstalling iTunes, and the same thing happens. What can I do to fix this problem?
Try:
iOS: If you can't back up or restore from a backup in iTunes -
I can not dowload the new updated software for my Ipod touch 4G. When i do I get an error message that says Network connection has timed out. I have done the trouble shooting steps. Downloaded the latest version of Itunes, and checked network connection
Disabling the computer's antivirus and firewall during the download and update usually resolves the timeout error.
-
I am having a problem updating itunes to the latest version on my windows xp i get the error message 126 and the banner that says this application has failed because MSVCR80.dll was not found. anyone have a fix suggestion? thanks
Click here and follow the instructions.
(98724) -
After installing the latest version of ITunes I get an error message that says this application has failed to start because MSVCR80.dll was not found. how do I get Itunes to start working again?
See... Unable to install or open > http://support.apple.com/kb/TS5376
Also See this User Tip by turingtest2
https://discussions.apple.com/docs/DOC-6562 -
I am trying to install itunes on my hp laptop with windows vista 64 bit. But when i install i get this error "An error occured during the installation of assembly "Microsoft.VC80.CRT.type="win32"version="8.0.50727.6195".publickeyTOken="1fc8b3 b9a1e18e3b".processorArchitecture="x86""
Repair your Apple Application Support.
Control Panel > Programs n Features > highlight AAS, click CHANGE the REPAIR -
My Windows computers (one Windows Vista computer, one XP sp3 computer) recently attemped to upgrade Itunes to the latest version, and now, I get an error message that reads:
Runtime Error
R6034
An application has made an attempt to load the C runtime Library incorrectly. Please contact the application's support team for more information. When I click OK, I get another error message tat states "Itunes was not installed correctly. Please re-install Itunes. Error 7 (Windows Error 1114).When I re-install
When I re-install Itunes, I get the same result.
Now, Itunes will not work. I cannot play any of my Pod Casts, or downloaded music. Quick Time Player, and any other Apple application does not work. What, if anything, is being done to fix this?Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
The information in the first link is Apple's only public acknowledgement of this issue. No other actions they're taking to address this are publicly known.
(100293)
Maybe you are looking for
-
I have some PL/SQL code that looks like this: PROCEDURE my_proc(start_date DATE, end_date DATE) AS BEGIN FOR rec IN (SELECT DISTINCT column1 FROM my_table WHERE test_date_and_time BETWEEN start_date AND end_date;) LOOP
-
Adding a new field to a standard webdynpro component's layout
Hi all, I need to add a new field to a standard webdynpro component's( in my case the component is ''/SAPSRM/WDC_UI_SC_DOTC_BD') layout.How do i go about adding a new field to the standard component's lay out? can anyone help me with the necessary
-
How do I remove the file ID from the file name of an an uploaded File?
Hello, Im uploading/downloading files in my application (apex 4.0), and it working great, however, the filename that appears has the file id I believe attached to it, ex: F1903848613/my_test_file.txt Im figuring I need to use some kind of combination
-
How to edit pdfs when you keep getting error message (14)
How to edit pdfs - I have a pdf I created to make a certificate - I am naturally trying to edit that for another person - ALL of these keep giving me the same message - error reading this (14). Even when I DO manage to get one to open and let me edi
-
Open two Forms Connecting Two different Data bases
In The Same Company Two Different Places Open Same SAPB1 Application Connecting with Two different DataBases,Open both two forms same time.