(Answer) (Category) FAQ-O-Matic : (Category) General : (Category) Compiler :
My WebLogic project won't compile on JDK 1.3. I get "Error #: 300 : method getAction() not found in class javax.swing.AbstractButton", and others.
Weblogic has some JDK 1.2.2 classes inside its jars. The compiler is finding the weblogic versions of some classes BEFORE it finds them later on in the classpath via the JDK 1.3 jars.

Here's a workaround:

You have to adjust your project to force the naughty weblogic jars to appear AFTER the JDK 1.3 jars on your project's classpath. The easiest way to do this is to go into the JDK 1.3 definition itself, and add the weblogic jars to the JDK's list of jars, AFTER all the real JDK jars.

Do this under Tools/Configure JDK, select the JDK your project is using, and add the weblogic jar(s) to that JDK's own list of jars. Make sure to put them at the END of the list, so that the compiler will find the good 1.3 classes before it finds the bad 1.2.2 classes.

Then, delete the weblogic jars from your project's required libraries settings.

DO NOT edit jbuilder4/bin/jdk.config to do this. jdk.config controls the JVM under which JBuilder itself runs. What you have to fix is the classpath under which your project itself runs.
2001-Jan-10 5:32pm gyles19@visi.com

Learn about JPathReport here:

  (Xref) Are there any tools available to help diagnose classpath problems?

2001-Jun-19 6:31pm gyles19@visi.com
[Append to This Answer]
2001-Jun-19 6:31pm
Previous: (Answer) warning #908: can not append file ...
Next: (Answer) JBuilder's obfuscator is pretty weak. Where can I find a better one?
This document is: http://www.visi.com/~gyles19/cgi-bin/fom.cgi?file=50
[Search] [Appearance]
This is a Faq-O-Matic 2.709.
This FAQ administered by gyles19@visi.com.

Other JBuilder Links

Java Community
Java Tools
Code Central
JB OpenTools
Community
Recent
Threads
Borland Chat
Chat FAQ
Feature Matrices
3.0 |  3.5 |  4.0
5.0 |  6.0 |  7.0
Shop for
JBuilder
JBuilder
Downloads
and reg keys
Report Piracy
Online Manuals
4.0 |  5.0 |  6.0
7.0
Borland
DevSupport's
Bug/RFE Form

Quality Central Client
JB Patches &
Updates
JBuilder FAQs TIs
JBuilder
Newsgroups
Tamaracka's
News Archive
Mr. Haki's
JBuilder Machine
JGuru's
JBuilder FAQ
Sun's Bug
Parade
Netring Home - About - Privacy
The
JBuilder Netring Logo
The Borland JBuilder Netring by JBuilder FAQ-O-Matic
[ Join Now | List Sites | Random | << Prev | Next >> ]
[ Previous 5 Sites | Skip Previous | Skip Next | Next 5 Sites ]