Cynosure.X International LLC

:

Add Comment | Related Links | TrackBack
Related Content

Compiling Waba Program with JDK 1.5

WabaSDK was written to build mobile applications based on Java 1.1. When JDK 1.4 was released, Sun changed the reference table in the Java class bytecode. This was documented on the Wabasoft web site. The detail is in the excerpt below:

Waba and JDK 1.4 Compiler

Sun's JDK 1.4 compiler is different from previous Java compilers. Specifically, Sun changed the way fields are referenced in compiled bytecode. This causes the WabaVM to give a 'field not found' error when running programs compiled with the JDK 1.4 compiler. You can use:

 javac -target 1.1 ... 

when compiling with the JDK 1.4 compiler to fix the problem.

However, when you try to compile with the "-target 1.1" flag on JDK 1.5, you'll get the following error message from javac:

javac: target release 1.1 conflicts with default source release 1.5

To resolve this issue, you'll have to add the "-source 1.2" flag. You can use:

 javac -target 1.1 -source 1.2 ... 

I don't know why "-target 1.1 -source 1.2" makes sense. I have tried "-target 1.1 -source 1.1", but JDK 1.5 gives the "javac: invalid source release: 1.1" error message. I have also tried "-target 1.2 -source 1.2", which compiles and build just fine. But the Waba application doesn't run.

Chieh Cheng
Tue, 10 Jan 2006 23:40:03 -0800

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 5 + 6?
Click button only once, please!

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.

Messages, files, and images copyright by respective owners.

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

101 Users Online

Hacking Digital Cameras
Fun for Photographers


Get Our

Memecoins!



Amazon Associate

Copyright © 1996 - 2024. All Rights Reserved.