Help required wrt to porting from jdk1.3 to jdk1.4

My project requirement currently needs to use jdk1.4. i havesome code which was earlier coded in jdk1.3 in some jar files. They are currently getting the following error while trying to use the classes from the jar files.

<%@ page language="java" import="CatalogSearchRepository" %>

Error:

[08/11/2005 17:03:20:792] (ERROR) ajp12: Servlet Error: OracleJSP: oracle.jsp.pr

ovider.JspCompileException: <H3>Errors compiling:/prod/appsol1a/comn/_pages/_oa_

_html/_jsp/_por/_catalog/_XXAcceptanceHome.java</H3><TABLE BORDER=1 WIDTH=100%><

TR><TH ALIGN=CENTER>Line #</TH><TH ALIGN=CENTER>Error</TH></TR><TR><TD WIDTH=7%

VALIGN=TOP><P ALIGN=CENTER>15</TD><TD> '.' expected import CatalogSearchReposito

ry;</TD></TR></TABLE>

[08/11/2005 17:03:20:792] (ERROR) an error returned handling request via protoco

l "ajpv12"

[08/11/2005 17:03:20:793] (ERROR) balance: 3373 internal servlet error in server

[08/11/2005 17:03:20:793] (ERROR) an error returned handling request via protoco

l "balance"

In java 1.4

import SimpleName;

is no longer legal. Nor is the syntax

import ClassInUnnamedNamespace.Nested;

which would import a nested class from the unnamed namespace. To fix such problems in your code, move all of the classes from the unnamed namespace into a named namespace.

Is there any work around for the same other can changing the files(present in various jar files) to have the same package structure as required?

[1637 byte] By [Programmera] at [2007-10-2 4:47:47]
# 1
You have to put those classes in a package. Are you asking if there is some way you can not put them in a package? No, you have to put them in a package. Or are you asking what package you have to put them in? You can put them in any package you like.
DrClapa at 2007-7-16 0:52:33 > top of Java-index,Java Essentials,Java Programming...
# 2
Putting in a package requires major changes in the directory structure as well as throughout the code. There are around 650 jsp's and java files which are impacted due to this issue. So i wanted to know if there are any other means to resolve the same.
Programmera at 2007-7-16 0:52:34 > top of Java-index,Java Essentials,Java Programming...
# 3
No, there isn't, and it was a mistake to not put them in a package from the beginning...
jesperdja at 2007-7-16 0:52:34 > top of Java-index,Java Essentials,Java Programming...
# 4

> Putting in a package requires major changes in the

> directory structure as well as throughout the code.

> There are around 650 jsp's and java files which are

> impacted due to this issue.

Could not this be done with some multiple-files-search-and-replace tool? And perhaps some automated refactoring? I am not that familiar with jsp, but with Eclipse moving the java-files in packages is done with 2-3 clicks (with package statement in code and directory change).

herrena at 2007-7-16 0:52:34 > top of Java-index,Java Essentials,Java Programming...