I decompiled a jar file (using jad) and then created a new Java Project using JCreator (an IDE). Now when I am compiling the project it gives 4 different kinds of errors (70 total) :
1. "duplicate class" errors for some classes like:
C:\Program Files\Xinox Software\JCreatorV3LE\MyProjects\WhiteBoard\com\inMeeting\client\mde\MDEView.java:21: duplicate class: com.inMeeting.client.mde.MDEView.JTabbedPaneChangeListener
class JTabbedPaneChangeListener
^
C:\Program Files\Xinox Software\JCreatorV3LE\MyProjects\WhiteBoard\com\inMeeting\client\whiteboard\gui\ColorDlg.java:16: duplicate class: com.inMeeting.client.whiteboard.gui.ColorDlg.SymWindow
class SymWindow extends WindowAdapter
2. "cannot resolve symbol" errors like:
C:\Program Files\Xinox Software\JCreatorV3LE\MyProjects\WhiteBoard\com\inMeeting\client\white\ConvWhiteBoard.java:8: cannot resolve symbol
symbol : class WhiteEventHandlerImpl
location: package impl
import collab.interfaces.impl.WhiteEventHandlerImpl;
3. "package does not exist" errors like:
C:\Program Files\Xinox Software\JCreatorV3LE\MyProjects\WhiteBoard\com\inMeeting\client\white\ConvWhiteBoard.java:9: package collab.interfaces.rmi does not exist
import collab.interfaces.rmi.*;
4. "not an enclosing class" error like:
C:\Program Files\Xinox Software\JCreatorV3LE\MyProjects\WhiteBoard\com\inMeeting\client\whiteboard\gui\TextPropertyDlg$1.java:20: not an enclosing class: com.inMeeting.client.whiteboard.gui.TextPropertyDlg
TextPropertyDlg.access$updateFigureFont(TextPropertyDlg.this);
I have not coded this but have to get it working. Does anyone have some idea why these errors could be coming and how I should proceed to rectify them ? Any help or suggestions would be appreciated. Thanks.
Navodit
> <DIV><FONT face=Arial size=2>I decompiled a jar file (using jad) and then
> created a new Java Project using JCreator (an IDE). Now when I am
[quoted text clipped - 4 lines]
> <DIV><FONT face=Arial size=2>1. "<STRONG>duplicate class</STRONG>"
> errors for some classes like:</FONT></DIV>
[...]
Avoid posting in HTML.
Did you ensure that your directory structure matches the package
structure declared in the source files?
- Oliver
Navodit - 06 Jul 2006 21:06 GMT
I am not sure what you mean here about matching directory structure but this
is what I did:
1. unzip whiteboard.jar which leads to a main directory com and some further
subdirectories.
2. Next I went to the top directory and ran jad which decompiled all .class
files into .java files into a folder src.
3. Then I created a new project in Jcreator and added the folder src to the
project.
4. Now when I compile the project I get the following errors:
1. "duplicate class" errors for some classes like:
C:\Program Files\Xinox
Software\JCreatorV3LE\MyProjects\WhiteBoard\com\inMeeting\client\mde\MDEView.java:21:
duplicate class: com.inMeeting.client.mde.MDEView.JTabbedPaneChangeListener
class JTabbedPaneChangeListener
^
2. "cannot resolve symbol" errors like:
C:\Program Files\Xinox
Software\JCreatorV3LE\MyProjects\WhiteBoard\com\inMeeting\client\white\ConvWhiteBoard.java:8:
cannot resolve symbol
symbol : class WhiteEventHandlerImpl
location: package impl
import collab.interfaces.impl.WhiteEventHandlerImpl;
3. "package does not exist" errors like:
C:\Program Files\Xinox
Software\JCreatorV3LE\MyProjects\WhiteBoard\com\inMeeting\client\white\ConvWhiteBoard.java:9:
package collab.interfaces.rmi does not exist
import collab.interfaces.rmi.*;
4. "not an enclosing class" error like:
C:\Program Files\Xinox
Software\JCreatorV3LE\MyProjects\WhiteBoard\com\inMeeting\client\whiteboard\gui\TextPropertyDlg$1.java:20:
not an enclosing class: com.inMeeting.client.whiteboard.gui.TextPropertyDlg
TextPropertyDlg.access$updateFigureFont(TextPropertyDlg.this);
Am I missing something very basic here ? I think the directory structure of
the source files is or shd be the same as that in the jar file ... Thanks.
>> <DIV><FONT face=Arial size=2>I decompiled a jar file (using jad) and then
>> created a new Java Project using JCreator (an IDE). Now when I am
[quoted text clipped - 12 lines]
>
> - Oliver
Oliver Wong - 06 Jul 2006 21:16 GMT
>I am not sure what you mean here about matching directory structure but
>this is what I did:
This is just so that I know how detailed the answer needs to be: Are you
a Java programmer?
- Oliver
Navodit - 06 Jul 2006 21:30 GMT
As you might have guessed I am not an experienced Java programmer... I was
however able to resolve the errors I mentioned in my previous post by
including a jar file from which packages were to be imported. It was a very
basic error I guess but since I am new to Java I couldnt make that out in
the beginning ! Thanks for your help and suggestions.
>>I am not sure what you mean here about matching directory structure but
>>this is what I did:
[quoted text clipped - 3 lines]
>
> - Oliver