I have encountered a problem which, though different, may have something in
common with your problem.
 
The problem could have its root in the fact that sometimes Java Compiler
gets confused by ND's scheme of having a package and a class with the same
name. Typically, myProject is the package and at the same time the projects
has its own class - myProject.class.
 
I have found this happen with ND 4.latest when I put inner classes in any
page's code. And the only work around I could figure out was to compile
things outside, in a DOS batch file, which first renames away the project's
java/class files, compiles everything else and put it back. 
 
Aby
TeamND

-----Original Message-----
From: Srirajesh Vairamani [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 04, 2000 10:56 PM
To: [EMAIL PROTECTED]
Subject: [ND] ND3 problem


 
 
Hello everybody,
 
Im working in an ND project. Previously our application worked fine in
ND3.1.1(with built-in jdk).  But now due to ND3.1's non compliancy with Y2K,
we have installed compliant ND3.1.3 with jdk 1.1.6. Now the problem is what
are the files compiled in the previous version, are not compiling with this
version. Please help me to get around this problem. The errors i got while
compiling a 
java file 'myprogram' are mentioned below. NB: 'myprogram' is also a package
with 'myprogramutil' file which contains user defined classes.
 

 
.\myprogram.java:15: Class myprogram.myprogram already defined in
C:\Spider\NetDynamics20\Projects\myprogram\myprogram.java.
public class hrmx extends CSpProject
             ^
error: File .\myprogram.java does not contain type myprogram as expected.
Please adjust the class path so that the file does not appear in the unnamed
package.
C:\Spider\NetDynamics20\Projects\myprogram\myprogram.java:9: Ambiguous name:
myprogram is both a class and a package.
import myprogram.myprogramutil.*;
       ^
Thanks in advance

_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to