OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Running J2me Apps On C1000?
samxiao
post 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
Go to the top of the page
 
+Quote Post
onlinejunkie
post 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
Go to the top of the page
 
+Quote Post
samxiao
post 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
Go to the top of the page
 
+Quote Post
Stubear
post 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
Go to the top of the page
 
+Quote Post
samxiao
post Aug 3 2005, 09:55 AM
Post #5





Group: Members
Posts: 260
Joined: 7-March 04
From: Toronto
Member No.: 2,200



QUOTE(Stubear @ Aug 3 2005, 04:56 AM)
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
*



try it
doesn't work


i have both .jad/.jar
but it doesn't work
Go to the top of the page
 
+Quote Post
Stubear
post 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
Go to the top of the page
 
+Quote Post
tovarish
post 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
Go to the top of the page
 
+Quote Post
samxiao
post 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?
Go to the top of the page
 
+Quote Post
tovarish
post 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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 28th November 2014 - 05:34 AM