• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to modify java command for a midlet execution

 
Guadalupe Ortiz
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am trying to implement load time weaving in a Midlet Project. For doing so I have two options
a) adding a -javaagent option to the java command
b) replacing java by aj command

The dificulty for me is that I do not know where the java command is invoked for the execution of the Midlet since I only find the java command for the execution of the emulator.

Any help is really appreciated,
thanks a lot,
Guadalupe
 
Tim Holloway
Saloon Keeper
Posts: 18359
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Midlets are designed to run on specialized hardware, and a lot of that specialized hardware doesn't implement a command shell. So there's no "java command". Instead the JVM runs as an embedded subsystem. On some devices, the JVM may even boot up straight from ROM and BE the OS.

I'm not sure how feasible load-time weaving is in cases like that. You might not be able to do it without actually having the JVM source code as customized for the target device.

 
Darryl Burke
Bartender
Posts: 5149
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just another cross poster.
http://forums.sun.com/thread.jspa?threadID=5374792
 
Tim Holloway
Saloon Keeper
Posts: 18359
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cross-posting with other sites isn't so bad. Not all of us are regulars there. Cross-posting on the JavaRanch is what we mainly object to,
 
Darryl Burke
Bartender
Posts: 5149
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, this page on the ranch voices a slightly different sentiment.
http://faq.javaranch.com/java/BeForthrightWhenCrossPostingToOtherSites
 
Tim Holloway
Saloon Keeper
Posts: 18359
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a matter of relative annoying-ness. If you cross-post between sites, you're likely to end up losing track of who said what where (as are others who frequent both sites). It wastes time and confuses people.

If you cross-post within the JavaRanch, we get more annoyed, since there's more people who'll be involved in the confusion. We generally try and steer people to the forum that appears most appropriate

If you multi-post within a forum, we get kinda steamed, since that REALLY confuses things, At that point we usually close redundant threads.

As we said in the item you referenced, it's only polite when cross-posting between sites to let people know about it so that less time will be wasted and we'll know if there's an answer somewhere else in case anyone here on the JavaRanch runs across the same issue.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic