Message Board
Message Board > Java > major.minor error... u solve, u genious |
December 9, 2006, 17:13 | |
AXR
Ear-Infecting Monkey 36 posts |
Ok, so whenever I take my compiled .Class files to another computer and try to run them, i get the same error. Its always something like "major.minor 49 version (bla bla bla)". I saw the word version and told myself... "OH ill just make sure i have similar versions.." Well it didn't work!!! I googled this error and whenever the problem was solved the answer they gave meant nothing (to me)... Can anyone possibly help me with this? Reason to help me (lol) ----------------------- I've just figured out how to make server/client socket connections.. WOOT... ill make a little surprise MMORPG (a basic one) and ill go on from there. BUT i need java to work on computers other than mine. THANKS 4 any help ____________ SHALOM, MA NISHMA AcHI!? |
# |
December 9, 2006, 17:44 | |
PEader
お前はもう死んでいる 1486 posts |
What development environment are you using? What is the full error message? How are you running your compiled classes? What version of the Java Development Kit(JDK) are you using? I think you are using the wrong Java Runtime Environment(JRE) You can either compile your code for a different JRE or ensure the other computer has the same JRE and that it is using the correct one. The following is from the Java forums on Sun: Quote: The problem is due to for version 49.0 Jdk 1.5 or higher is required First Check on command prompt with command to see which version JVM is using java -version see all path from java -verbose command if it is showing wrong version then check the JAVA_HOME and path variables in Environment Variables. if Paths there are correct then see any JRE path not comming before jdk path. In my case Oracle JRE path was comming before jdk path and it was making all mess. Hope this will help Regards Salman Zafar Interconnect Billing Developer S.Tech Pakistan You need to brush up on your search engine skills. These two threads discuss your problem in depth; http://forum.java.sun.com/thre … threadID=667600 http://forum.java.sun.com/thre … &tstart=120 ____________ I see 57,005 people. |
# |
December 9, 2006, 19:02 | |
AXR
Ear-Infecting Monkey 36 posts |
java version "1.5.0_06" Java 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot Client VM (build 1.5.0_06-b05, mixed mode, sharing) Thats my version spew out... Im gonna try some of your idea about JRE, and environment vars... thanks, ill be back ____________ SHALOM, MA NISHMA AcHI!? |
# |
December 9, 2006, 19:25 | |
AXR
Ear-Infecting Monkey 36 posts |
thanks... got it to work
____________ SHALOM, MA NISHMA AcHI!? |
# |
December 9, 2006, 19:41 | |
PEader
お前はもう死んでいる 1486 posts |
Quoting AXR: thanks... got it to work So what was the solution/problem? ____________ I see 57,005 people. |
# |
December 9, 2006, 22:42 | |
AXR
Ear-Infecting Monkey 36 posts |
i had to change the version to 1.5.0 because thats what i compiled with... my other comp was running on 1.4.2 I tryed changin the environment vars... but i sux at that so it didn't work. I ended up deleting the j2re.1.4.2 file and renaming the updated version by that name. Basically i tricked the computer because i was to stupid to tell it what to do... Did that make sense by any chance? ____________ SHALOM, MA NISHMA AcHI!? |
# |
December 9, 2006, 23:34 | |
PEader
お前はもう死んでいる 1486 posts |
Quoting AXR: i had to change the version to 1.5.0 because thats what i compiled with... my other comp was running on 1.4.2 I tryed changin the environment vars... but i sux at that so it didn't work. I ended up deleting the j2re.1.4.2 file and renaming the updated version by that name. Basically i tricked the computer because i was to stupid to tell it what to do... Did that make sense by any chance? Yeah it does. I have one question: why didn't you just uninstall the 1.4.2 JRE? ____________ I see 57,005 people. |
# |
December 9, 2006, 23:57 | |
AXR
Ear-Infecting Monkey 36 posts |
uhm... i dont really know how... there wasn't like an uninstall button that i was aware of... wheres it suppose to be? ____________ SHALOM, MA NISHMA AcHI!? |
# |
December 10, 2006, 00:21 | |
PEader
お前はもう死んでいる 1486 posts |
For me it appears on the Add or Remove Programs Control Panel with a label of "J2SE Runtime Environment 5.0 update 10" also in the Control Panel for Windows there is a Java widget which you can use to update your JRE.
____________ I see 57,005 people. |
# |
December 10, 2006, 01:00 | |
AXR
Ear-Infecting Monkey 36 posts |
o.... ill try that next time THX alot dude u is genious ____________ SHALOM, MA NISHMA AcHI!? |
# |
Message Board > Java > major.minor error... u solve, u genious