the application works fine if the Target jdk version is
"jdk1.16_borland", as soon as i change it to 'java version 1.2', which
is defined as follow:
path of java.exe : D:\jdk1.2\bin\java.exe
class path:
D:\jdk1.2\jre\lib\rt.jar;D:\jdk1.2\jre\lib\i18n.jar;D:\jdk1.2\lib\dt.jar
Source path: D:\jdk1.2\src.jar
I got the following error message:
D:\jdk1.2\bin\javaw.exe -classpath
"D:\jbuilder2\myclasses;D:\JBUILDER2\lib\swingall.jar;D:\JBUILDER2\lib\jbcl2.0.jar;D:\JBUILDER2\lib\jbcl2.0-res.jar;D:\JBUILDER2\lib\jgl3.1.0.jar;D:\jdk1.2\jre\lib\rt.jar;D:\jdk1.2\jre\lib\i18n.jar;D:\jdk1.2\lib\dt.jar;D:\JBUILDER2\dependency\~javaversion1.2"
untitled1.Application1
Warning: JIT compiler "javacomp" not found. Will use interpreter.
java.lang.VerifyError: (class: untitled1/Application1, method: main
signature: ([Ljava/lang/String;)V) Incompatible argument to function
Exception in thread "main"
it seems jdk1.1.6 from borland is mixing up with jdk1.2. any ideas ? any
one ?
thank you for your time.
Song Huang
Arya Daneshyar <ar...@worldnet.att.net> writes:
> I do get a warning and error message. It comes and goes so fast
> that I could not see it first.
In "Project properties", "Run/debug", change the settings to send
output to the execution log.
> This is the message that I get:
> Warning: JIT compiler "javacomp" not found. Will use interpreter.
Add "-Djava.compiler=symcjit" to the java VM parameters line in
"Run/debug".
i was able to get rid of the warning"JIT compiler "javacomp" not found
but i still don't know how to fix the VerifyError: (class:
untitled1/Application1, method: main signature: ([Ljava/lang/String;)V)
Incompatible argument to function
Exception in thread "main"
any ideas.
Thanks
Song Huang
If you used the Application wizard to create your application, the main()
function probably contains some code setting look and feel, such as:
UIManager.setLookAndFeel(new
com.sun.java.swing.plaf.windows.WindowsLookAndFeel());
If you comment this out, the error message will go away and the app will
run. I expect the syntax of the look and feel functions has changed (it
might be something Sun has moved), but I haven't had time to figure it out
yet. In the mean time, you can plow on through with the default (apparently
Metal) look.