![]() ![]() |
Jul 29 2005, 07:14 AM
Post
#1
|
|
|
Group: Members Posts: 260 Joined: 7-March 04 From: Toronto Member No.: 2,200 |
i have a .jar/.jad j2me apps
it runs on symbian phone but i install [java_slc3000_arm.ipk] and i run : CODE # cvm -jar test.jad java.lang.NullPointerException at sun.misc.CVM.parseCommandLineOptions([Ljava/lang/String;Ljava/lang/String;Z)I(Compiled Method)(Unknown Source) Cannot start VM (exception during sun.misc.CVM.parseCommandLineOptions()) Could not create JVM. it doesn't work so i try: CODE # cvm -jar test.jar -jar: illegal argument usage: cvm [-fullversion] [-showversion] [-version] [-D<property>=<value>] [-XbuildOptions] [-XshowBuildOptions] [-XappName=<value>] [-cp <classpath> | -classpath <classpath>] [-Xbootclasspath[/a | /p]:<path>] [-Xverify[:{all | remote | none}] [-XfullShutdown] [-Xgc:youngGen=<youngSemispaceSize>] [-Xms<size>] [-Xss<size>] [-Xjit:[<option>[,<option>]...]] {<main class name> | -jar <jarfile> | -appletviewer <URL>} [<arguments>...] Valid -Xjit options include: icost=<0..32767> - Interpreter transition cost mcost=<0..32767> - Mixed transition cost climit=<0..65535> - Compilation threshold compile={none|all|policy} - When to compile inline={none|all|virtual|nonvirtual} - What to inline policyTriggeredDecompilations={true|false} - Policy Triggered Decompilations maxCompiledMethodSize=<0..65535> - Max Compiled Method Size codeCacheSize=<0..33554432> - Code Cache Size upperCodeCacheThreshold=<0%..100%> - Upper Code Cache Threshold lowerCodeCacheThreshold=<0%..100%> - Lower Code Cache Threshold XregisterPhis={true|false} - Pass Phi values in registers XcompilingCausesClassLoading={true|false} - Compiling Causes Class Loading Could not create JVM. both doesn't work what are the way to run those j2me .jad/.jar application? please help |
|
|
|
Aug 1 2005, 11:33 PM
Post
#2
|
|
|
Group: Members Posts: 5 Joined: 27-July 05 Member No.: 7,702 |
QUOTE(samxiao @ Jul 29 2005, 05:14 PM) i have a .jar/.jad j2me apps it runs on symbian phone but i install [java_slc3000_arm.ipk] and i run : CODE # cvm -jar test.jad java.lang.NullPointerException at sun.misc.CVM.parseCommandLineOptions([Ljava/lang/String;Ljava/lang/String;Z)I(Compiled Method)(Unknown Source) Cannot start VM (exception during sun.misc.CVM.parseCommandLineOptions()) Could not create JVM. it doesn't work so i try: CODE # cvm -jar test.jar -jar: illegal argument usage: cvm [-fullversion] [-showversion] [-version] [-D<property>=<value>] [-XbuildOptions] [-XshowBuildOptions] [-XappName=<value>] [-cp <classpath> | -classpath <classpath>] [-Xbootclasspath[/a | /p]:<path>] [-Xverify[:{all | remote | none}] [-XfullShutdown] [-Xgc:youngGen=<youngSemispaceSize>] [-Xms<size>] [-Xss<size>] [-Xjit:[<option>[,<option>]...]] {<main class name> | -jar <jarfile> | -appletviewer <URL>} [<arguments>...] Valid -Xjit options include: icost=<0..32767> - Interpreter transition cost mcost=<0..32767> - Mixed transition cost climit=<0..65535> - Compilation threshold compile={none|all|policy} - When to compile inline={none|all|virtual|nonvirtual} - What to inline policyTriggeredDecompilations={true|false} - Policy Triggered Decompilations maxCompiledMethodSize=<0..65535> - Max Compiled Method Size codeCacheSize=<0..33554432> - Code Cache Size upperCodeCacheThreshold=<0%..100%> - Upper Code Cache Threshold lowerCodeCacheThreshold=<0%..100%> - Lower Code Cache Threshold XregisterPhis={true|false} - Pass Phi values in registers XcompilingCausesClassLoading={true|false} - Compiling Causes Class Loading Could not create JVM. both doesn't work what are the way to run those j2me .jad/.jar application? please help Have a look at : http://www.oesf.org/forums/index.php?showtopic=4495&hl=j2me You will see a script which calls the different java vm implementations for the slc series (Jeode, J2ME, IBM WEME J9). I tested all of them on my C1000. perhaps this will help you Kurt |
|
|
|
Aug 2 2005, 12:25 PM
Post
#3
|
|
|
Group: Members Posts: 260 Joined: 7-March 04 From: Toronto Member No.: 2,200 |
CODE usage: cvm [-fullversion] [-showversion] [-version] [-D<property>=<value>] [-XbuildOptions] [-XshowBuildOptions] [-XappName=<value>] [-cp <classpath> | -classpath <classpath>] [-Xbootclasspath[/a | /p]:<path>] [-Xverify[:{all | remote | none}] [-XfullShutdown] [-Xgc:youngGen=<youngSemispaceSize>] [-Xms<size>] [-Xss<size>] [-Xjit:[<option>[,<option>]...]] {<main class name> | -jar <jarfile> | -appletviewer <URL>} [<arguments>...] Valid -Xjit options include: icost=<0..32767> - Interpreter transition cost mcost=<0..32767> - Mixed transition cost climit=<0..65535> - Compilation threshold compile={none|all|policy} - When to compile inline={none|all|virtual|nonvirtual} - What to inline policyTriggeredDecompilations={true|false} - Policy Triggered Decompilations maxCompiledMethodSize=<0..65535> - Max Compiled Method Size codeCacheSize=<0..33554432> - Code Cache Size upperCodeCacheThreshold=<0%..100%> - Upper Code Cache Threshold lowerCodeCacheThreshold=<0%..100%> - Lower Code Cache Threshold XregisterPhis={true|false} - Pass Phi values in registers XcompilingCausesClassLoading={true|false} - Compiling Causes Class Loading it said main class is missing i have "IDocEmailProxy_S7100.jar" and "IDocEmailProxy_S7100.jad" on my /mnt/cf but i cannot launch it |
|
|
|
Aug 3 2005, 01:56 AM
Post
#4
|
|
![]() Group: Members Posts: 1,164 Joined: 17-December 03 From: Melbourne, AUSTRALIA Member No.: 1,219 |
With cvm you generally have to do
CODE cvm NameOfClass -jar NameOfJar.jar In your case it probably is CODE cvm IDocEmailProxy_S7100 -jar IDocEmailProxy_S7100.jar or try IDocEmailProxy as the class name Stu |
|
|
|
Aug 3 2005, 09:55 AM
Post
#5
|
|
|
Group: Members Posts: 260 Joined: 7-March 04 From: Toronto Member No.: 2,200 |
|
|
|
|
Aug 3 2005, 04:53 PM
Post
#6
|
|
![]() Group: Members Posts: 1,164 Joined: 17-December 03 From: Melbourne, AUSTRALIA Member No.: 1,219 |
Do you know the name of the main class?
Use jar to have a look inside the jar file to find out. Also of the jar uses classes or calls that aren't in cvm version (1.1??) then it won't work either. I have a jar file that needs java 1.4 but it won't work on the zaurus. Stu |
|
|
|
Aug 3 2005, 09:43 PM
Post
#7
|
|
|
Group: Members Posts: 299 Joined: 27-October 04 Member No.: 5,233 |
jar/jad files dont work as they need an implementation of javax.microedition. Try looking for apps like Quacknews or Tipicme for the zaurus.
they are java apps and run fine with the personal profile. The mobile apps/games dont work in the zaurus. tovarish |
|
|
|
Aug 4 2005, 05:51 AM
Post
#8
|
|
|
Group: Members Posts: 260 Joined: 7-March 04 From: Toronto Member No.: 2,200 |
QUOTE(tovarish @ Aug 4 2005, 12:43 AM) jar/jad files dont work as they need an implementation of javax.microedition. Try looking for apps like Quacknews or Tipicme for the zaurus. they are java apps and run fine with the personal profile. The mobile apps/games dont work in the zaurus. tovarish oh really? but isn't Zaurus has j2me also? is there anywhere i can get javax.microedition on Zaurus? |
|
|
|
Aug 8 2005, 11:09 PM
Post
#9
|
|
|
Group: Members Posts: 299 Joined: 27-October 04 Member No.: 5,233 |
try looking at me4se (google it) and use blackdown's jre if you want an implementation of javax.microedition
tovarish |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 21st May 2013 - 12:39 PM |