Skip to main content

compilation of java program

2 replies [Last post]
9781
Offline
Joined: 2008-03-12

hi all,
I have build pcsl and cldc for linux_i386.
Now i want to test one application a simple java program except HelloWorld program
what i have done is i compiled the program using javac of jdk1.4 i got the class file of a program when i run it with cldc_vm it shows the error as:ClassFormatError.
I think its because of the program is compiled using J2SE classes.So i want it to compile using classes of cldc
For that what change i have to made so that program uses cldc classes and not J2SE classes
Please tell me
Thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
danila
Offline
Joined: 2006-09-25

Hi 9781,

Java classes must be preverified to be executed by cldc vm.
You can use preverify utility located in the same directory as cldc_vm binary.

Danila

9781
Offline
Joined: 2008-03-12

Thank you very much
Now my question is solved.