Board index » jbuilder » How to configure JBuilder 9 for JDK1.3 ?

How to configure JBuilder 9 for JDK1.3 ?


2004-01-24 12:52:47 AM
jbuilder23
Hi!
When installing JBuilder9 Developer, it installed JDK1.4.1_02-b06 and seems
to have configured everything ok. After that I have downloaded
JDK1.3.1_10-b03 from Sun (it's the latest 1.3 version) and installed it.
If I start up Jbuilder, make a new Project, add a Web Project to that, add a
JSP (I don't add any code) and then Build it everything works fine. No
errors.
If I then switch to JDK1.3 and Rebuild it, I get the following error in the
output window (I've split the compile command over several lines to make it
readable):
====================
[compile command]
C:\jdk1.3.1_10\bin\java
-classpath
"C:\JBuilder9\thirdparty\jakarta-tomcat-4.0.6-LE-jdk14\lib\jasper-compiler.j
ar;
C:\JBuilder9\thirdparty\jakarta-tomcat-4.0.6-LE-jdk14\lib\jasper-runtime.jar
;
C:\JBuilder9\thirdparty\jakarta-tomcat-4.0.6-LE-jdk14\lib\naming-factory.jar
;
C:\JBuilder9\thirdparty\jakarta-tomcat-4.0.6-LE-jdk14\common\lib\servlet.jar
;
C:\Documents and Settings\jors\My Documents\Projekt_java\Test\classes;
C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;
C:\Program Files\Microsoft SQL Server 2000 Driver for
JDBC\lib\mssqlserver.jar;
C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;
C:\JBuilder9\thirdparty\jakarta-tomcat-4.0.6-LE-jdk14\common\lib\servlet.jar
;
C:\jdk1.3.1_10\demo\jfc\Java2D\Java2Demo.jar;
C:\jdk1.3.1_10\jre\lib\i18n.jar;
C:\jdk1.3.1_10\jre\lib\jaws.jar;
C:\jdk1.3.1_10\jre\lib\rt.jar;
C:\jdk1.3.1_10\jre\lib\sunrsasign.jar;
C:\jdk1.3.1_10\lib\dt.jar;
C:\jdk1.3.1_10\lib\htmlconverter.jar;
C:\jdk1.3.1_10\lib\tools.jar"
org.apache.jasper.JspC
-d "C:/Documents and Settings/jors/My
Documents/Projekt_java/Test/classes/Temporary_Files/.jsp/Joatest"
-p ""
-c jsp1_0002ejsp_jsp
-uriroot "C:/Documents and Settings/jors/My
Documents/Projekt_java/Test/Joatest"
"C:/Documents and Settings/jors/My
Documents/Projekt_java/Test/Joatest/jsp1.jsp"
[/compile command]
[error here]
"jsp1.jsp": java.lang.NoClassDefFoundError: org/xml/sax/SAXException
Exception in thread "main"
[/error here]
===============================
NoClassDefFoundError indicates that I have a classpath problem, but how do I
solve it? Looking at the compile classpath I can see that "servlet.jar" from
Tomcat-JDK1.4 is used, which might be the problem if it depends on JDK1.4.
Where/how can I configure which Servlet.jar to use, and from where can I get
a 1.3 Servlet.jar?
When configuring for using JDK1.3 all I did was pointing to the JDK1.3SE
install directory. Maybe I need to do something more?
Thanks in advance,
/Joakim
 
 

Re:How to configure JBuilder 9 for JDK1.3 ?

I'm going from memory here, but I believe that the problem is that the XML
libraries are bundled as part of JDK 1.4 but are not bundled with JDK 1.3.
You will need to download and install them separately to get your
application to work with JDK 1.3.
--
Check out our latest white papers at
www.datadevelopment.com/papers/index.html
BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server
Dolphin Data Development Ltd.
www.datadevelopment.com/
"Joakim" <joakimATmmpab.com>wrote in message
Quote
Hi!

When installing JBuilder9 Developer, it installed JDK1.4.1_02-b06 and
seems
to have configured everything ok. After that I have downloaded
JDK1.3.1_10-b03 from Sun (it's the latest 1.3 version) and installed it.

If I start up Jbuilder, make a new Project, add a Web Project to that, add
a
JSP (I don't add any code) and then Build it everything works fine. No
errors.

If I then switch to JDK1.3 and Rebuild it, I get the following error in
the
output window (I've split the compile command over several lines to make
it
readable):

====================
[compile command]
C:\jdk1.3.1_10\bin\java
-classpath

"C:\JBuilder9\thirdparty\jakarta-tomcat-4.0.6-LE-jdk14\lib\jasper-compiler.j
ar;

C:\JBuilder9\thirdparty\jakarta-tomcat-4.0.6-LE-jdk14\lib\jasper-runtime.jar
;

C:\JBuilder9\thirdparty\jakarta-tomcat-4.0.6-LE-jdk14\lib\naming-factory.jar
;

C:\JBuilder9\thirdparty\jakarta-tomcat-4.0.6-LE-jdk14\common\lib\servlet.jar
;
C:\Documents and Settings\jors\My Documents\Projekt_java\Test\classes;
C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;
C:\Program Files\Microsoft SQL Server 2000 Driver for
JDBC\lib\mssqlserver.jar;
C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar;

C:\JBuilder9\thirdparty\jakarta-tomcat-4.0.6-LE-jdk14\common\lib\servlet.jar
;
C:\jdk1.3.1_10\demo\jfc\Java2D\Java2Demo.jar;
C:\jdk1.3.1_10\jre\lib\i18n.jar;
C:\jdk1.3.1_10\jre\lib\jaws.jar;
C:\jdk1.3.1_10\jre\lib\rt.jar;
C:\jdk1.3.1_10\jre\lib\sunrsasign.jar;
C:\jdk1.3.1_10\lib\dt.jar;
C:\jdk1.3.1_10\lib\htmlconverter.jar;
C:\jdk1.3.1_10\lib\tools.jar"
org.apache.jasper.JspC
-d "C:/Documents and Settings/jors/My
Documents/Projekt_java/Test/classes/Temporary_Files/.jsp/Joatest"
-p ""
-c jsp1_0002ejsp_jsp
-uriroot "C:/Documents and Settings/jors/My
Documents/Projekt_java/Test/Joatest"
"C:/Documents and Settings/jors/My
Documents/Projekt_java/Test/Joatest/jsp1.jsp"
[/compile command]
[error here]
"jsp1.jsp": java.lang.NoClassDefFoundError: org/xml/sax/SAXException
Exception in thread "main"
[/error here]
===============================

NoClassDefFoundError indicates that I have a classpath problem, but how do
I
solve it? Looking at the compile classpath I can see that "servlet.jar"
from
Tomcat-JDK1.4 is used, which might be the problem if it depends on JDK1.4.
Where/how can I configure which Servlet.jar to use, and from where can I
get
a 1.3 Servlet.jar?

When configuring for using JDK1.3 all I did was pointing to the JDK1.3SE
install directory. Maybe I need to do something more?

Thanks in advance,
/Joakim