BlackBerry Simulator Internet settings (Exception in thread "main" Java.lang.UnsupportedClassVersionError:Bad version number in. class file)

Source: Internet
Author: User

Use the BlackBerry Simulator browser to surf the Internet with some settings.

1, need to download the installation of MDS (low version need to download online). It's like 4.5 and 4.6 have it. In the installation path MDS directory.

Run Run.bat

2, to ensure the setting of the environment variable java_home.

Question: But I use 4.6 environment, one runs run. It will quickly flash through the two cmd windows. There seems to be something abnormal ... But it's hard to see clearly. Final Solution:

Edit Run.bat and you will see "Start cmd/v:on/c ..." When you open it. The two command lines. You can remove the full start.

are changed to "cmd/v:on/c". Then add the command to the last line pause

Then run the Run.bat. At this time finally see the abnormal:

Exception in thread "main" Java.lang.UnsupportedClassVersionError:Bad version n
Umber in. class file
At Java.lang.ClassLoader.defineClass1 (Native method)
At Java.lang.ClassLoader.defineClass (Unknown Source)
At Java.security.SecureClassLoader.defineClass (Unknown Source)
At Java.net.URLClassLoader.defineClass (Unknown Source)
At java.net.urlclassloader.access$100 (Unknown Source)
At Java.net.urlclassloader$1.run (Unknown Source)
At Java.security.AccessController.doPrivileged (Native method)
At Java.net.URLClassLoader.findClass (Unknown Source)
At Java.lang.ClassLoader.loadClass (Unknown Source)
At Sun.misc.launcher$appclassloader.loadclass (Unknown Source)
At Java.lang.ClassLoader.loadClass (Unknown Source)
At Java.lang.ClassLoader.loadClassInternal (Unknown Source)
Please press any key to continue ...

This is due to JDK misalignment. I used the JDK1.5 version and later found out that the 4.6 version had to be in 1.6 jdk version. (4.5 and a bit did not try)

then I set the set java_home=y:/java/jre1.6.0 inside the Run.bat .

It's right to run again. If the cmd window has been turned on or off,. Show

SCM 4.1.5.26 26 2008/02/06
<2010-01-29 17:01:52.703 Cst>:[0]:<mds-cs_mds>:<info >:<layer = SCM, J2SE 1.6.0
Charsets SUPPORTED:BIG5,BIG5-HKSCS,EUC-JP,EUC-KR,GB18030,GB2312,GBK,IBM-THAI,IBM
00858,ibm01140,ibm01141,ibm01142,ibm01143,ibm01144,ibm01145,ibm01146,ibm01147,ib
m01148,ibm01149,ibm037,ibm1026,ibm1047,ibm273,ibm277,ibm278,ibm280,ibm284,ibm285
, Ibm297,ibm420,ibm424,ibm437,ibm500,ibm775,ibm850,ibm852,ibm855,ibm857,ibm860,ib
M861,ibm862,ibm863,ibm864,ibm865,ibm866,ibm868,ibm869,ibm870,ibm871,ibm918,iso-2
022-cn,iso-2022-jp,iso-2022-jp-2,iso-2022-kr,iso-8859-1,iso-8859-13,iso-8859-15,
Iso-8859-2,iso-8859-3,iso-8859-4,iso-8859-5,iso-8859-6,iso-8859-7,iso-8859-8,iso
-8859-9,jis_x0201,jis_x0212-1990,koi8-r,koi8-u,shift_jis,tis-620,us-ascii,utf-16
, Utf-16be,utf-16le,utf-32,utf-32be,utf-32le,utf-8,windows-1250,windows-1251,wind
Ows-1252,windows-1253,windows-1254,windows-1255,windows-1256,windows-1257,window
s-1258,windows-31j,x-big5-solaris,x-euc-jp-linux,x-euc-tw,x-eucjp-open,x-ibm1006
, x-ibm1025,x-ibm1046,x-ibm1097,x-ibm1098,x-ibm1112,x-ibm1122,x-ibm1123,x-ibm1124
, X-ibm1381,x-ibm1383,x-ibm33722,x-ibm737,x-ibm834,x-ibm856,x-ibm874,x-ibm875,x-i
Bm921,x-ibm922,x-ibm930,x-ibm933,x-ibm935,x-ibm937,x-ibm939,x-ibm942,x-ibm942c,x
-ibm943,x-ibm943c,x-ibm948,x-ibm949,x-ibm949c,x-ibm950,x-ibm964,x-ibm970,x-iscii
91,x-iso-2022-cn-cns,x-iso-2022-cn-gb,x-iso-8859-11,x-jis0208,x-jisautodetect,x-
johab,x-macarabic,x-maccentraleurope,x-maccroatian,x-maccyrillic,x-macdingbat,x-
Macgreek,x-machebrew,x-maciceland,x-macroman,x-macromania,x-macsymbol,x-macthai,
X-macturkish,x-macukraine,x-ms950-hkscs,x-mswin-936,x-pck,x-utf-16le-bom,x-utf-3
2be-bom,x-utf-32le-bom,x-windows-50220,x-windows-50221,x-windows-874,x-windows-9
49,x-windows-950,x-windows-iso2022jp>
<2010-01-29 17:01:52.718 Cst>:[1]:<mds-cs_mds>:<info >:<layer = SCM, EVENT = Def
Ault Job Pool size = 10>

.........

..........

Description the configuration was successful. Do not close this window at this time.

Then turn on the simulator and surf the Internet. Add the set of words set in Chinese. You can easily browse the Web site. Regardless of domestic and foreign web site at a glance.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.